import type { Editor, Extensions } from '@tiptap/core'; import { normalizeDocumentPageChromeHref } from '../work-document-page-chrome-commands'; import { type WorkDocumentUnderlineStyle } from '../work-document-underline'; import { type WorkDocumentStrikeStyle } from '../work-document-strike'; export type DocumentPageChromeAlignment = 'center' | 'justify' | 'left' | 'right'; export interface DocumentPageChromeEditorState { alignment: DocumentPageChromeAlignment; bold: boolean; canRedo: boolean; canUndo: boolean; color: string; italic: boolean; link: string | null; strike: boolean; strikeStyle: WorkDocumentStrikeStyle; subscript: boolean; superscript: boolean; underline: boolean; underlineColor: string | null; underlineStyle: WorkDocumentUnderlineStyle; } export interface DocumentPageChromeRichTextEditorProps { autoFocus?: boolean; className?: string; label: string; value: string; onChange: (html: string) => void; onEditorChange?: (editor: Editor | null) => void; onExit?: () => void; showToolbar?: boolean; } export declare function DocumentPageChromeRichTextEditor({ autoFocus, className, label, value, onChange, onEditorChange, onExit, showToolbar, }: DocumentPageChromeRichTextEditorProps): import("react").JSX.Element; export declare function createDocumentPageChromeEditorExtensions(placeholder?: string): Extensions; export declare function documentPageChromeEditorState(editor: Editor): DocumentPageChromeEditorState; export { normalizeDocumentPageChromeHref }; export type DocumentPageChromeImageLoadResult = { ok: true; alt: string; source: string; } | { ok: false; title: string; description: string; }; export declare function loadDocumentPageChromeImage(file: File): Promise;