import type { Extension } from '@prezly/slate-commons'; import type { SlateEditor } from '@udecode/plate-common'; import type { Descendant } from 'slate'; export interface SerializingEditor { serialize(nodes: Descendant[]): Descendant[]; } export declare function withSerialization(getExtensions: () => Extension[]): (editor: T) => T & SerializingEditor;