import { Plugin, type Transaction } from 'prosemirror-state'; /** * Collapses redundant nested lists inside list items * * Converts structures where a list item starts with * a nested list into a flat list structure * * IMPORTANT: must be registered AFTER MergeListsPlugin. * Collapsing may create adjacent lists that require merging */ export declare const collapseListsPlugin: () => Plugin; /** * Finds list items with redundant nesting, collapses them recursively, * and applies replacements in reverse document order */ export declare function collapseAllNestedListItems(tr: Transaction): number | null;