/** * Runtime color type used by the generated color registry. * * @category Theme */ export type ColorType = 'semantic' | 'surface' | 'extended' | 'base' | 'border' | 'text' | 'theme'; /** * Metadata entry describing how a color name should be used. * * @category Theme */ export interface ColorRegistryEntry { /** Usage type assigned to the color name. */ type: ColorType; /** Paired contrast color name (e.g. `primary` -> `onPrimary`). */ onColor?: string; } /** * Global color registry keyed by theme color names. * * @category Theme */ export type ColorRegistry = Record; /** * Replaces the global color registry. * * @param registry - New registry produced by theme generation. * @category Theme */ export declare function setColorRegistry(registry: ColorRegistry): void; /** * Returns the current global color registry. * * @returns The last registry set by theme generation. * @category Theme */ export declare function getColorRegistry(): ColorRegistry;