export declare function clamp(val: number, max?: number): number;
export declare function integerFromPercent(n: string, size: number): number;
export declare function floatFromPercent(n: string): number;
export declare function roundToPrecision(n: number, precision?: number): number;
export declare function extractColorParts(input: string, regex: RegExp): RegExpExecArray;
export declare function parseRGBParts(parts: string[]): {
    r: number;
    g: number;
    b: number;
    a: number;
};
export declare function parseHSLParts(parts: string[]): {
    h: number;
    s: number;
    l: number;
    a: number;
};
export declare function parseToInteger(part: string, size: number): number;
export declare function parseToFloat(part: string): number;
export declare function hue2rgb(hue: number, t1: number, t2: number): number;
export declare const isColor: (input: string) => boolean;
