/** * Level derivation for `list` components. * * Shared by the renderer (which turns these into `w:abstractNum` levels) and by * the document-outline pre-pass (which needs each level's format and start to * predict the counter a cross-reference should cache). Keeping one definition * is the point: a level the renderer numbers `a., b., c.` and a pre-pass that * thinks it is decimal produce a field whose cached value Word overwrites on * refresh — the silent disagreement cross-references exist to avoid. */ import type { ListLevelConfig } from './numberingConfig'; /** The `list` props this module reads, structurally. */ export interface ListLevelSource { items?: readonly (string | { readonly level?: number; })[]; levels?: readonly ListLevelConfig[]; format?: string; bullet?: string; start?: number; indent?: number | { left?: number; hanging?: number; }; } /** * Get the maximum level used in list items */ export declare function getMaxLevelFromItems(items: readonly (string | { readonly level?: number; })[] | undefined): number; /** * The levels a list's numbering definition ends up with: explicit `levels` when * given (with `props.start` folded in), otherwise the simplified shorthand — * either way padded out to the deepest level the items actually use. */ export declare function resolveListLevels(props: ListLevelSource): ListLevelConfig[]; //# sourceMappingURL=listLevels.d.ts.map