import Color from 'color'; import type { TypographStyle } from './types'; /** * Convert color to hex or rgba for alpha channel * * @param clr color string to convert */ export declare const humanizeColor: (clr: string) => string; export declare const getHEXAColor: (clr: string) => string; export declare const getHSLARawColor: (clr: string) => Color | { [key: string]: any; }> | ArrayLike | { [key: string]: any; }> | ArrayLike | { [key: string]: any; }> | ArrayLike | { [key: string]: any; }> | ArrayLike | { [key: string]: any; }> | ArrayLike | { [key: string]: any; }> | ArrayLike | { [key: string]: any; }> | ArrayLike | { [key: string]: any; }> | ArrayLike | { [key: string]: any; }> | ArrayLike | { [key: string]: any; }> | ArrayLike | { [key: string]: any; }> | ArrayLike | { [key: string]: any; }>; /** * Осветлить/затемнить на x процентных пунктов. */ export declare const lightenColor: (color: string, value: number) => string; /** * Изменить непрозрачность цвета на x. */ export declare const alphenColor: (color: string, value: number, format?: "hexa" | "rgba", isRaw?: boolean) => string; /** * Преобразует название и значение токена в CSS Var. * @param {string} name * @param {string|number} value * @param {withDesignPrefix|undefined} withDesignPrefix * @return {string} */ export declare const toCSSVarTokenWithValue: (name: string, value: string | number, withDesignPrefix?: boolean) => string; export declare const capitalize: (str: string) => string; /** * Конвертация значений fontSize и lineHeight из пикселей в ремы. * @param {TypographStyle} style * @return {TypographStyle} */ export declare const convertPixelsToRems: (style: TypographStyle) => TypographStyle; /** * Композиция функций. */ export declare const compose: (...fns: Array<(s: TypographStyle) => TypographStyle>) => (s: TypographStyle) => TypographStyle; /** * Извлечение цвета и прозрачности из ссылочного токена. * @example '[genera.red.500][-0.99]' => ['genera.red.500', '-0.99'] * @example '[genera.red.500]' => ['genera.red.500'] */ export declare const extractColors: (value: string) => RegExpExecArray | [];