open-agreements
Version:
Open-source legal template filling CLI and library
15 lines • 575 B
TypeScript
export interface LicenseValidationResult {
templateId: string;
valid: boolean;
errors: string[];
}
/**
* Validate a template's license metadata.
*
* The allow_derivatives field means "the committed source DOCX must not be
* modified" when false. It does NOT prevent the tool from rendering filled
* output — that decision is made by the fill command based on directory
* context (templates/ vs external/).
*/
export declare function validateLicense(templateDir: string, templateId: string): LicenseValidationResult;
//# sourceMappingURL=license.d.ts.map