export type ArrowDirection = 'up' | 'down' | 'left' | 'right'; export type RGBKey = 'r' | 'g' | 'b'; export type HSLKey = 'h' | 's' | 'l'; export type HSBKey = 'h' | 's' | 'v'; export type AlphaKey = 'a'; export type ColorKey = RGBKey | HSLKey | HSBKey | AlphaKey; export interface Coordinates { x: number; y: number; } export declare const COLOR_NUMBER_VALIDATION_PATTERN: RegExp; export declare const HEX_VALIDATION_PATTERN: RegExp; export declare const DEFAULT_SWATCH: string[]; export declare function getFractionDigit(data: number | string): number; export declare function clamp(value: number, min: number, max: number): number; export declare function truncColorValue(value: string): number; export declare function getColorConstraints(key: ColorKey): { min: number; max: number; }; export declare function bumpColorValue(value: number, direction: Omit | null): number; export declare function getPageXYFromEvent(e: MouseEvent | TouchEvent): Coordinates; export declare function getScrollXY(): Coordinates; /** get the position of the container relative to the document’s edge, regardless of any scrolling that has occurred */ export declare function getAbsolutePosition(container: HTMLElement): Coordinates; export declare function resolveArrowDirection(e: KeyboardEvent): ArrowDirection;