import type { ObTokenCategory } from './obTokenMeta'; import type { GlobalToken } from './interface'; export interface ObCssVarEntry { /** Full CSS variable name, e.g. `--ob-color-bg-default` */ cssVar: string; /** Variable name without the `--ob-` prefix, e.g. `color-bg-default` */ name: string; /** Default theme value, identical to runtime injection */ value: string; /** camelCase JS token name; documented variables only */ jsToken?: string; /** Chinese description; documented variables only */ desc?: string; /** English description; documented variables only */ descEn?: string; /** `ObTokenCategory`; documented variables only */ category?: ObTokenCategory; /** Whether `obTokenMeta` documents the variable (deprecated compat vars are not documented) */ documented: boolean; } /** * Global token of the default theme, resolved the same way as the `token` static export * (`src/static-function/index.tsx`) and the docs token tables (`.dumi/theme/builtins/ObTokenTable`). */ export declare function getDefaultGlobalToken(): GlobalToken; /** * Every `--ob-*` variable injected by `genCssVariablesStyle`, in declaration order, with * `obTokenMeta` documentation joined by name. */ export declare function collectObCssVarEntries(token: GlobalToken, prefix?: string): ObCssVarEntry[]; /** `cssVar` → entry lookup for consumers that need their own ordering. */ export declare function getObCssVarEntryMap(token: GlobalToken, prefix?: string): Map;