import { n as ColorFormat } from "./color-formats-BDDzxjy6.mjs"; import { SlimListedToken } from "./snapshot-for-wire.mjs"; //#region src/token-value-css.d.ts /** * Display a composite sub-field dimension (shadow offset / blur / spread, * border width, …) in the preview tables. Renders `—` for a missing * sub-field and falls back to JSON for shapes it doesn't recognize. * * Distinct from `formatTokenValue`'s internal `formatInternalDimension`, * which formats a token's top-level value and has no `—` placeholder — these * are the per-layer sample formatters shared by `ShadowPreview` + `BorderPreview`. */ declare function formatDimension(raw: unknown): string; /** Display a composite sub-field color via the active format; `—` when absent. */ declare function formatSubColor(raw: unknown, format: ColorFormat): string; /** * Single-line display string for any DTCG token `$value`. Prefers * plugin-css's `previewValue` from the Token Listing for non-color tokens * (and for color when the toolbar format is hex); other color formats route * through local colorjs.io. A raw primitive `$value` is the fallback only * when no `previewValue` is present. */ declare function formatTokenValue(value: unknown, $type: string | undefined, colorFormat: ColorFormat, listing?: SlimListedToken): string; //#endregion export { formatDimension, formatSubColor, formatTokenValue }; //# sourceMappingURL=token-value-css.d.mts.map