import { DefaultTheme, StyledProps } from 'styled-components'; import { StatusType } from '../../HOC'; import { Palette } from './palette'; export type ComponentVariants = { [key: string]: { [key: string]: any; }; }; /** * Get the CSS associated with a variant key * @param variants -- Component variants data structure * @param variantProp -- The key (enum) for looking up the variant value * @todo This needs to be typed better */ export declare const getVariantCSS: (variants: ComponentVariants, variantProp: string) => (props: StyledProps) => any; /** * Build :root { --var } key value pairs from Palette */ export declare const getRootCssVars: ({ theme }: { theme: DefaultTheme; }) => string; /** * Retrive the correct palette value based on the provided status type. * Falls back to optionally provided palette key, then to 'inherit'. */ export declare const getStatusColor: (theme: DefaultTheme, status?: StatusType, defaultKey?: keyof typeof Palette) => string; /** * A list of languages supported by the OpenFin UI. */ export declare const SUPPORTED_LANGUAGES: readonly ["en-US", "ja-JP", "zh-CN", "ko-KR", "ru-RU", "de-DE", "zh-Hant"]; /** * The type of the supported languages. * @link supportedLanguages */ export type Languages = typeof SUPPORTED_LANGUAGES[number];