import { InjectionToken, type Provider } from '@angular/core'; import { type EditorOptions } from '@tiptap/core'; import { type EditorProps } from '@tiptap/pm/view'; import { tuiDefaultFontOptionsHandler } from './default-font-options-handler'; import { type TuiEditorLinkOptions } from './default-link-options-handler'; import { type TuiEditorToolType } from './editor-tool'; export interface TuiEditorOptions extends Partial { readonly blankColor: string; readonly colors: ReadonlyMap; readonly textColors: ReadonlyMap | null; readonly backgroundColors: ReadonlyMap | null; readonly fontOptions: typeof tuiDefaultFontOptionsHandler; readonly icons: { readonly addRowTable: string; readonly anchor: string; readonly attach: string; readonly clear: string; readonly code: string; readonly colorSelectorDropdownCheck: string; readonly colorSelectorDropdownChevron: string; readonly detailsAdd: string; readonly detailsRemove: string; readonly fontSize: string; readonly fontStyleBold: string; readonly fontStyleItalic: string; readonly fontStylePreview: string; readonly fontStyleStrike: string; readonly fontStyleUnderline: string; readonly groupAdd: string; readonly groupRemove: string; readonly hr: string; readonly image: string; readonly indent: string; readonly insertTable: string; readonly tableCellMerge: string; readonly tableCellSplit: string; readonly link: string; readonly listOrdered: string; readonly taskList: string; readonly listPreview: string; readonly listUnOrdered: string; readonly outdent: string; readonly paint: string; readonly popupLinkRemove: string; readonly popupLinkSave: string; readonly hash: string; readonly externalLink: string; readonly popupPreviewLinkClear: string; readonly popupPreviewLinkEdit: string; readonly quote: string; readonly redo: string; readonly sub: string; readonly sup: string; readonly tex: string; readonly textAlignCenter: string; readonly textAlignJustify: string; readonly textAlignLeft: string; readonly textAlignPreview: string; readonly textAlignRight: string; readonly textColor: string; readonly textHilite: string; readonly undo: string; readonly imageExtension: { readonly link: string; readonly settings: string; readonly previewLink: string; readonly previewEditLink: string; readonly alignJustify: string; readonly alignCenter: string; readonly alignLeft: string; readonly alignRight: string; }; }; readonly linkOptions?: TuiEditorLinkOptions; readonly spellcheck: boolean; readonly enableDefaultStyles: boolean; readonly translate: 'no' | 'yes'; readonly tools: Set | readonly TuiEditorToolType[]; readonly floatingToolbar: boolean; /** * @deprecated use placeholder */ readonly exampleText: string; readonly placeholder: string; readonly editorProps?: EditorProps; } export declare const TUI_EDITOR_DEFAULT_OPTIONS: TuiEditorOptions; export declare const TUI_EDITOR_OPTIONS: InjectionToken; export declare function provideTuiEditorOptions(options: Partial | (() => Partial)): Provider; export { /** * @deprecated use {@link provideTuiEditorOptions} */ provideTuiEditorOptions as tuiEditorOptionsProvider, };