import { Theme, Tokens } from '@ifsworld/granite-tokens'; export declare const TOKEN_PREFIX = "granite-"; export declare const TOKEN_PREFIX_OLD = "fnd-"; /** * Get the theme that corresponds to a given ID */ export declare function getThemeById(themes: Theme[], id: string): Theme | undefined; /** * Apply a theme to a DOM element by iterating though all tokens, * setting a CSS variable for each one. * * @param theme Theme to set * @param element Target element */ export declare function applyTheme(theme: Theme, element: HTMLElement): void; /** * Set a CSS variable for each token on the specified element. * * @param theme Theme to set * @param element Target element */ export declare function applyTokens(tokens: Tokens, element: HTMLElement): void; /** * Remove theme token CSS variables from an element using the specified keys * * @param theme Theme with tokens to clear * @param element Target element */ export declare function clearTheme(theme: Theme, element: HTMLElement): void; /** * Remove token CSS variables from an element using the specified keys. * * @param keys Token keys * @param element Target element */ export declare function clearTokens(keys: string[], element: HTMLElement): void; export declare function isValidToken(key: string): boolean; export declare function setPropertyValue(name: string, value: string, element: HTMLElement): void;