import type { SlateEditor } from '@udecode/plate-common'; import type { Node, NodeEntry } from 'slate'; import type { ListsSchema } from '../types'; /** * If "list-item-text" somehow (e.g. by deleting everything around it) ends up * at the root of the editor, we have to convert it into a "default-block". * ---- * Alternatively we could wrap it in a "list-item", but it's unlikely that it's * the expected behavior. The only case where it would be expected is during * pasting, so we have a separate rule for that in `deserializeHtml`. */ export declare function normalizeOrphanListItemText(editor: SlateEditor, schema: ListsSchema, [node, path]: NodeEntry): boolean;