interface RGBA { r: number; g: number; b: number; a: number; } export declare function toRgba(color: string): RGBA; /** * It takes a hex color and an opacity value, and returns a new hex color with the * opacity value applied * @param {string} hex - The hex color to convert to rgba. * @param {number} opacity - number * @returns A string */ export declare function opacity(hex: string, opacity: number): string; /** * It takes a hex color string, converts it to RGB, and then uses the W3C formula * to determine if the color is light or dark * @param {string} hex - The hex color to get the contrast of. * @returns A function that takes a hex color and returns the contrast color. */ export declare function contrast(hex: string, defaultHex?: string): string; /** * It returns a random color in hexadecimal format. * @returns A random color in hexadecimal format. */ export declare function randomColor(): string; /** * It takes a color and a percentage, and returns a color that is brighter or * darker than the original color by that percentage * @param color - The color you want to change the brightness of. * @param percent - The percentage of brightness to add or subtract. * @returns a string that is a hex color code. */ export declare function brightness(color: string, percent: number): string; /** * It takes a string or number, converts it to a number, and then uses that number * to generate a color. The same seed will always generate the same color. * @param {string | number} seed - The seed is the value that will be used to * generate the color. It can be a string or a number. * @returns A string */ export declare function colorWithSeed(seed: string | number): string; /** * It takes a color in hex, rgb, or rgba format and returns a new color that is a * shade of the original color * @param {string} baseColor - The base color to use. This can be a hex color, rgb * color, or rgba color. * @param {number} shade - number from -4 to 4. Negative numbers will return a * darker color, positive numbers will return a lighter color, and 0 will return * the original color. * @param {number} shift - number from 0 to 100. This is the percentage of the * original color to use in the new color. * @returns A string */ export declare function shade(baseColor: string, shade: number, shift?: number): string; export {};