export type DtcgType = "color" | "dimension" | "fontFamily" | "fontWeight" | "duration" | "cubicBezier" | "shadow" | "gradient" | "typography" | "transition" | "border" | "strokeStyle" | "number" | "string"; export type DtcgAlias = string; /** * DTCG aliasing also appears as a JSON-Pointer `$ref` object * (`{ "$ref": "#/color/brand/primary" }`) in tooling that follows the * JSON-Schema reference convention. Treated as equivalent to the * curly-brace `{color.brand.primary}` form. */ export interface DtcgRef { $ref: string; } interface DtcgTokenBase { $type?: DtcgType; $description?: string; $extensions?: Record; $deprecated?: boolean | string; } export interface DtcgToken extends DtcgTokenBase { $value: TValue | DtcgAlias; } export interface DtcgGroup { $type?: DtcgType; $description?: string; $extensions?: Record; [key: string]: DtcgGroup | DtcgToken | DtcgType | string | Record | undefined; } export type DtcgDocument = DtcgGroup; export declare function isDtcgToken(entry: unknown): entry is DtcgToken; export declare function isDtcgGroup(entry: unknown): entry is DtcgGroup; export declare function isDtcgAlias(value: unknown): value is DtcgAlias | DtcgRef; export declare function parseAliasPath(alias: DtcgAlias | DtcgRef): string[]; /** Human-readable rendering of an alias for diagnostics. */ export declare function formatAlias(alias: DtcgAlias | DtcgRef): string; export {};