import type { FrameworkTokens } from './config'; /** * Watcher invoked whenever the token graph changes. */ export type TokenWatcher = (tokens: FrameworkTokens) => void; /** * Registers a watcher that will be notified whenever tokens are merged or * applied. Returns an unsubscribe function. */ export declare function watchTokens(fn: TokenWatcher): () => void; /** * Merges two token graphs. The resulting object is a new reference. */ export declare function mergeTokenGroups(base?: FrameworkTokens, partial?: FrameworkTokens): FrameworkTokens; /** * Produces a flattened representation of the tokens suitable for setting CSS * custom properties. */ export declare function flattenTokens(tokens: FrameworkTokens): Array<[string, string | number]>; /** * Applies the provided tokens onto the supplied element (defaults to * documentElement) using the `--fluent-` prefix convention. */ export declare function applyTokens(tokens: FrameworkTokens, root?: HTMLElement): void; //# sourceMappingURL=token-manager.d.ts.map