
import { Plugin } from "postcss";

//#region ../tailwind-internal/dist/utils/postcssPreserveVars.d.ts
//#region src/utils/postcssPreserveVars.d.ts
interface PreserveVarsOptions {
  /** Variable name patterns to preserve (regex or string prefix) */
  preserve?: (string | RegExp)[];
}
/**
 * PostCSS plugin to preserve CSS variables from being pruned.
 *
 * Runs BEFORE postcss-prune-var to inject fake usages for preserved variables,
 * preventing them from being removed.
 *
 * @example
 * ```ts
 * postcss([
 *   preserveVars({ preserve: ['--uds-motion-'] }),
 *   pruneVar(),
 *   preserveVarsCleanup(),
 * ])
 * ```
 */
declare function preserveVars(options?: PreserveVarsOptions): Plugin;
declare namespace preserveVars {
  var postcss: boolean;
}
/**
 * PostCSS plugin to remove the temporary preserve rule after pruning.
 * Run this AFTER postcss-prune-var.
 */
declare function preserveVarsCleanup(): Plugin;
declare namespace preserveVarsCleanup {
  var postcss: boolean;
} //#endregion
//#endregion
export { type PreserveVarsOptions, preserveVars, preserveVarsCleanup };