import { HeadlessEditor, Plugin } from 'headless-json-editor'; /** * Add a plugin to an editor instance * * @example * import { useEditor, useEditorPlugin } from '@sagold/react-json-editor'; * * function WebFormComponent() { * const editor = useEditor(options) * useEditorPlugin(editor, plugin); * * // ... * * @param editor to add plugin to. Skips adding plugin if editor is empty * @param plugin plugin to add * @param options plugin options to pass to addPlugin * @returns plugin instance used by editor */ export declare function useEditorPlugin(editor?: E | null, plugin?: T, options?: Parameters[1]): ReturnType | undefined;