import type { PackageRegistry, VersionCachePolicy, VersionResolutionResult } from '../types/index.js';
/**
 * Resolve the latest version of a framework package.
 * Order: memory cache → persistent cache → registry → fallback.
 * Never throws — always returns a result.
 */
export declare function resolveFrameworkVersion(packageName: string, registry: PackageRegistry, cachePolicy?: VersionCachePolicy): Promise<VersionResolutionResult>;
/** Clear the in-memory cache (useful for testing). */
export declare function clearVersionCache(): void;
/** Extract npm package names mentioned in spec text. */
export declare function extractNpmPackages(text: string): string[];
/** Extract pip package names after "pip install" keywords in spec text. */
export declare function extractPipPackages(text: string): string[];
/**
 * Resolves npm package versions mentioned in spec text.
 * Returns strings like ["next@15.2.0", "@supabase/supabase-js@2.39.0"], or null.
 * Results are cached per project with 7-day TTL.
 */
export declare function resolveSpecVersions(specText: string, projectId: string): Promise<string[] | null>;
//# sourceMappingURL=version-resolver.d.ts.map