UNPKG

usfm-editor

Version:
29 lines (28 loc) 1.54 kB
import * as React from "react"; import { UsfmEditorRef, ForwardRefUsfmEditor, HocUsfmEditorProps, Verse } from "../UsfmEditor"; import { UsfmEditorProps } from ".."; export declare function withToolbar<W extends UsfmEditorRef>(WrappedEditor: ForwardRefUsfmEditor<W>): ForwardRefUsfmEditor<ToolbarEditor<W>>; declare class ToolbarEditor<W extends UsfmEditorRef> extends React.Component<HocUsfmEditorProps<W>> implements UsfmEditorRef { static propTypes: { usfmString: import("prop-types").Validator<string>; onChange: import("prop-types").Requireable<(...args: any[]) => any>; readOnly: import("prop-types").Requireable<boolean>; identification: import("prop-types").Requireable<object>; onIdentificationChange: import("prop-types").Requireable<(...args: any[]) => any>; goToVerse: import("prop-types").Requireable<object>; onVerseChange: import("prop-types").Requireable<(...args: any[]) => any>; toolbarSpecs: import("prop-types").Requireable<object>; }; static defaultProps: Partial<UsfmEditorProps>; constructor(props: HocUsfmEditorProps<W>); wrappedEditorRef: React.RefObject<W>; wrappedEditorInstance: () => UsfmEditorRef; getMarksAtSelection: () => string[]; addMarkAtSelection: (mark: string) => void; removeMarkAtSelection: (mark: string) => void; getParagraphTypesAtSelection: () => string[]; setParagraphTypeAtSelection: (marker: string) => void; goToVerse: (verse: Verse) => void; render(): JSX.Element; } export {};