/** * Content-addressed CSS cache with provider-identified JIT inputs. * * CSS payloads are keyed by their full SHA-256 identity. Regeneration inputs * live in the same versioned entry and are usable only by the exact captured * CSS pipeline identity that created them; the former split legacy-input * fallback is intentionally unsupported. * * @module html/styles-builder/css-hash-cache */ export interface CSSCacheEntry { readonly css: string; readonly candidates: readonly string[]; readonly stylesheet: string; readonly pipelineIdentity?: string; } export interface CSSRegenerationInputs { readonly candidates: string[]; readonly stylesheet: string; readonly pipelineIdentity: string; } /** Store CSS and, when supplied, the exact inputs needed for JIT regeneration. */ export declare function cacheCSSAsync(css: string, hash?: string, inputs?: { candidates: string[] | Set; stylesheet: string; pipelineIdentity: string; }): Promise; export declare function getCSSByHash(hash: string): string | undefined; export declare function getCSSByHashAsync(hash: string): Promise; export declare function clearCSSCache(): void; /** Resolve JIT inputs only when they match the currently captured pipeline. */ export declare function resolveRegenerationInputs(expectedHash: string, pipelineIdentity: string): Promise; /** Persist a verified regenerated entry under its immutable content identity. */ export declare function persistRegeneratedCSSEntry(hash: string, entry: CSSCacheEntry): Promise; //# sourceMappingURL=css-hash-cache.d.ts.map