/** * Provider-neutral, exact-snapshot CSS compilation cache. * * Core captures one explicitly registered CSSProcessor for a complete * operation. Compilation and the first stateful build are single-flight and * cached only under the exact provider, stylesheet, project, and candidate * identities that produced the output. * * @module html/styles-builder/css-compiler-cache */ /** One immutable processor snapshot acquired for a complete CSS operation. */ export interface CSSCompilationSession { readonly cacheIdentity: string; readonly defaultStylesheet: string; build(stylesheet: string, projectSlug: string | undefined, candidates: string[] | Set): Promise; } /** Capture the currently registered provider before any cache lookup awaits. */ export declare function acquireCSSCompilationSession(): CSSCompilationSession; /** Identity of all captured provider-owned inputs that can change emitted CSS. */ export declare function getCSSCompilationCacheIdentity(): string; /** Compile with an authentic, already captured session. */ export declare function buildCSSWithSession(session: CSSCompilationSession, stylesheet: string, projectSlug: string | undefined, candidates: string[] | Set): Promise; export declare function invalidateCompiler(): void; /** Get bounded compilation-cache statistics for monitoring and tests. */ export declare function getCompilerCacheStats(): { size: number; maxSize: number; estimatedSizeBytes: number; entries: Array<{ hash: string; createdAt: number; }>; }; //# sourceMappingURL=tailwind-compiler-cache.d.ts.map