import { SpecifyDesignTokenTypeName, TokenState } from '@specifyapp/specify-design-token-format'; import { jsonValueMatcher } from '../../utils/jsonValueMatcher.js'; export type AstMetadataPaths = { [type in SpecifyDesignTokenTypeName]?: Set; }; export type AstMetadata = { types?: Set; paths: Set; modes: Set; }; export type ValueWithMode = { [mode: string]: Value; }; export type AstToken = { path: string; value: ValueWithMode; }; export type AstData = { metadata: AstMetadata; tokens: Map; }; export type Ast = { dataByType: { [tokenType in SpecifyDesignTokenTypeName]?: AstData; }; collectionModes: { [collectionName: string]: Array; }; collectionPaths: { [collectionName: string]: Array; }; }; export type PrimitiveValue = string | number | Array>> | Record; isCode?: true; }>; export type Value = { value: PrimitiveValue; isCode?: true; }; export type Matcher = jsonValueMatcher; export declare function tokenToAstTokenValue(token: TokenState, matcher: Matcher): AstToken | undefined; //# sourceMappingURL=tokenToAstToken.d.ts.map