/** * List emission for the DOCX → ODT converter: flat auto-numbered/bullet view nodes → * nested `text:list` DOM plus synthesized `text:list-style`s. * * The nesting logic is a DOM port of the HTML serializer's `ListBuilder`: OOXML `ilvl` * carries no monotonicity guarantee, so each open list records the item LEVEL that opened * it (not just depth) — that keeps consecutive same-level items siblings even after a * level jump that skipped intermediate depths. */ import type { NumberingModel } from '@usejunior/docx-core'; /** * Deduped `office:automatic-styles` registry for lists: one `L` list style per source * `num_id` (or per fallback kind when the numbering model has no entry), with one * `text:list-level-style-*` per level sourced from the OOXML numbering definition. */ export declare class ListStyleRegistry { private readonly doc; private readonly container; private readonly numbering; private byKey; constructor(doc: Document, container: Element, numbering: NumberingModel | null); /** Style name for a list opened by a node with the given `num_id` (bullet hint for model-less docs). */ styleFor(numId: string | null, bulletHint: boolean): string; /** True when the level's source `numFmt` is `bullet` (used to pick the fallback hint). */ isBulletLevel(numId: string | null, ilvl: number | null): boolean; private abstractFor; private bulletLevel; private numberLevel; } /** * Builds one contiguous run of list items as nested `text:list` DOM under `parent`. * `item()` returns the `text:p` to fill with the node's inline content. */ export declare class ListDomBuilder { private readonly doc; private readonly parent; private stack; constructor(doc: Document, parent: Element); item(level: number, styleName: string, paragraphStyleName?: string): Element; } //# sourceMappingURL=lists.d.ts.map