open-agreements
Version:
Open-source legal template filling CLI and library
8 lines • 474 B
TypeScript
import type { FieldSelectorMetadata } from '../metadata.js';
/**
* Ensure the source DOCX for a fieldSelector is available locally.
* Downloads from source_url on first use, caches in ~/.open-agreements/cache/<field-selector-id>/source.docx.
* Verifies SHA-256 integrity when source_sha256 is set in metadata.
*/
export declare function ensureSourceDocx(fieldSelectorId: string, metadata: FieldSelectorMetadata): Promise<string>;
//# sourceMappingURL=downloader.d.ts.map