UNPKG

open-agreements

Version:

Open-source legal template filling CLI and library

16 lines • 857 B
import { type FieldSelectorManifest, type TemplateManifest } from './manifest-schema.js'; export interface SelectorContracts { manifests: FieldSelectorManifest[]; templateManifest: TemplateManifest | null; } /** * Load every `fields/*.json` selector manifest for a fieldSelector plus its optional * `template-manifest.json`. Returns empty manifests (and null template manifest) * when the fieldSelector has no `fields/` directory. * * @param fieldSelectorDir absolute path to the fieldSelector directory * @param metadataFieldNames the field names declared in the fieldSelector `metadata.yaml` * — every manifest `field_id` MUST appear here (the cross-repo join key). */ export declare function loadSelectorContracts(fieldSelectorDir: string, metadataFieldNames: Iterable<string>): SelectorContracts; //# sourceMappingURL=loader.d.ts.map