import { z } from '@botpress/sdk';
export declare const WorkflowCallbackEvent: {
    name: "workflowCallback";
    schema: import("@botpress/sdk").ZodObject<{
        workflow: import("@botpress/sdk").ZodString;
        workflowId: import("@botpress/sdk").ZodString;
        target: import("@botpress/sdk").ZodUnion<[import("@botpress/sdk").ZodObject<{
            conversationId: import("@botpress/sdk").ZodString;
        }, "strip", {
            conversationId: string;
        }, {
            conversationId: string;
        }>, import("@botpress/sdk").ZodObject<{
            workflowId: import("@botpress/sdk").ZodString;
        }, "strip", {
            workflowId: string;
        }, {
            workflowId: string;
        }>]>;
        status: import("@botpress/sdk").ZodEnum<["completed", "failed", "canceled", "timed_out"]>;
        output: import("@botpress/sdk").ZodOptional<import("@botpress/sdk").ZodAny>;
        error: import("@botpress/sdk").ZodOptional<import("@botpress/sdk").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("@botpress/sdk").ZodObject<{
        workflow: import("@botpress/sdk").ZodString;
    }, "strip", {
        workflow: string;
    }, {
        workflow: string;
    }>;
};
export declare const WorkflowContinueEvent: {
    name: "workflowContinue";
    schema: import("@botpress/sdk").ZodObject<{}, "strip", {}, {}>;
};
export declare const SubworkflowFinished: {
    name: "subworkflowFinished";
    schema: import("@botpress/sdk").ZodObject<{}, "strip", {}, {}>;
};
export declare const WorkflowDataRequestEvent: {
    name: "workflowDataRequest";
    schema: import("@botpress/sdk").ZodObject<{
        workflowId: import("@botpress/sdk").ZodString;
        workflowName: import("@botpress/sdk").ZodString;
        stepName: import("@botpress/sdk").ZodString;
        request: import("@botpress/sdk").ZodString;
        message: import("@botpress/sdk").ZodString;
        schema: import("@botpress/sdk").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