import { ColorFormat } from '../../../Types/ColorFormat';
/**
 * Utility class for color operations in the ColorBox component.
 *
 * @public
 */
export declare class ColorUtils {
    /**
     * Gets the validation pattern for a specific color format.
     *
     * @param format - The color format to get the pattern for.
     * @returns The regex pattern string for the format.
     * @public
     * @static
     */
    static getPatternForFormat(format: ColorFormat): string;
    /**
     * Gets a pattern that matches any supported color format.
     *
     * @returns The regex pattern string that matches any color format.
     * @public
     * @static
     */
    static getAnyColorPattern(): string;
    /**
     * Validates if a color string matches the expected format.
     *
     * @param value - The color string to validate.
     * @param format - The expected color format (optional, validates against any format if not provided).
     * @returns True if the color string is valid.
     * @public
     * @static
     */
    static isValidColor(value: string, format?: ColorFormat): boolean;
    /**
     * Converts a color string from one format to another.
     *
     * @param value - The color string to convert.
     * @param targetFormat - The target color format.
     * @returns The converted color string, or the original value if conversion fails.
     * @public
     * @static
     */
    static convertColor(value: string, targetFormat: ColorFormat): string;
    /**
     * Detects the color format from a color string.
     *
     * @param value - The color string to analyze.
     * @returns The detected color format, or hex as default.
     * @public
     * @static
     */
    static detectFormat(value: string): ColorFormat;
    /**
     * Parses any valid color string and returns a normalized hex value.
     * Useful for internal color processing.
     *
     * @param value - The color string to parse.
     * @returns The hex color string, or null if invalid.
     * @public
     * @static
     */
    static toHex(value: string): string | null;
}
//# sourceMappingURL=ColorUtils.d.ts.map