The prebuilt files include `web/pdf_viewer.js` with some viewer APIs. Those are missing from type declarations.
"wintersmith",
    ghPagesGit
  )
);
function packageBowerJson() {
  const VERSION = getVersionJSON().version;
  const DIST_NAME = "pdfjs-dist";
  const DIST_DESCRIPTION = "Generic build of Mozilla's PDF.js library.";
  const DIST_KEYWORDS = ["Mozilla", "pdf", "pdf.js"];
  const DIST_HOMEPAGE = "http://mozilla.github.io/pdf.js/";
  const DIST_BUGS_URL = "https://github.com/mozilla/pdf.js/issues";
  const DIST_LICENSE = "Apache-2.0";
  const npmManifest = {
    name: DIST_NAME,
    version: VERSION,
    main: "build/pdf.js",
    types: "types/pdf.d.ts",
    description: DIST_DESCRIPTION,
    keywords: DIST_KEYWORDS,
    homepage: DIST_HOMEPAGE,
    bugs: DIST_BUGS_URL,
    license: DIST_LICENSE,
    peerDependencies: {
      "worker-loader": "^3.0.7", 
    },
    browser: {
      canvas: false,
      fs: false,
      http: false,
      https: false,