import Color from "color"; export declare type ColorInputType = string | Color; export interface HslaInputType { hue?: number; saturation?: number; lightness?: number; alpha?: number; } export declare const toRgb: (color: ColorInputType) => string; export declare const toHex: (color: ColorInputType) => string; export declare const toHsl: (color: ColorInputType) => string; export declare const darken: (color: ColorInputType, tonalOffset: number) => string; export declare const lighten: (color: ColorInputType, tonalOffset: number) => string; /** * Calculates the relative brightness of any point in a color space. */ export declare const getLuminance: (color: ColorInputType) => number; /** * Calculates the contrast ratio between two colors. * * A contrast ratio value in the range 1 (same color) to 21 (contrast b/w white and black). */ export declare const calculateContrastRatio: (foreground: ColorInputType, background: ColorInputType) => number; export declare const adjustColorHsla: (color: ColorInputType, adjustment: HslaInputType) => string; export declare const changeColorHsla: (color: ColorInputType, change: HslaInputType) => string; export declare const opaquify: (translucentForeground: ColorInputType, opaqueBackground: ColorInputType) => string;