import type LevelLists from './LevelLists'; import type ListItemMetadata from './ListItemMetadata'; import type ListMetadata from './ListMetadata'; /** * @internal * Contains the state of the WordConverter when called back after yielding */ export default interface WordConverterArguments { /** The list of element nodes being processed */ nodes: NodeListOf; /** The index of the element currently being processed */ currentIndex: number; /** * Holds the metadata for all the lists we have found * key: unique list id, value: list metadata */ lists: { [key: string]: ListMetadata; }; /** * Stores the list item meta data of the items we * have found that need to be converted */ listItems: ListItemMetadata[]; /** * This array holds the list id of the lists we are processing * that are next to each other.. This list will be used to determine * if list items are next to each other or if they are separated... * Separated items are ignored from the conversion */ currentListIdsByLevels: LevelLists[]; /** Remembers the item that was last processed */ lastProcessedItem: HTMLElement | null; } /** * @internal * create an empty WordConverterArguments */ export declare function createWordConverterArguments(nodes: NodeListOf): WordConverterArguments;