import { n as ColorFormat } from "./color-formats-BDDzxjy6.mjs"; import { _ as TokenGraph, d as Project } from "./types-Cwn0Uyq2.mjs"; import { ListedToken } from "@terrazzo/plugin-token-listing"; //#region src/snapshot-for-wire.d.ts /** * Slimmed `ListedToken` — the three fields blocks actually consume. * Drops `originalValue` (large; not needed for display), the wrapping * `$extensions` envelope, and per-platform listings the blocks don't * render yet. */ interface SlimListedToken { names: Record; previewValue?: ListedToken['$extensions']['app.terrazzo.listing']['previewValue']; source?: ListedToken['$extensions']['app.terrazzo.listing']['source']; } /** * JSON-friendly snapshot of `Project` for wire transport (virtual * module body, HMR custom event, the addon's TOKENS_UPDATED_EVENT * Storybook-channel broadcast). Field set is the union every blocks-side * consumer reads; the manager-side INIT_EVENT shape is a subset (no * `css` / `listing`). */ interface SnapshotForWire { axes: Project['axes']; disabledAxes: Project['disabledAxes']; presets: Project['presets']; diagnostics: Project['diagnostics']; cssVarPrefix: string; /** Project-wide baseline for the block row-indicator strip; `config.indicators` passed through verbatim. */ indicators: Readonly>; /** Starting color format for blocks that display color values; `config.defaultColorFormat`, defaulted to `'hex'`. */ defaultColorFormat: ColorFormat; css: string; listing: Readonly>; defaultTuple: Project['defaultTuple']; tokenGraph: TokenGraph; } /** * Build the wire snapshot from a `Project` plus the emitter's CSS * string. The CSS isn't on `Project` itself — it's the * `emitAxisProjectedCss(project)` output that the addon's plugin * computes alongside the project load. */ declare function snapshotForWire(project: Project, css: string): SnapshotForWire; //#endregion export { SlimListedToken, SnapshotForWire, snapshotForWire }; //# sourceMappingURL=snapshot-for-wire.d.mts.map