export declare function nudgeToneForContrast(color: {
    L: number;
    C: number;
    h: number;
}, againstHex: string, target: number, prefer: 'lighter' | 'darker'): {
    hex: string;
    L: number;
};
export declare function oklchFromHex(hex: string): {
    L: number;
    C: number;
    h: number;
};
export declare const wrapDeg: (d: number) => number;
export declare const hueDist: (a: number, b: number) => number;
export declare function dOKLCH(a: {
    L: number;
    C: number;
    h: number;
}, b: {
    L: number;
    C: number;
    h: number;
}): number;
export declare function ensureHueLeg(primaryHex: string, legs: number[], targetL: number, targetCmid: number, backgroundHex: string, prefer: 'lighter' | 'darker'): string;
export declare function separateRoles(aHex: string, bHex: string, backgroundHex: string, opts?: {
    minHue: number;
    minDE: number;
    minDL: number;
    minDC: number;
}): {
    a: string;
    b: string;
};
