/** * Pure mapping from Figma REST structures to a {@link DesignReference}. No I/O — * the adapter does the fetching and hands the parsed structures here. */ import type { DesignReference, Image, ReferenceProperty } from "@design-parity/core"; import type { FigmaNodeDoc, FigmaStyleMeta, VariablesResponse } from "./figma-api.js"; export interface NormalizeInput { componentId: string; ref: string; /** Structure node used for token extraction (padding, radius, fills, text). */ node: FigmaNodeDoc; variables: VariablesResponse; /** File-level published-style metadata (style id → name/type) for the node. */ styles?: Record; /** The component properties the render used — what the reference depicts. */ properties?: ReferenceProperty[]; referenceImages: Image[]; /** * Source pixels per dp of this board, from the design map entry — see * {@link AdapterContext.density}. * * Converts every length captured off the artwork into the code's units, and * stamps the factor onto the layout so a consumer measuring those boxes knows * what they are. Absent means the capture is already in the code's units, * which is the documented reading of an unstated scale. */ density?: number; } /** Build a `DesignReference` with `linkMethod: "code-connect"`. */ export declare function normalizeReference(input: NormalizeInput): DesignReference; //# sourceMappingURL=normalize.d.ts.map