export interface TransformOpts { optimizeCss?: boolean; increaseSpecificity?: boolean; sortAtRules?: boolean; sortShorthand?: boolean; classHashPrefix?: string; flattenMultipleSelectors?: boolean; /** * When `true`, atomic class names use the collision-resistant base-62 hash * (11-char classes) instead of the legacy base-36 `.slice(0, 4)` hash * (9-char classes). Migration flag — defaults to `false` (legacy output). * * @default false */ collisionResistantHash?: boolean; } /** * As opposed to TransformOpts which are babel plugin level options, * LocalTransformOptions control each individual transformation separately. */ export interface LocalTransformOptions { /** * When `true`, styles are emitted as a single non-atomic class per variant * (via `cssMapScoped`) rather than one atomic class per declaration. * The class name uses the `cc-` prefix so `ax()` treats it as a plain * opaque class rather than an atomic group. * * @default false * @experimental Not part of the public API. May change without notice. */ nonAtomic?: boolean; /** * Pre-computed class name for non-atomic mode (`cssMapScoped`). When provided, * avoids hashing the full CSS content string. The babel plugin computes this as * `NON_ATOMIC_CLASS_PREFIX + hash(relative(filename) + ':' + variableName + ':' + variantKey)`. * Falls back to hashing the full CSS content string if not provided. * * @experimental Not part of the public API. May change without notice. */ nonAtomicClassName?: string; } /** * Class name prefix used for non-atomic CSS classes generated by `cssMapScoped`. * Unlike atomic classes (prefixed with `_`), the `cc-` prefix signals to `ax()` that this * is an opaque plain class and should not be treated as an atomic group for deduplication. */ /** @internal — not part of public API, do not import from other packages */ export declare const NON_ATOMIC_CLASS_PREFIX = "cc-"; /** * Will transform CSS into multiple CSS sheets. * * @param css CSS string * @param opts Transformation options */ export declare const transformCss: (css: string, opts: TransformOpts, localOpts?: LocalTransformOptions) => { sheets: string[]; classNames: string[]; };