export type FlowArgsPrepResult = { flow: Array<{ dispatch?: Array<{ tool: "batch" | "bash" | "web"; ops: unknown[]; }>; }>; notes: string[]; }; /** * Lenient argument normalizer for the `flow` tool. * * The strict TypeBox schema requires: * { flow: [{ type, intent, aim, complexity, dispatch?: [...] }], ... } * * In practice, models sometimes: * - Forget the outer `flow` wrapper and pass a single FlowItem at the top level. * - Wrap `flow` in `{ item: {...} }` or pass it as a bare object (not an array). * - Pass `dispatch` as a single object or as `{ item: {...} }` instead of an array. * * This normalizer transparently rewrites those shapes into the canonical form * before TypeBox validation runs, so the model gets a successful validation * result and a hint instead of a hard failure. * * Canonical input is returned unchanged (no allocation, no notes). */ export declare function prepareFlowArguments(input: unknown): unknown; //# sourceMappingURL=flow-args-prep.d.ts.map