import { CSSFunction, CSSSpace } from "../constants"; export declare type StringColorFormat = "css" | "binary"; export declare type NumberColorFormat = "decimal"; export declare type ColorFormat = StringColorFormat; export declare type Casing = "lower" | "upper" | "mixed"; /** * Formats the hex format of a generated color string according * to options specified by user. * * @param hexColor Hex color string to be formatted. * @param options Options object. * @param options.prefix Prefix of the generated hex color. Defaults to `'0x'`. * @param options.casing Letter type case of the generated hex color. Defaults to `'mixed'`. */ export declare function formatHexColor(hexColor: string, options?: { prefix?: string; casing?: Casing; }): string; /** * Converts an array of numbers into binary string format. * * @param values Array of values to be converted. */ export declare function toBinary(values: number[]): string; /** * Converts an array of numbers into CSS accepted format. * * @param values Array of values to be converted. * @param cssFunction CSS function to be generated for the color. Defaults to `'rgb'`. * @param space Color space to format CSS color function with. Defaults to `'sRGB'`. */ export declare function toCSS(values: number[], cssFunction?: CSSFunction, space?: CSSSpace): string; /** * Converts an array of color values to the specified color format. * * @param values Array of color values to be converted. * @param format Format of generated RGB color. * @param cssFunction CSS function to be generated for the color. Defaults to `'rgb'`. * @param space Color space to format CSS color function with. Defaults to `'sRGB'`. */ export declare function toColorFormat(values: number[], format: ColorFormat, cssFunction?: CSSFunction, space?: CSSSpace): string;