import { Workflow, WorkflowEvent, WorkflowEventData } from "@llama-flow/core"; //#region src/middleware/validation.d.ts type ValidationHandler[], output: WorkflowEvent[]][], AcceptEvents extends WorkflowEvent[], Result extends WorkflowEventData | void> = (sendEvent: (...inputs: Array[] ? ReturnType : never : never : never>) => void, ...events: { [K in keyof AcceptEvents]: ReturnType }) => Result | Promise; type WithValidationWorkflow[], output: WorkflowEvent[]][]> = { strictHandle[], Result extends ReturnType["with"]> | void>(accept: AcceptEvents, handler: ValidationHandler): void; }; declare function withValidation[], outputs: WorkflowEvent[]][], WorkflowLike extends Workflow>(workflow: WorkflowLike, validation: Validation): WithValidationWorkflow & WorkflowLike; //#endregion export { ValidationHandler, WithValidationWorkflow, withValidation }; //# sourceMappingURL=validation.d.ts.map