import type { LayoutContinuation, OutlineEntry, PostextConfig, PostextContent } from '../types.js'; /** The counters a document laid out after `content` continues from: what * `content` itself inherited (`before`) advanced by its headings and * resource references. Chain it chapter by chapter to number a book that * is laid out one chapter at a time. */ export declare function continuationAfter(content: Pick, config?: PostextConfig, before?: LayoutContinuation): LayoutContinuation; /** The outline of `content` on its own — every heading and part, numbered * after the counters `before` — without page labels, plus whether it * prints a table of contents. Chain it chapter by chapter, like * `continuationAfter`, to assemble a book's outline before any page is * laid out. */ export declare function contentOutline(content: Pick & Partial>, config?: PostextConfig, before?: LayoutContinuation): { outline: OutlineEntry[]; hasToc: boolean; hasIndex: boolean; hasRefs: boolean; }; /** The `id` of every composed page fence (`::::page{id="…"}`) of a chapter, * in order, whose template the configuration has (#943): what a story of * an earlier chapter can jump to (`overflow.continueIn: 'page:'`). A * host collects them chapter by chapter into `PostextContent.laterPageIds` * (see `laterPageIdsOf`). */ export declare function pageFenceIds(markdown: string, config?: PostextConfig): string[]; /** For each chapter of a book, the page fences of the chapters after it * (`PostextContent.laterPageIds`, #943): their `id`, and the position of * the nearest chapter that has it. `ids` are the chapters' own ids * (`pageFenceIds`). */ export declare function laterPageIdsOf(ids: readonly (readonly string[])[]): Record[]; //# sourceMappingURL=continuation.d.ts.map