UNPKG

open-agreements

Version:

Open-source legal template filling CLI and library

21 lines • 1.08 kB
import AdmZip from 'adm-zip'; import type { Document as XmlDocument } from '@xmldom/xmldom'; import { type StyleSeparatorSpacingProfile } from '../metadata.js'; type Boundary = StyleSeparatorSpacingProfile['boundaries'][number]; export interface StyleSeparatorSpacingOptions { sourcePath: string; sourceSha256: string; profile: StyleSeparatorSpacingProfile; } export interface StyleSeparatorSpacingReceipt { sourceSha256: string; profileSha256: string; replacements: number; headingParaIds: string[]; } /** Authoring aid only: canonical authors must independently render/audit the * source shape before declaring this hash. This does not prove line wrapping. */ export declare function inspectStyleSeparatorSpacingSource(sourcePath: string, boundary: Omit<Boundary, 'expected_layout_sha256'>): string; export declare function applyStyleSeparatorSpacing(zip: AdmZip, document: XmlDocument, styles: XmlDocument | undefined, options: StyleSeparatorSpacingOptions): StyleSeparatorSpacingReceipt; export {}; //# sourceMappingURL=style-separator-spacing.d.ts.map