export interface ModuleCacheResolveOptions { noCache?: boolean; } /** * Caches fetched URL and GitHub module content to disk so prompts * work offline after the first fetch. */ export declare class ModuleCache { private cacheDir; private modulesDir; private manifestPath; constructor(cacheDir: string); /** * Resolve a URL or GitHub shorthand to its content, using cache when possible. */ resolve(url: string, options?: ModuleCacheResolveOptions): Promise; /** * Clear cached modules. If url is provided, clear only that entry. */ clear(url?: string): Promise; /** * Get cache statistics. */ getStats(): Promise<{ entryCount: number; totalSizeMB: number; }>; private fetchWithConditional; private computeHash; private computeTtl; private isVersionedUrl; /** * Resolve GitHub shorthand notation to a raw.githubusercontent.com URL. * Supports: * github:user/repo/path/to/file.js → main branch * github:user/repo@branch/path/to/file.js → specific branch/tag */ private resolveGitHubShorthand; private loadManifest; private saveManifest; } //# sourceMappingURL=module-cache.d.ts.map