import { Editable } from '@editablejs/editor'; import * as _editablejs_models from '@editablejs/models'; import { Text, Editor } from '@editablejs/models'; type BackgroundColorHotkey = Record boolean)>; interface BackgroundColorOptions { hotkey?: BackgroundColorHotkey; defaultColor?: string; } declare const BACKGROUND_COLOR_KEY = "backgroundColor"; interface BackgroundColor extends Text { [BACKGROUND_COLOR_KEY]: string; } declare const BackgroundColor: { isBackgroundColor: (value: any) => value is BackgroundColor; }; interface BackgroundColorEditor extends Editor { toggleBackgroundColor: (color: string) => void; } declare const BackgroundColorEditor: { isBackgroundColorEditor: (editor: Editor) => editor is BackgroundColorEditor; isBackgroundColor: (editor: Editor, value: any) => value is BackgroundColor; queryActive: (editor: Editor) => string | null; toggle: (editor: Editor, size: string) => void; getOptions: (editor: _editablejs_models.BaseEditor & { isSolidVoid: (element: _editablejs_models.BaseElement) => boolean; isGrid: (value: any) => value is _editablejs_models.Grid; isGridRow: (value: any) => value is _editablejs_models.GridRow; isGridCell: (value: any) => value is _editablejs_models.GridCell; isList: (value: any) => value is _editablejs_models.List; getFragment: (range?: _editablejs_models.BaseRange | undefined) => _editablejs_models.Descendant[]; normalizeSelection: (fn: (selection: _editablejs_models.BaseSelection, options?: { grid: _editablejs_models.NodeEntry<_editablejs_models.Grid>; row: number; col: number; } | undefined) => void, at?: _editablejs_models.Location | undefined) => void; }) => BackgroundColorOptions; }; declare const withBackgroundColor: (editor: T, options?: BackgroundColorOptions) => T & BackgroundColorEditor; export { BackgroundColorEditor, BackgroundColorHotkey, BackgroundColorOptions, withBackgroundColor };