import { z } from '@botpress/sdk';
export declare const WorkflowCallbackEvent: {
    name: "workflowCallback";
    schema: import("@bpinternal/zui").ZodObject<{
        workflow: import("@bpinternal/zui").ZodString;
        workflowId: import("@bpinternal/zui").ZodString;
        target: import("@bpinternal/zui").ZodUnion<[import("@bpinternal/zui").ZodObject<{
            conversationId: import("@bpinternal/zui").ZodString;
        }, "strip", {
            conversationId: string;
        }, {
            conversationId: string;
        }>, import("@bpinternal/zui").ZodObject<{
            workflowId: import("@bpinternal/zui").ZodString;
        }, "strip", {
            workflowId: string;
        }, {
            workflowId: string;
        }>]>;
        status: import("@bpinternal/zui").ZodEnum<["completed", "failed", "canceled", "timed_out"]>;
        output: import("@bpinternal/zui").ZodOptional<import("@bpinternal/zui").ZodAny>;
        error: import("@bpinternal/zui").ZodOptional<import("@bpinternal/zui").ZodString>;
    }, "strip", {
        workflowId: string;
        status: "completed" | "failed" | "canceled" | "timed_out";
        workflow: string;
        target: {
            conversationId: string;
        } | {
            workflowId: string;
        };
        error?: string | undefined;
        output?: any;
    }, {
        workflowId: string;
        status: "completed" | "failed" | "canceled" | "timed_out";
        workflow: string;
        target: {
            conversationId: string;
        } | {
            workflowId: string;
        };
        error?: string | undefined;
        output?: any;
    }>;
};
export declare const WorkflowScheduleEvent: {
    name: "workflowSchedule";
    schema: import("@bpinternal/zui").ZodObject<{
        workflow: import("@bpinternal/zui").ZodString;
    }, "strip", {
        workflow: string;
    }, {
        workflow: string;
    }>;
};
export declare const WorkflowContinueEvent: {
    name: "workflowContinue";
    schema: import("@bpinternal/zui").ZodObject<{}, "strip", {}, {}>;
};
export declare const SubworkflowFinished: {
    name: "subworkflowFinished";
    schema: import("@bpinternal/zui").ZodObject<{}, "strip", {}, {}>;
};
export declare const WorkflowDataRequestEvent: {
    name: "workflowDataRequest";
    schema: import("@bpinternal/zui").ZodObject<{
        workflowId: import("@bpinternal/zui").ZodString;
        workflowName: import("@bpinternal/zui").ZodString;
        stepName: import("@bpinternal/zui").ZodString;
        request: import("@bpinternal/zui").ZodString;
        message: import("@bpinternal/zui").ZodString;
        schema: import("@bpinternal/zui").ZodAny;
    }, "strip", {
        workflowId: string;
        message: string;
        workflowName: string;
        stepName: string;
        request: string;
        schema?: any;
    }, {
        workflowId: string;
        message: string;
        workflowName: string;
        stepName: string;
        request: string;
        schema?: any;
    }>;
};
export type WorkflowCallbackPayload = z.infer<typeof WorkflowCallbackEvent.schema>;
/**
 * Typed workflowCallback event that can be received in conversation handlers
 */
export type WorkflowCallbackEventType = {
    id: string;
    type: 'workflowCallback';
    payload: WorkflowCallbackPayload;
    createdAt: string;
    conversationId?: string;
    status?: 'pending' | 'processed';
};
//# sourceMappingURL=events.d.ts.map