import { NodeInterface, EditorInterface } from '@aomao/engine'; import { AnyColor, Colord, HslaColor, HsvaColor, RgbaColor } from 'colord'; export declare type Options = { colors: Array>; defaultColor?: string; onChange?: (color: string) => void; onDestroy?: () => void; }; declare class Color { #private; constructor(editor: EditorInterface, cardId: string, options: Options); getButton(): NodeInterface; select(color: string): void; change(color: string): void; toState(color: (AnyColor | Colord) & { hex?: string; h?: string; source?: string; }, oldHue?: number): { hsl: HslaColor; hex: string; rgb: RgbaColor; hsv: HsvaColor; oldHue: string | number; source: string | undefined; }; render(): void; windowClick: (event: MouseEvent) => void; remove(): void; destroy(): void; } export default Color;