import type { AttemptResult } from './attempt-result.mts'; import type { ResolvedStorybookBrowserProject, StorybookBrowserRunnerDeps } from './types.mts'; export type CachePlan = { dir: string; persistentDir: string | undefined; role: 'attempt' | 'persistent'; }; type CacheDeps = Pick; export declare function storybookBrowserPersistentCacheDir(project: ResolvedStorybookBrowserProject, env: NodeJS.ProcessEnv, cwd: string): string | undefined; export declare function initialCachePlan(attemptEnv: NodeJS.ProcessEnv, persistentCacheDir: string | undefined): CachePlan; export declare function nextCachePlan(input: { attempt: number; attemptEnv: NodeJS.ProcessEnv; cachePlan: CachePlan; deps: CacheDeps; persistentCacheDir: string | undefined; result: AttemptResult; }): CachePlan; export declare function clearPersistentCache(cacheDir: string, deps: CacheDeps): void; /** Copies a successful attempt's optimizer cache over the persistent cache. */ export declare function promoteAttemptCache(cachePlan: CachePlan, deps: CacheDeps, result: AttemptResult): void; export {};