import type { DesignDocument } from '../document/contracts.js'; import type { StyleSourceTrace } from '../editor/styleSourceTrace.js'; import type { StyleDeclarationIdentity } from '../editor/styleSourceTrace.js'; export interface StyleTokenCatalog { libraryId: string; tokens: Record; types?: Record; /** Host-declared root selectors, keyed by collection and mode. No color-value inference. */ modeSelectors?: Record>; } /** Pick the declaration immediately before the first registered code token, not a matching resolved color. */ export declare function styleTraceBinding(trace: StyleSourceTrace, catalog: StyleTokenCatalog): { owner: StyleDeclarationIdentity; tokenId: string; } | { owner: StyleDeclarationIdentity; tokenId?: undefined; } | undefined; /** Imported values remain measured pixels; the accompanying token identity is source-authored. */ export declare function bindCapturedStyleVariables(document: DesignDocument, catalog: StyleTokenCatalog, capturedRoot?: Element): DesignDocument;