import { Editable } from '@editablejs/editor'; import * as _editablejs_models from '@editablejs/models'; import { Text, Editor } from '@editablejs/models'; type FontColorHotkey = Record boolean)>; interface FontColorOptions { hotkey?: FontColorHotkey; defaultColor?: string; } declare const FONTCOLOR_KEY = "fontColor"; interface FontColor extends Text { [FONTCOLOR_KEY]: string; } declare const FontColor: { isFontColor: (value: any) => value is FontColor; }; interface FontColorEditor extends Editor { toggleFontColor: (color: string) => void; } declare const FontColorEditor: { isFontColorEditor: (editor: Editor) => editor is FontColorEditor; isFontColor: (editor: Editor, value: any) => value is FontColor; 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; }) => FontColorOptions; }; declare const withFontColor: (editor: T, options?: FontColorOptions) => T & FontColorEditor; export { FontColorEditor, FontColorHotkey, FontColorOptions, withFontColor };