/** * Checks if a given string is a valid hexadecimal color code. * * A valid hexadecimal color code starts with a '#' followed by exactly six characters, * which can be digits from 0 to 9 or letters from a to f (case insensitive). * * @param {any} color - Anything to be tested as a hexadecimal color code string. * @returns {boolean} Returns `true` if the string is a valid hex color code, otherwise `false`. */ export declare function isHexColor(color: any): color is string; /** * Checks if a token specified by a path is a base token. eg. fontsize, palette * * @param {string} path - The dot-separated path string used to navigate through the nested token structure. * @returns {boolean} Returns `true` if the token found at the specified path is a base token, otherwise returns `false`. * If the path is invalid or does not lead to a token, the function also returns `false`. */ export declare function isBaseToken(path: string): boolean; /** * Checks if a token specified by a path is deprecated. * * This function navigates through a nested structure of tokens based on the given path. * The path is a string of property names separated by dots, used to traverse the nested * token structure. If the specified path leads to a token, the function checks if this token * is marked as deprecated. * * @param {string} path - The dot-separated path string used to navigate through the nested token structure. * @returns {boolean} Returns `true` if the token found at the specified path is deprecated, otherwise returns `false`. * If the path is invalid or does not lead to a token, the function also returns `false`. */ export declare function isDeprecatedToken(path: string): boolean; /** * Get a token from the JSON files * @param path - The dot-separated path to the token (e.g., "color.text.default") * @param fallback - The fallback value to use if the token isn't found * @param globalTheme - The global theme to use (e.g., 'light' or 'dark') * @param isShallow - If true, only return the shallow reference, eg. 'palette.danger' * @returns The token value or the fallback value */ export declare function token(path: string, fallback?: string, globalTheme?: string, isShallow?: boolean): string; export default token; //# sourceMappingURL=token.d.ts.map