import type { IToolbarConfig } from './IToolbarConfig'; import '../../styles/toolbar.scss'; import type { ToolbarElement } from './ToolbarElement'; import type { Document, SearchService, SelectionService, ContentService } from '@fast-editor/core'; import type { Editor } from 'src/Editor'; import Controller from '../Controller'; export declare class ToolbarController extends Controller { protected readonly container: HTMLDivElement; protected readonly overlayContainer: HTMLDivElement; readonly config: IToolbarConfig; toolbarFormatElements: Map; toolbarSearchElements: Map; toolbarHistoryElements: Map; toolbarSelectionElements: Map; currentFormat: { [key: string]: Set; }; hasChange: boolean; private contentService; private searchService; private selectionService; constructor(editor: Editor, doc: Document, contentService: ContentService, searchService: SearchService, selectionService: SelectionService, container: HTMLDivElement, overlayContainer: HTMLDivElement, config: Partial); flattenFormat(format: { [key: string]: Set; }): { [key: string]: any; }; setHistoryStatus(status: { canUndo: boolean; canRedo: boolean; stackLength: number; current: number; }): void; protected initEvent(): void; protected initDom(): void; protected createFirstLine(): void; protected createExpandButtons(): void; protected createToolbarElement(name: string): HTMLElement | null; protected emitFormat(format: { [key: string]: any; }): void; private getCurrentFormat; private setFormat; }