/** * Pre-acceptance validation for workflow updates: running a registered * `updateValidators` entry and normalizing a Standard Schema v1 failure result * into the issue list `UpdateValidationError` carries. * * Lives apart from `updates.ts` because it is shared — `pending-updates.ts` * normalizes validator results through the same helper — and because it is * pure payload validation with no coupling to the in-memory waiter maps or the * durable coordinated-update protocol that make up the rest of update delivery. * * @module core/engine/update-validation */ import type { EngineInternals } from './internals.ts'; /** * Run the pre-acceptance validator for an update, if one is registered. * Throws `UpdateValidationError` if the validator rejects (by throwing or by * returning a Standard Schema `{ issues: [...] }` failure result). */ export declare function runUpdateValidator(internals: EngineInternals, workflowId: string, name: string, payload: unknown): Promise; /** * Extract issues from a Standard Schema v1 failure result, or null if absent. * No string-`message` entries yields `[]`; callers reject only on a non-empty * array, so `null` and `[]` both mean acceptance. Preserves `path` (RFC 6901). */ export declare function extractStandardSchemaIssues(result: unknown): Array<{ message: string; path?: string; }> | null;