import type { Plugin } from 'vite'; type BreakpointSpec = Record | Array<[string, number]> | Array<{ name: string; min?: number; px?: number; }>; export interface UxDslPluginOptions { theme?: Record; references?: Record; breakpoints?: BreakpointSpec; /** Same meaning as postcss-uxdsl's own option: emit (or skip) the * global `:root` token definitions. Defaults to `true`. */ includeTheme?: boolean; /** MIG-B6-19 parity: when `theme` is omitted, discover * `uxdsl.theme.config.*`/`uxdsl.theme.json` from `configRoot` — the same * discovery uxdsl-cli and the plugin used directly both do. Default * `true`. Set `false` to always validate against the built-in default * theme, as every version of this plugin before this story did. */ discoverTheme?: boolean; /** Directory theme discovery searches from. Defaults to Vite's resolved * project root (`config.root`), not `process.cwd()` — the two commonly * differ (a monorepo running Vite with a non-default `root`). */ configRoot?: string; /** * Explicit-only SCSS pre-pass. The previous `'auto'` mode (silently * activated whenever the *host project* had `sass` installed, for any * reason) is removed: a `.uxdsl` file's own syntax ($var, xs()/md(), * palette(), @ds-*) is not valid SCSS, so an unrelated dependency * silently changing how every `.uxdsl` file compiles was never safe. * `'on'` keeps working exactly as before and is opt-in only. Plain * `$var`, `@each` and `@mixin` don't need this at all — * postcss-advanced-variables (already inside `compile()`) covers them. * Not covered by this story's CLI/core/Webpack parity guarantee. */ scss?: 'on' | 'off'; /** Additional Sass load paths. Only consulted when `scss: 'on'`. */ scssLoadPaths?: string[]; } export default function uxdsl(userOptions?: UxDslPluginOptions): Plugin; export {};