export declare const isWcCacheEnabled: () => boolean; export declare const wcCacheDir: (workspaceRoot: string) => string; export interface WcFingerprintInput { workspaceRoot: string; /** The resolved WC config: selector, class name, paths, options. */ config: unknown; /** The app's `src` directory, as the builder stages it. */ projectSrcDir: string; /** Extra directories the build reads, e.g. the app config's folder. */ extraDirs?: string[]; /** The compiler's own code, so a builder change invalidates old bundles. */ compilerDir?: string; } export declare const wcFingerprint: ({ workspaceRoot, config, projectSrcDir, extraDirs, compilerDir, }: WcFingerprintInput) => string; /** * Copies a stored bundle's files into `destinationPath`. Returns the files * restored, or null on a miss. */ export declare const restoreWcBundle: (cacheDir: string, key: string, fingerprint: string, destinationPath: string) => string[] | null; /** * Stores a freshly built bundle's files, and drops this key's older entries — * only the latest build of a given WC is ever worth restoring. */ export declare const storeWcBundle: (cacheDir: string, key: string, fingerprint: string, sourceDir: string, files: string[]) => void; //# sourceMappingURL=wc-cache.d.ts.map