/** * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ /** * @module list/documentlist/utils/postfixers */ import type { Position, Writer } from 'ckeditor5/src/engine'; import { type ListIteratorValue } from './listwalker'; import { type ListElement } from './model'; /** * Based on the provided positions looks for the list head and stores it in the provided map. * * @internal * @param position The search starting position. * @param itemToListHead The map from list item element to the list head element. */ export declare function findAndAddListHeadToMap(position: Position, itemToListHead: Map): void; /** * Scans the list starting from the given list head element and fixes items' indentation. * * @internal * @param listNodes The iterable of list nodes. * @param writer The model writer. * @returns Whether the model was modified. */ export declare function fixListIndents(listNodes: Iterable, writer: Writer): boolean; /** * Scans the list starting from the given list head element and fixes items' types. * * @internal * @param listNodes The iterable of list nodes. * @param seenIds The set of already known IDs. * @param writer The model writer. * @returns Whether the model was modified. */ export declare function fixListItemIds(listNodes: Iterable, seenIds: Set, writer: Writer): boolean;