UNPKG

@mcastiello/figmatic

Version:

17 lines (16 loc) 842 B
import { type Effect, type Paint, type StyleData, type TypeStyle, type Variable, type VariableCollection } from "../types"; import { ColorValue } from "./parse"; declare class TokensCollectionMap extends Map<string, Variable> { getByCollection(collectionId: string): Variable[]; getCollection(collectionId: string): VariableCollection | undefined; getCollections(): VariableCollection[]; setStyle(id: string, style: TypeStyle | Paint | Effect): void; getStyle(id: string): StyleData | undefined; getStyles(): StyleData[]; getByKey(key: string): Variable | undefined; getModeName(id: string): string | undefined; resolveTokenVariable(id: string): Record<string, boolean | number | string | ColorValue | undefined>; clear(): void; } export declare const TokensCollection: TokensCollectionMap; export {};