import type { DeserializeElement } from '@prezly/slate-commons'; import type { Descendant, Element } from 'slate'; import type { HTMLElement } from './dom'; export type ElementsDeserializer = (node: HTMLElement, children: Descendant[]) => Element | null; export declare function createElementsDeserializer(deserialize: DeserializeElement, onError: (error: unknown) => void): ElementsDeserializer;