open-agreements
Version:
Open-source legal template filling CLI and library
15 lines • 778 B
TypeScript
import type { DocumentViewNode } from './document_view.js';
import type { Footnote } from './footnotes.js';
export interface SerializePlainTextOptions {
/** Reserved for future knobs (footnote policy, table layout). Currently unused. */
readonly _reserved?: never;
}
/**
* Serialize a structured document view to plain text.
*
* @param nodes Block nodes from `buildDocumentView({ showFormatting: true }).nodes`.
* @param footnotes Footnotes from `DocxDocument.getFootnotes()` (already sorted by
* `displayNumber`); appended as `[^n] …` definitions.
*/
export declare function serializeToPlainText(nodes: DocumentViewNode[], footnotes?: Footnote[], _opts?: SerializePlainTextOptions): string;
//# sourceMappingURL=serialize_plaintext.d.ts.map