import { InputWrapperProps } from '@mantine/core';
import { RichTextEditorProps as MantineRTEProps } from '@mantine/tiptap';
import { Extension } from '@tiptap/core';
import * as React from 'react';
export interface RichTextEditorHandle {
    getHTML: () => string;
    insertAnswerRef: (attrs: Record<string, unknown>) => void;
    insertContent: (content: Record<string, unknown> | string) => void;
}
export interface RichTextEditorProps extends Omit<MantineRTEProps, 'children' | 'editor' | 'onChange'> {
    children?: React.ReactNode;
    defaultValue?: string;
    description?: InputWrapperProps['description'];
    disabled?: boolean;
    error?: InputWrapperProps['error'];
    extensions?: Extension[];
    hideToolbar?: boolean;
    label?: string;
    onAnswerRefClick?: (confirm: (attrs: Record<string, unknown>) => void, current?: Record<string, unknown>) => void;
    onChange?: (html: string) => void;
    placeholder?: string;
    required?: boolean;
    tooltip?: string;
    withAsterisk?: boolean;
}
declare const RichTextEditor: React.ForwardRefExoticComponent<RichTextEditorProps & React.RefAttributes<RichTextEditorHandle>>;
export default RichTextEditor;
//# sourceMappingURL=index.d.ts.map