import { MilkdownPlugin } from '@milkdown/kit/ctx'; import { Node as PMNode, NodeType } from '@milkdown/kit/prose/model'; export interface OrderedListItemFix { pos: number; attrs: Record; } /** * Platform's `list_item` has no `listType`/`label` attrs, so Y.js-hydrated items inside an * `ordered_list` get Milkdown's defaults (`bullet`, `•`) and Crepe renders them as bullets. * Returns the attr fixes needed so ordered items render numbered. */ export declare function collectOrderedListItemFixes(doc: PMNode, orderedListType: NodeType, listItemType: NodeType): OrderedListItemFix[]; /** * Milkdown's `syncListOrderPlugin` fixes these attrs but skips `addToHistory: false` * transactions, which includes every y-prosemirror sync. Without this, ordered lists * render as bullets until the first local transaction (e.g. a click). * Register only when collaboration is enabled. */ export declare const platformListItemNormalizer: import('@milkdown/utils').$Prose; export declare const platformListItemPlugins: MilkdownPlugin[];