import { Overwrite, Delete, OverwriteFnReturnType } from '@craftjs/utils'; import { EditorCollector, useInternalEditorReturnType } from '../editor/useInternalEditor'; type PrivateActions = 'addLinkedNodeFromTree' | 'setNodeEvent' | 'setDOM' | 'replaceNodes' | 'reset'; export type WithoutPrivateActions = Delete['actions'], PrivateActions | 'history'> & { history: Overwrite['actions']['history'], { ignore: OverwriteFnReturnType['actions']['history']['ignore'], PrivateActions>; throttle: OverwriteFnReturnType['actions']['history']['throttle'], PrivateActions>; }>; }; export type useEditorReturnType = Overwrite, { actions: WithoutPrivateActions; query: Delete['query'], 'deserialize'>; }>; /** * A Hook that that provides methods and information related to the entire editor state. * @param collector Collector function to consume values from the editor's state */ export declare function useEditor(): useEditorReturnType; export declare function useEditor(collect: EditorCollector): useEditorReturnType; export {};