/** * Provider-neutral CSS generation and cache orchestration. * * Tailwind-named exports remain as compatibility aliases, but core neither * imports nor discovers Tailwind. An explicit CSSProcessor owns compilation; * an explicit CSSOptimizationEngine owns minification. */ import { type CSSOptimizationEngine } from "../../extensions/css/index.js"; import { type CSSCompilationSession } from "./tailwind-compiler-cache.js"; export { extractCandidates, extractCandidatesFromFiles } from "./candidate-extractor.js"; export { hashCSS } from "./css-identity.js"; export { getCompilerCacheStats, getCSSCompilationCacheIdentity, invalidateCompiler, } from "./tailwind-compiler-cache.js"; export { cacheCSSAsync, clearCSSCache, getCSSByHash, getCSSByHashAsync } from "./css-hash-cache.js"; export { initializeProjectCSSCache, invalidateProjectCSS, invalidateProjectCSSAsync, isProjectCSSCacheDistributed, } from "./project-css-cache.js"; export interface CSSGenerationResult { readonly css: string; readonly cacheIdentity: string; } /** Backward-compatible name for a provider-neutral CSS generation result. */ export type TailwindResult = CSSGenerationResult; export interface CSSGenerationOptions { minify?: boolean; environment?: string; buildMode?: "development" | "production"; projectSlug?: string; } /** Backward-compatible name for provider-neutral CSS generation options. */ export type GenerateOptions = CSSGenerationOptions; export interface CSSErrorInfo { title: string; message: string; suggestion: string; } export interface CSSGenerationSession { readonly minify: boolean; readonly cacheIdentity: string; readonly compilationSession: CSSCompilationSession; readonly optimizationEngine?: CSSOptimizationEngine; } export interface CSSGenerationDependencies { readonly generationSession?: CSSGenerationSession; } /** Capture all output-affecting providers before the operation performs an await. */ export declare function acquireCSSGenerationSession(minify: boolean): CSSGenerationSession; export declare function getProjectCSS(projectSlug: string, stylesheet: string | undefined, candidates: string[] | Set, options?: CSSGenerationOptions, dependencies?: CSSGenerationDependencies): Promise<{ css: string; hash: string; fromCache: boolean; }>; export declare function regenerateCSSByHash(expectedHash: string, projectSlug: string | undefined): Promise; export declare function generateTailwindCSS(stylesheet: string | undefined, candidates: string[] | Set, options?: CSSGenerationOptions, dependencies?: CSSGenerationDependencies): Promise; export declare function formatCSSError(error: Error | string): CSSErrorInfo; //# sourceMappingURL=tailwind-compiler.d.ts.map