import { Workflow, WorkflowContext, WorkflowEvent, WorkflowEventData } from "@llamaindex/workflow-core"; //#region src/middleware/validation.d.ts type ValidationHandler[], output: WorkflowEvent[]][], AcceptEvents extends WorkflowEvent[], Result extends WorkflowEventData | void, Context extends WorkflowContext = WorkflowContext> = (sendEvent: (...inputs: Array[] ? ReturnType : never : never : never>) => void, context: Context, ...events: { [K in keyof AcceptEvents]: ReturnType }) => Result | Promise; type WithValidationWorkflow[], output: WorkflowEvent[]][], Context extends WorkflowContext = WorkflowContext> = { 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.cts.map