import type { NumberingCatalog, NumberingLevelDefinition } from './numbering-model.js'; import type { ParagraphStyleCatalog } from './model-paragraph.js'; /** * `multilevel` numbers 1., 1.1., 1.1.1. (every level shows its ancestors); `outline` cycles * 1., a), i. by level, like Word's plain outline lists. */ export type ListKind = 'bullet' | 'decimal' | 'multilevel' | 'outline'; /** * Returns a catalog with one additional, independent list definition of the requested kind and * its `numId`. Pure: never mutates `catalog`. Existing entries are always reused unchanged, so * every call mints a fresh `abstractNum`/`num` pair with its own restart-from-1 counter, matching * how Word starts a new list rather than continuing an unrelated one. */ export declare function ensureListDefinition(catalog: NumberingCatalog | undefined, kind: ListKind): { catalog: NumberingCatalog; numId: number; }; /** Adds a validated independent definition without modifying any imported list. */ export declare function createListDefinition(catalog: NumberingCatalog | undefined, levels: readonly NumberingLevelDefinition[]): { catalog: NumberingCatalog; numId: number; }; /** * Points each existing paragraph style named by a level's `paragraphStyleId` at that level of * list `numId` (the style's `w:numPr`), as Word does for heading-linked outlines. Pure; styles that * are not in the catalog are skipped. A style linked from two levels keeps the deepest-first * assignment that appears last, so callers should keep style ids unique per list. */ export declare function linkStylesToList(styles: ParagraphStyleCatalog | undefined, levels: readonly NumberingLevelDefinition[], numId: number): ParagraphStyleCatalog | undefined; //# sourceMappingURL=numbering-editing.d.ts.map