import { C as Theme } from "./theme-BV1Omx5M.mjs"; import { Arrayable, CSSEntry, CSSObject, CSSValueInput, DynamicMatcher, RuleContext, StaticRule, UtilObject, VariantContext } from "@unocss/core"; export * from "@unocss/rule-utils"; export declare const PRESET_NAME = "@unocss/preset-wind4"; export declare const CONTROL_NO_NEGATIVE = "$$mini-no-negative"; export declare const SpecialColorKey: { transparent: string; current: string; inherit: string; }; declare namespace handlers_d_exports { export { auto, bracket, bracketOfColor, bracketOfFamily, bracketOfLength, bracketOfNumber, bracketOfPosition, cssvar, degree, fraction, global, none, number, numberWithUnit, percent, position, properties, px, rem, time }; } declare function numberWithUnit(str: string): string | undefined; declare function auto(str: string): "auto" | undefined; declare function rem(str: string): string | undefined; declare function px(str: string): string | undefined; declare function number(str: string): number | undefined; declare function percent(str: string): string | undefined; declare function fraction(str: string): string | undefined; declare function bracket(str: string, theme?: Theme): string | undefined; declare function bracketOfColor(str: string, theme?: Theme): string | undefined; declare function bracketOfLength(str: string, theme?: Theme): string | undefined; declare function bracketOfPosition(str: string, theme?: Theme): string | undefined; declare function bracketOfFamily(str: string, theme?: Theme): string | undefined; declare function bracketOfNumber(str: string, theme?: Theme): string | undefined; declare function cssvar(str: string): string | undefined; declare function time(str: string): string | undefined; declare function degree(str: string): string | undefined; declare function global(str: string): string | undefined; declare function properties(str: string): string | undefined; declare function position(str: string): string | undefined; declare function none(str: string): "none" | undefined; export declare const handler: import("@unocss/rule-utils").ValueHandler; export declare const h: import("@unocss/rule-utils").ValueHandler; export declare const directionMap: Record; export declare const insetMap: Record; export declare const cornerMap: Record; export declare const xyzMap: Record; export declare const xyzArray: string[]; export declare const positionMap: Record; export declare const globalKeywords: string[]; export declare const cssMathFnRE: RegExp; export declare const cssVarFnRE: RegExp; export declare function getTrackedTheme(theme: Theme): Set; /** * Keys tracked by every generator in this process, exposed as * `preset.meta.themeDeps`. It merges all generators and cannot be split * per generator. * * @deprecated use `getTrackedTheme(theme)` */ export declare const trackedTheme: Set; export declare function trackTheme(theme: Theme, key: string, props?: Arrayable): void; /** * @deprecated No longer affects the generated CSS, it only feeds * `preset.meta.themeDeps`. Pass the generator's theme instead: * `trackTheme(theme, key, props)`. * @example * // before * themeTracking('colors', 'red-500') * // -> .text-red-500{color:var(--colors-red-500)} * // but no --colors-red-500 in :root * // after, `theme` comes from the rule context * trackTheme(ctx.theme, 'colors', 'red-500') * // -> :root gets --colors-red-500 as well */ export declare function themeTracking(key: string, props?: Arrayable): void; export declare function generateThemeVariable(key: string, props: Arrayable): string; export declare function detectThemeValue(value: string, theme: Theme): void; export declare function getTrackedProperties(theme: Theme): Map; /** * `@property` registrations of every generator in this process, exposed as * `preset.meta.propertyDeps`. It merges all generators and cannot be split * per generator. * * @deprecated use `getTrackedProperties(theme)` */ export declare const trackedProperties: Map; export declare function trackProperty(theme: Theme, property: string, value: string): void; /** * @deprecated No longer affects the generated CSS, it only feeds * `preset.meta.propertyDeps`. Pass the generator's theme instead: * `trackProperty(theme, property, value)`. * @example * // before * propertyTracking('--un-shadow', '0 0 #0000') * // -> .shadow{...} references var(--un-shadow) * // but the @supports fallback never declares it * // after, `theme` comes from the rule context * trackProperty(ctx.theme, '--un-shadow', '0 0 #0000') * // -> the @supports fallback keeps the registration */ export declare function propertyTracking(property: string, value: string): void; export declare function createRemToPxProcessor(base?: number): (utilObjectOrEntry: UtilObject | CSSEntry) => void; export declare function numberResolver(size: string, defaultValue?: string | number): number | undefined; /** * Returns a {@link DynamicMatcher} that generates spacing CSS properties for directional utilities. * * @param property - The base CSS property name (e.g. 'margin', 'padding'). * @param map - Optional mapping of direction keys to property postfixes. Defaults to {@link directionMap}. * @param formatter - Optional function to format the final property name. Defaults to `(p, d) => \`\${p}\${d}\``. */ export declare function directionSize(property: string, map?: Record, formatter?: (p: string, d: string) => string): DynamicMatcher; /** * Split utility shorthand delimited by / or : */ export declare function splitShorthand(body: string, type: string): string[] | undefined; /** * Parse color string into {@link ParsedColorValue} (if possible). Color value will first be matched to theme object before parsing. * See also color.tests.ts for more examples. * * @example Parseable strings: * 'red' // From theme, if 'red' is available * 'red-100' // From theme, plus scale * 'red-100/20' // From theme, plus scale/opacity * '[rgb(100 2 3)]/[var(--op)]' // Bracket with rgb color and bracket with opacity * '[rgb(100 2 3)]/[var(--op)]/[in_oklab]' // Bracket with rgb color, bracket with opacity and bracket with interpolation method * * @param body - Color string to be parsed. * @param theme - {@link Theme} object. * @return object if string is parseable. */ export declare function parseColor(body: string, theme: Theme): { opacity: string | undefined; modifier: string | undefined; name: string; no: string | undefined; color: string; alpha: string | undefined; /** * Keys means the color is from theme object. */ keys: string[] | undefined; readonly cssColor: import("@unocss/rule-utils").CSSColorValue | undefined; } | undefined; export declare function parseThemeColor(theme: Theme, keys: string[]): { color: string; no: string | undefined; keys: string[] | undefined; } | undefined; export declare function getThemeByKey(theme: Theme, themeKey: keyof Theme, keys: string[]): any; export declare function colorCSSGenerator(data: ReturnType, property: string, varName: string, ctx?: RuleContext): [CSSObject, ...CSSValueInput[]] | undefined; export declare function colorResolver(property: string, varName: string): ([, body]: string[], ctx: RuleContext) => (CSSValueInput | string)[] | undefined; export declare function colorableShadows(shadows: string | string[], colorVar: string, alpha?: string): string[]; export declare function hasParseableColor(color: string | undefined, theme: Theme): boolean; export declare function resolveBreakpoints({ theme, generator }: Readonly>, key?: 'breakpoint' | 'verticalBreakpoint'): { point: string; size: string; }[] | undefined; export declare function resolveVerticalBreakpoints(context: Readonly>): { point: string; size: string; }[] | undefined; export declare function makeGlobalStaticRules(prefix: string, property?: string): StaticRule[]; export declare function defineProperty(property: string, options?: { syntax?: string; inherits?: boolean; initialValue?: unknown; }): CSSValueInput; export declare function isSize(str: string): boolean; export declare function camelize(str: string): string; export declare function hyphenate(str: string): string; export declare function compressCSS(css: string, isDev?: boolean): string; export { handlers_d_exports as valueHandlers };