import { PackageRegistryClient } from './package-registry-client.js'; export interface PackageDownloadOptions { cachePath?: string; force?: boolean; maxPackageSize?: number; } export interface DownloadResult { success: boolean; packageId: string; version: string; path?: string; error?: string; } export declare class PackageDownloader { private registryClient; private cachePath; private installationStore; private downloadLocks; constructor(cachePath?: string, registryClient?: PackageRegistryClient); downloadAndInstall(packageId: string, version?: string, options?: PackageDownloadOptions): Promise; private downloadAndInstallLocked; private extractTarball; private getDefaultCachePath; listInstalledPackages(): Promise; removePackage(packageId: string, version: string): Promise; getCachePath(): string; } export declare const packageDownloader: PackageDownloader; //# sourceMappingURL=package-downloader.d.ts.map