import { type Extension, type OnKeyDown } from '@prezly/slate-commons'; import type { PlateEditor, PlatePlugin } from '@udecode/plate-common/react'; import type { KeyboardEvent } from 'react'; import type { Value } from './types'; interface Parameters { extensions: Extension[]; initialValue: Value; onKeyDown?: (event: KeyboardEvent) => void; plugins?: PlatePlugin[] | undefined; } interface State { editor: PlateEditor; onKeyDownList: OnKeyDown[]; } export declare function useCreateEditor({ extensions, initialValue, onKeyDown, plugins, }: Parameters): State; export {};