import type { WithSize } from '@os-design/styles'; import { Editor as DraftEditor, type EditorProps as DraftEditorProps, EditorState } from 'draft-js'; import type { BlockToolbarItem } from './blocks/types.js'; import { type StyleToolbarItem } from './utils/defaultStyleToolbarItems.js'; export interface EditorProps extends Omit, WithSize { /** * Whether the editor is disabled. * @default false */ disabled?: boolean; /** * Available styles in the toolbar. * @default undefined */ styleToolbarItems?: StyleToolbarItem[]; /** * Available blocks in the toolbar. * @default undefined */ blockToolbarItems?: BlockToolbarItem[]; /** * The editor state. * @default undefined */ value?: EditorState; /** * The default value. * @default undefined */ defaultValue?: EditorState; /** * The change event handler. * @default undefined */ onChange?: (value: EditorState) => void; } /** * Rich text editor based on the Draft.js. */ declare const Editor: import("react").ForwardRefExoticComponent>; export default Editor; //# sourceMappingURL=index.d.ts.map