import { TypedEmitter } from 'tiny-typed-emitter';
import type { ColorPaletteOptions } from './create-palette';
import './palette.scss';
export { ColorPaletteOptions };
export type ColorType = 'color' | 'backgroundColor';
export interface ColorPaletteEvents {
    click: (type: ColorType | 'clearColor', value: number, item: ColorPalette) => void;
    beforePopup: () => void;
}
export default class ColorPalette extends TypedEmitter<ColorPaletteEvents> {
    options: ColorPaletteOptions;
    root: HTMLElement;
    constructor(options?: ColorPaletteOptions);
    destroy(): void;
    setColor(type: ColorType, value: number | null): void;
    handleClick: (event: MouseEvent) => void;
}
