import * as React from 'react';
import { ReactNode } from 'react';
import { Editor, EditorOptions } from '@tiptap/react';
import { CommonInputProps, LabeledProps } from 'ra-ui-materialui';
/**
* A rich text editor for the react-admin that is accessible and supports translations. Based on [Tiptap](https://www.tiptap.dev/).
* @param props The input props. Accept all common react-admin input props.
* @param {EditorOptions} props.editorOptions The options to pass to the Tiptap editor. See Tiptap settings [here](https://tiptap.dev/api/editor#settings).
* @param {ReactNode} props.toolbar The toolbar containing the editors commands.
*
* @example
Customizing the editors options
* import { RichTextInput, RichTextInputToolbar } from 'ra-input-rich-text';
* const MyRichTextInput = (props) => (
* }
* label="Body"
* source="body"
* {...props}
* />
* );
*
* @example Customizing the toolbar size
* import { RichTextInput, RichTextInputToolbar } from 'ra-input-rich-text';
* const MyRichTextInput = (props) => (
* }
* label="Body"
* source="body"
* {...props}
* />
* );
*
* @example Customizing the toolbar commands
* import { RichTextInput, RichTextInputToolbar } from 'ra-input-rich-text';
* const MyRichTextInput = ({ size, ...props }) => (
*
*
*
*
*
*
*
*
*
*
* )}
* label="Body"
* source="body"
* {...props}
* />
* );
*/
export declare const RichTextInput: (props: RichTextInputProps) => React.JSX.Element;
export declare const DefaultEditorOptions: Partial;
export type RichTextInputProps = CommonInputProps & Omit & {
disabled?: boolean;
readOnly?: boolean;
editorOptions?: Partial;
toolbar?: ReactNode;
sx?: (typeof Root)['defaultProps']['sx'];
};
declare const Root: import("@emotion/styled").StyledComponent, Pick, HTMLDivElement>, keyof React.HTMLAttributes | keyof React.ClassAttributes>, {}>;
export type RichTextInputContentProps = {
className?: string;
editor?: Editor;
error?: any;
helperText?: ReactNode;
id: string;
isTouched: boolean;
isSubmitted: boolean;
invalid: boolean;
toolbar?: ReactNode;
};
export {};
//# sourceMappingURL=RichTextInput.d.ts.map