import Quill from '../core/quill.js'; import Module from '../core/module.js'; import type { Range } from '../core/selection.js'; type Handler = (this: Toolbar, value: any) => void; export type ToolbarConfig = Array>>; export interface ToolbarProps { container?: HTMLElement | ToolbarConfig | null; handlers?: Record; option?: number; module?: boolean; theme?: boolean; } declare class Toolbar extends Module { static DEFAULTS: ToolbarProps; container?: HTMLElement | null; controls: [string, HTMLElement][]; handlers: Record; constructor(quill: Quill, options: Partial); addHandler(format: string, handler: Handler): void; attach(input: HTMLElement): void; update(range: Range | null): void; } declare function addControls(container: HTMLElement, groups: (string | Record)[][] | (string | Record)[]): void; export { Toolbar as default, addControls };