open-agreements
Version:
Open-source legal template filling CLI and library
24 lines • 1.5 kB
TypeScript
/**
* OPC package plumbing: [Content_Types].xml, package/part relationships, and
* document properties. Built with the same skeleton-parse + namespace-aware
* DOM approach as the WML parts — no string concatenation of dynamic values.
*
* docProps/core.xml dates come exclusively from the spec (meta.createdIso);
* generation never reads the clock, keeping output byte-deterministic.
*/
import type { CompileContext } from '../context.js';
import type { DocumentSpec } from '../types.js';
export declare const CONTENT_TYPES: {
readonly document: "application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml";
readonly coreProps: "application/vnd.openxmlformats-package.core-properties+xml";
readonly extendedProps: "application/vnd.openxmlformats-officedocument.extended-properties+xml";
readonly relationships: "application/vnd.openxmlformats-package.relationships+xml";
};
export declare const REL_TYPES: {
readonly officeDocument: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument";
readonly coreProps: "http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties";
readonly extendedProps: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties";
};
/** Emit every package-plumbing part into the context's file map. */
export declare function emitPackageParts(spec: DocumentSpec, ctx: CompileContext): void;
//# sourceMappingURL=package-parts.d.ts.map