import { type ApprovedContract } from '@zhixuan92/multi-model-agent-core'; export type DeliverableBoundaryFieldErrors = { formErrors: string[]; fieldErrors: Record; }; export type DeliverableBoundaryResult = { ok: true; } | { ok: false; fieldErrors: DeliverableBoundaryFieldErrors; }; /** * Validate the filesystem-dependent invariants of an already-Zod-valid `deliverable` * against the task's canonical `workspaceRoot`. `deliverable` absent is always valid * (unmanaged direct calls); every non-`undefined` `deliverable` reaching this function has * already passed `approvedContractSchema` (state `approved`, digest-matched approval). * * Returns the SAME `{ formErrors, fieldErrors }` shape `ZodError.flatten()` produces * elsewhere at this boundary, so REST and MCP report identical field-specific details. */ export declare function validateDeliverableContractBoundary(deliverable: ApprovedContract | undefined, workspaceRoot: string): DeliverableBoundaryResult; //# sourceMappingURL=deliverable-contract-validator.d.ts.map