import http from 'node:http'; import https from 'node:https'; export declare const officialNpmRegistryUrl = "https://registry.npmjs.org/"; export interface NpmRegistryDistTags { latest: string; [tag: string]: string | undefined; } export declare class NpmRegistry { agent?: http.Agent | https.Agent; url: string; private token; constructor(url: string, token?: string); fetchDistTags(packageName: string): Promise; fetchVersions(packageName: string): Promise; dispose(): void; private ensureAgent; } export declare function uriToIdentifier(uri: string): string; //# sourceMappingURL=npm-registry.d.ts.map