import React from "react"; import { TEditableProps, Value } from "../../slate"; import { TazeEditor } from "../../types/taze/TazeEditor"; export type TazeProps = TazeEditor> = { editor: E; plugins?: E["plugins"]; children?: React.ReactNode; /** * Initial value of the editor. * @default [{ children: [{ text: '' }]}] */ initialValue?: Value; /** * When `true`, it will normalize the initial value passed to the `editor` once it gets created. * This is useful when adding normalization rules on already existing content. * @default false */ normalizeInitialValue?: boolean; /** * Ref to the `Editable` component. */ editableRef?: React.Ref; /** * Custom `Editable` node. */ renderEditable?: (props: TEditableProps) => React.ReactNode; /** * `Editable` placeholder. */ placeholder?: string; /** * A component which placed before `Editable` */ beforeEditable?: React.ReactNode; /** * A component which placed after `Editable` */ afterEditable?: React.ReactNode; /** * If `true`, disable all the core plugins. * If an object, disable the core plugin properties that are `true` in the object. */ disableCorePlugins?: { inlineVoid?: boolean; history?: boolean; react?: boolean; } | boolean; /** * The controlled value of the editor. * Must be used in conjunction with `setValue`. */ value?: Value; /** * The controlled value setter function. */ setValue?: (value: Value) => void; }; export declare const Taze: ({ editor, children, initialValue, editableRef, renderEditable, placeholder, beforeEditable: _beforeEditable, afterEditable: _afterEditable, value: _value, setValue: _setValue, ...options }: TazeProps) => JSX.Element; //# sourceMappingURL=Taze.d.ts.map