import { type CdnClient } from 'typebulb/resolver'; import type { TypeProvider } from './typeProvider.js'; import { TarballFetcher } from './tarballFetcher.js'; import type { DtsCache } from './cache.js'; export declare class DefinitelyTypedProvider implements TypeProvider { private cdnClient; private cache; private tarballFetcher; constructor(cdnClient: CdnClient, cache: DtsCache, tarballFetcher?: TarballFetcher); private typesNameCandidates; private selectTypesVersion; /** * Declaration-file candidates for a subpath, keyed as the tarball stores them * (package-relative, no leading `./`). `declarationCandidatesFor` strips a * runtime extension first — `examples/jsm/controls/OrbitControls.js` lives at * `OrbitControls.d.ts`, not `OrbitControls.js.d.ts`. The raw-subpath forms are * kept as a fallback for paths whose dot isn't a JS extension (e.g. a literal * `foo.bar` directory). */ private subpathCandidates; private fetchFromVersionedRoot; resolve(pkg: string): Promise<{ dts: string; url: string; resolvedPkg: string; } | undefined>; } //# sourceMappingURL=definitelyTypedProvider.d.ts.map