import { ContentEditableAdapter, DocumentNode, MarkType, RichContentConfig, RichContentService, RichContentState, Selection } from '@codella-software/utils/rich-content'; /** * Hook options for useRichContent */ export interface UseRichContentOptions extends RichContentConfig { /** DOM element ref for contentEditable */ editorRef?: React.RefObject; /** Custom adapter instance */ adapter?: ContentEditableAdapter; } /** * Hook return value for useRichContent */ export interface UseRichContentReturn { /** Service instance */ service: RichContentService; /** Current document content */ content: DocumentNode; /** Full state object */ state: RichContentState; /** Current editor focus state */ isFocused: boolean; /** Can undo */ canUndo: boolean; /** Can redo */ canRedo: boolean; /** Active mark types */ selectedFormats: Set; /** Current selection */ selection: Selection | null; /** Is dirty (has unsaved changes) */ isDirty: boolean; /** Insert text */ insertText: (text: string) => void; /** Insert paragraph */ insertParagraph: () => void; /** Insert heading */ insertHeading: (level: 1 | 2 | 3 | 4 | 5 | 6) => void; /** Insert image */ insertImage: (url: string) => void; /** Upload image file */ uploadImage: (file: File) => Promise; /** Insert mention */ insertMention: (id: string, label: string) => void; /** Insert list */ insertList: (type: 'ordered' | 'unordered') => void; /** Toggle mark */ toggleMark: (mark: MarkType) => void; /** Delete content */ deleteContent: () => void; /** Undo */ undo: () => void; /** Redo */ redo: () => void; /** Clear history */ clearHistory: () => void; /** Focus editor */ focus: () => void; /** Set focus state */ setFocus: (focused: boolean) => void; /** Get plain text */ getPlainText: () => string; /** Set selection */ setSelection: (selection: Selection | null) => void; } /** * React hook that wraps RichContentService and manages state subscriptions */ export declare function useRichContent(options?: UseRichContentOptions): UseRichContentReturn; //# sourceMappingURL=useRichContent.d.ts.map