import { Editor } from '@tiptap/react'; import { RichTextValue } from '../types/RichTextEditor.types.ts'; import { RichTextEditorLabels } from '../types/RichTextEditorLabels.types.ts'; import { Context } from 'react'; export type RichTextEditorContextValue = { editor: Editor | null; disabled: boolean; readOnly: boolean; onImageUpload?: (file: File) => Promise; label?: string; helperText?: string; error?: string; ariaLabel?: string; ariaLabelledBy?: string; labelId: string; helperId: string; name?: string; required: boolean; renderedValue: RichTextValue; labels: RichTextEditorLabels; }; export declare const RichTextEditorContext: Context; export declare const useRichTextEditorContext: () => RichTextEditorContextValue;