import { PrismEditor } from '..'; /** * Hook used to access the editor and its props from an extension. * * @throws {Error} when called outside an editor extension. * * @example * const [editor, props] = usePrismEditor() */ declare const usePrismEditor: () => [PrismEditor, import('..').EditorProps]; /** * Hook used to access an editor's value and rerender when it changes. */ declare const useEditorValue: (editor: PrismEditor) => string; /** * Hook used to access an editor's selection and rerender when it changes. */ declare const useEditorSelection: (editor: PrismEditor) => import('..').InputSelection; export { usePrismEditor, useEditorValue, useEditorSelection };