type ColorExtract = {
    blue?: number;
    c?: number;
    green?: number;
    hex?: string;
    k?: number;
    m?: number;
    red?: number;
    y?: number;
};
export declare enum ColorType {
    Cmyk = "cmyk",
    Hex = "hex",
    Rgb = "rgb",
    Unknown = "unknown"
}
/**
 * >>>> Color related regex below
 */
export declare const HEX_VALIDATION_REGEX: RegExp;
export declare const RGB_VALIDATION_REGEX: RegExp;
export declare const CMYK_VALIDATION_REGEX: RegExp;
export declare const HEX_ALPHA_VALIDATION_REGEX: RegExp;
/**
 * >>>> Color related functions below
 */
export declare function getColorType(input: string): ColorType;
/**
 * Main convert functions
 */
export declare function extractColor(input: string): ColorExtract;
/**
 * format can you these values: hex, red, green, blue, c, m, y, k
 * Example: "#hex", "red, green, blue", "c, m, y, k"
 * Example: "hex", "(red | green | blue)", "(c & m & y & k)"
 *
 * Default format for hex is "#hex"
 * Default format for rgb is "red, green, blue"
 * Default format for cmyk is "c, m, y, k"
 */
export declare function convertColor(input: string, to: ColorType, format?: string): string;
/**
 * Calculate luminance & return text color that contrast to the background
 * @param backgroundColor - The background color to calculate luminance - must be a valid HEX color!
 */
export declare function luminanceTextColor(backgroundColor: string, textColor?: string, textContrastColor?: string): string;
/**
 * Extracts light and dark color values from a CSS light-dark() function.
 * Handles nested parentheses for color formats like rgb(), hsl(), etc.
 * @param value - String containing light-dark(), e.g. "light-dark(#000, #fff)" or "light-dark(rgb(0,0,0), rgb(255,255,255))"
 * @returns Space-separated light and dark colors, or empty string if invalid
 * @example parseLightDark("light-dark(#000, #fff)") => "#000 #fff"
 */
export declare function parseLightDark(value: string): string;
/**
 * Converts two color values into a CSS light-dark() function string.
 * @param light - The color for light mode (hex, rgb, rgba, hsl, hsla)
 * @param dark - The color for dark mode (hex, rgb, rgba, hsl, hsla)
 * @returns CSS light-dark() string, e.g. "light-dark(#000, #fff)"
 * @example getLightDarkCssString("#000", "#fff") => "light-dark(#000, #fff)"
 */
export declare function getLightDarkCssString(light: string, dark: string): string;
/**
 * Parses a border value containing light-dark() into space-separated color and size parts.
 * @param value - Border value string containing light-dark(), e.g. "light-dark(#000, #fff) 0px"
 * @returns Space-separated string of light color, dark color, and size, or null if invalid
 * @example parseBorder("light-dark(#000, #fff) 0px") => "#000 #fff 0px"
 */
export declare function parseBorder(value: string): string | null;
/**
 * Parses a shadow value containing light-dark() into space-separated offset and color parts.
 * @param value - Shadow value string, e.g. "0px 0px 0px 0px light-dark(#000, #fff)"
 * @returns Space-separated string of offsets followed by colors, or empty string if invalid
 * @example parseShadow("0px 0px 0px 0px light-dark(#000, #fff)") => "0px 0px 0px 0px #000 #fff"
 */
export declare function parseShadow(value: string): string;
export {};
