/** * CSS Module naming and selector rewriting helpers. * * Provides deterministic class-name scoping that is stable across * transform/runtime boundaries and HTML CSS aggregation. */ /** * Normalize a module key to a stable slash-based format. * Removes query/hash suffixes and normalizes duplicate separators. */ export declare function normalizeCssModuleKey(path: string): string; /** * Resolve a CSS import specifier to a deterministic module key. * Supports relative imports, @/ aliases, absolute paths, and URLs. */ export declare function resolveCssModuleKey(specifier: string, importerFilePath: string, projectDir: string): string; /** * Build deterministic module scope info. */ export declare function getCssModuleScope(moduleKey: string): { base: string; hash: string; }; /** * Convert a local class name to its scoped CSS Module class. */ export declare function toScopedCssModuleClass(moduleKey: string, localName: string): string; export interface RewrittenCssModuleContent { content: string; byteLength: number; } /** * Rewrite a CSS Module only after its exact emitted UTF-8 size fits the * supplied byte budget. The first pass retains no rewrite spans or output * chunks; the second pass stores at most the admitted output. */ export declare function rewriteCssModuleContentWithinLimit(content: string, moduleKey: string, maximumBytes: number, label?: string): RewrittenCssModuleContent; /** * Rewrite `.module.css` selectors to deterministic scoped class names. * Keeps `:global(...)` segments untouched. */ export declare function rewriteCssModuleContent(content: string, moduleKey: string): string; //# sourceMappingURL=naming.d.ts.map