import z from 'zod';
export declare const workflowRunStatusSchema: z.ZodEnum<{
    success: "success";
    running: "running";
    waiting: "waiting";
    suspended: "suspended";
    failed: "failed";
    canceled: "canceled";
    pending: "pending";
    bailed: "bailed";
    tripwire: "tripwire";
    paused: "paused";
}>;
export declare const workflowIdPathParams: z.ZodObject<{
    workflowId: z.ZodString;
}, z.core.$strip>;
export declare const workflowRunPathParams: z.ZodObject<{
    workflowId: z.ZodString;
    runId: z.ZodString;
}, z.core.$strip>;
/**
 * Schema for workflow information
 * Returned by getWorkflowByIdHandler and listWorkflowsHandler
 */
export declare const workflowInfoSchema: z.ZodObject<{
    steps: z.ZodRecord<z.ZodString, z.ZodObject<{
        id: z.ZodString;
        description: z.ZodOptional<z.ZodString>;
        stateSchema: z.ZodOptional<z.ZodString>;
        inputSchema: z.ZodOptional<z.ZodString>;
        outputSchema: z.ZodOptional<z.ZodString>;
        resumeSchema: z.ZodOptional<z.ZodString>;
        suspendSchema: z.ZodOptional<z.ZodString>;
        component: z.ZodOptional<z.ZodString>;
        isWorkflow: z.ZodOptional<z.ZodBoolean>;
        metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
    }, z.core.$strip>>;
    allSteps: z.ZodRecord<z.ZodString, z.ZodObject<{
        id: z.ZodString;
        description: z.ZodOptional<z.ZodString>;
        stateSchema: z.ZodOptional<z.ZodString>;
        inputSchema: z.ZodOptional<z.ZodString>;
        outputSchema: z.ZodOptional<z.ZodString>;
        resumeSchema: z.ZodOptional<z.ZodString>;
        suspendSchema: z.ZodOptional<z.ZodString>;
        component: z.ZodOptional<z.ZodString>;
        isWorkflow: z.ZodOptional<z.ZodBoolean>;
        metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
    }, z.core.$strip>>;
    name: z.ZodOptional<z.ZodString>;
    description: z.ZodOptional<z.ZodString>;
    stepGraph: z.ZodArray<z.ZodObject<{
        type: z.ZodEnum<{
            step: "step";
            sleep: "sleep";
            sleepUntil: "sleepUntil";
            waitForEvent: "waitForEvent";
            parallel: "parallel";
            conditional: "conditional";
            loop: "loop";
            foreach: "foreach";
        }>;
    }, z.core.$strip>>;
    inputSchema: z.ZodOptional<z.ZodString>;
    outputSchema: z.ZodOptional<z.ZodString>;
    stateSchema: z.ZodOptional<z.ZodString>;
    options: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
    isProcessorWorkflow: z.ZodOptional<z.ZodBoolean>;
}, z.core.$strip>;
/**
 * Schema for list workflows endpoint response
 * Returns a record of workflow ID to workflow info
 */
export declare const listWorkflowsResponseSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
    steps: z.ZodRecord<z.ZodString, z.ZodObject<{
        id: z.ZodString;
        description: z.ZodOptional<z.ZodString>;
        stateSchema: z.ZodOptional<z.ZodString>;
        inputSchema: z.ZodOptional<z.ZodString>;
        outputSchema: z.ZodOptional<z.ZodString>;
        resumeSchema: z.ZodOptional<z.ZodString>;
        suspendSchema: z.ZodOptional<z.ZodString>;
        component: z.ZodOptional<z.ZodString>;
        isWorkflow: z.ZodOptional<z.ZodBoolean>;
        metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
    }, z.core.$strip>>;
    allSteps: z.ZodRecord<z.ZodString, z.ZodObject<{
        id: z.ZodString;
        description: z.ZodOptional<z.ZodString>;
        stateSchema: z.ZodOptional<z.ZodString>;
        inputSchema: z.ZodOptional<z.ZodString>;
        outputSchema: z.ZodOptional<z.ZodString>;
        resumeSchema: z.ZodOptional<z.ZodString>;
        suspendSchema: z.ZodOptional<z.ZodString>;
        component: z.ZodOptional<z.ZodString>;
        isWorkflow: z.ZodOptional<z.ZodBoolean>;
        metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
    }, z.core.$strip>>;
    name: z.ZodOptional<z.ZodString>;
    description: z.ZodOptional<z.ZodString>;
    stepGraph: z.ZodArray<z.ZodObject<{
        type: z.ZodEnum<{
            step: "step";
            sleep: "sleep";
            sleepUntil: "sleepUntil";
            waitForEvent: "waitForEvent";
            parallel: "parallel";
            conditional: "conditional";
            loop: "loop";
            foreach: "foreach";
        }>;
    }, z.core.$strip>>;
    inputSchema: z.ZodOptional<z.ZodString>;
    outputSchema: z.ZodOptional<z.ZodString>;
    stateSchema: z.ZodOptional<z.ZodString>;
    options: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
    isProcessorWorkflow: z.ZodOptional<z.ZodBoolean>;
}, z.core.$strip>>;
/**
 * Schema for workflow runs response (paginated)
 * Includes runs array and total count
 */
export declare const workflowRunsResponseSchema: z.ZodObject<{
    runs: z.ZodArray<z.ZodObject<{
        workflowName: z.ZodString;
        runId: z.ZodString;
        snapshot: z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodString]>;
        createdAt: z.ZodDate;
        updatedAt: z.ZodDate;
        resourceId: z.ZodOptional<z.ZodString>;
    }, z.core.$strip>>;
    total: z.ZodNumber;
}, z.core.$strip>;
/**
 * Schema for query parameters when listing workflow runs
 * Supports both page/perPage and limit/offset for backwards compatibility
 * If page/perPage provided, use directly; otherwise convert from limit/offset
 */
export declare const listWorkflowRunsQuerySchema: z.ZodObject<{
    page: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
    perPage: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
    offset: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
    limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
    fromDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
    toDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
    resourceId: z.ZodOptional<z.ZodString>;
    status: z.ZodOptional<z.ZodEnum<{
        success: "success";
        running: "running";
        waiting: "waiting";
        suspended: "suspended";
        failed: "failed";
        canceled: "canceled";
        pending: "pending";
        bailed: "bailed";
        tripwire: "tripwire";
        paused: "paused";
    }>>;
}, z.core.$strip>;
/**
 * Schema for legacy stream workflow body (no closeOnSuspend support)
 * Used by /stream-legacy endpoints
 */
export declare const streamLegacyWorkflowBodySchema: z.ZodObject<{
    resourceId: z.ZodOptional<z.ZodString>;
    inputData: z.ZodOptional<z.ZodUnknown>;
    initialState: z.ZodOptional<z.ZodUnknown>;
    requestContext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
    tracingOptions: z.ZodOptional<z.ZodObject<{
        metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
        requestContextKeys: z.ZodOptional<z.ZodArray<z.ZodString>>;
        traceId: z.ZodOptional<z.ZodString>;
        parentSpanId: z.ZodOptional<z.ZodString>;
    }, z.core.$strip>>;
    perStep: z.ZodOptional<z.ZodBoolean>;
}, z.core.$strip>;
/**
 * Schema for stream workflow body
 * Used by both /stream and /streamVNext endpoints
 */
export declare const streamWorkflowBodySchema: z.ZodObject<{
    resourceId: z.ZodOptional<z.ZodString>;
    inputData: z.ZodOptional<z.ZodUnknown>;
    initialState: z.ZodOptional<z.ZodUnknown>;
    requestContext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
    tracingOptions: z.ZodOptional<z.ZodObject<{
        metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
        requestContextKeys: z.ZodOptional<z.ZodArray<z.ZodString>>;
        traceId: z.ZodOptional<z.ZodString>;
        parentSpanId: z.ZodOptional<z.ZodString>;
    }, z.core.$strip>>;
    perStep: z.ZodOptional<z.ZodBoolean>;
    closeOnSuspend: z.ZodOptional<z.ZodBoolean>;
}, z.core.$strip>;
/**
 * Schema for resume workflow body
 * Used by resume-stream, resume-async and resume endpoints
 */
export declare const resumeBodySchema: z.ZodObject<{
    step: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
    resumeData: z.ZodOptional<z.ZodUnknown>;
    requestContext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
    tracingOptions: z.ZodOptional<z.ZodObject<{
        metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
        requestContextKeys: z.ZodOptional<z.ZodArray<z.ZodString>>;
        traceId: z.ZodOptional<z.ZodString>;
        parentSpanId: z.ZodOptional<z.ZodString>;
    }, z.core.$strip>>;
    perStep: z.ZodOptional<z.ZodBoolean>;
}, z.core.$strip>;
/**
 * Schema for restart workflow body
 * Used by restart-async and restart endpoints
 */
export declare const restartBodySchema: z.ZodObject<{
    requestContext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
    tracingOptions: z.ZodOptional<z.ZodObject<{
        metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
        requestContextKeys: z.ZodOptional<z.ZodArray<z.ZodString>>;
        traceId: z.ZodOptional<z.ZodString>;
        parentSpanId: z.ZodOptional<z.ZodString>;
    }, z.core.$strip>>;
}, z.core.$strip>;
/**
 * Schema for time travel workflow body
 * Used by time-travel-stream, time-travel-async and time-travel endpoints
 */
export declare const timeTravelBodySchema: z.ZodObject<{
    inputData: z.ZodOptional<z.ZodUnknown>;
    resumeData: z.ZodOptional<z.ZodUnknown>;
    initialState: z.ZodOptional<z.ZodUnknown>;
    step: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>;
    context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
    nestedStepsContext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>>>;
    requestContext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
    tracingOptions: z.ZodOptional<z.ZodObject<{
        metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
        requestContextKeys: z.ZodOptional<z.ZodArray<z.ZodString>>;
        traceId: z.ZodOptional<z.ZodString>;
        parentSpanId: z.ZodOptional<z.ZodString>;
    }, z.core.$strip>>;
    perStep: z.ZodOptional<z.ZodBoolean>;
}, z.core.$strip>;
/**
 * Schema for start async workflow body
 */
export declare const startAsyncWorkflowBodySchema: z.ZodObject<{
    resourceId: z.ZodOptional<z.ZodString>;
    inputData: z.ZodOptional<z.ZodUnknown>;
    initialState: z.ZodOptional<z.ZodUnknown>;
    requestContext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
    tracingOptions: z.ZodOptional<z.ZodObject<{
        metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
        requestContextKeys: z.ZodOptional<z.ZodArray<z.ZodString>>;
        traceId: z.ZodOptional<z.ZodString>;
        parentSpanId: z.ZodOptional<z.ZodString>;
    }, z.core.$strip>>;
    perStep: z.ZodOptional<z.ZodBoolean>;
}, z.core.$strip>;
/**
 * Schema for send workflow run event body
 */
export declare const sendWorkflowRunEventBodySchema: z.ZodObject<{
    event: z.ZodString;
    data: z.ZodUnknown;
}, z.core.$strip>;
/**
 * Schema for workflow execution result
 * All fields are optional since field filtering allows requesting specific fields only
 */
export declare const workflowExecutionResultSchema: z.ZodObject<{
    status: z.ZodOptional<z.ZodEnum<{
        success: "success";
        running: "running";
        waiting: "waiting";
        suspended: "suspended";
        failed: "failed";
        canceled: "canceled";
        pending: "pending";
        bailed: "bailed";
        tripwire: "tripwire";
        paused: "paused";
    }>>;
    result: z.ZodOptional<z.ZodUnknown>;
    error: z.ZodOptional<z.ZodUnknown>;
    payload: z.ZodOptional<z.ZodUnknown>;
    initialState: z.ZodOptional<z.ZodUnknown>;
    steps: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
    activeStepsPath: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodNumber>>>;
    serializedStepGraph: z.ZodOptional<z.ZodArray<z.ZodObject<{
        type: z.ZodEnum<{
            step: "step";
            sleep: "sleep";
            sleepUntil: "sleepUntil";
            waitForEvent: "waitForEvent";
            parallel: "parallel";
            conditional: "conditional";
            loop: "loop";
            foreach: "foreach";
        }>;
    }, z.core.$strip>>>;
}, z.core.$strip>;
/**
 * Schema for query parameters when getting a unified workflow run result
 */
export declare const workflowRunResultQuerySchema: z.ZodObject<{
    fields: z.ZodOptional<z.ZodString>;
    withNestedWorkflows: z.ZodOptional<z.ZodEnum<{
        true: "true";
        false: "false";
    }>>;
}, z.core.$strip>;
/**
 * Schema for unified workflow run result response
 * Combines metadata and processed execution state
 */
export declare const workflowRunResultSchema: z.ZodObject<{
    runId: z.ZodString;
    workflowName: z.ZodString;
    resourceId: z.ZodOptional<z.ZodString>;
    createdAt: z.ZodDate;
    updatedAt: z.ZodDate;
    status: z.ZodEnum<{
        success: "success";
        running: "running";
        waiting: "waiting";
        suspended: "suspended";
        failed: "failed";
        canceled: "canceled";
        pending: "pending";
        bailed: "bailed";
        tripwire: "tripwire";
        paused: "paused";
    }>;
    initialState: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
    result: z.ZodOptional<z.ZodUnknown>;
    error: z.ZodOptional<z.ZodUnknown>;
    payload: z.ZodOptional<z.ZodUnknown>;
    steps: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
    activeStepsPath: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodNumber>>>;
    serializedStepGraph: z.ZodOptional<z.ZodArray<z.ZodObject<{
        type: z.ZodEnum<{
            step: "step";
            sleep: "sleep";
            sleepUntil: "sleepUntil";
            waitForEvent: "waitForEvent";
            parallel: "parallel";
            conditional: "conditional";
            loop: "loop";
            foreach: "foreach";
        }>;
    }, z.core.$strip>>>;
}, z.core.$strip>;
/**
 * Response schema for workflow control operations
 */
export declare const workflowControlResponseSchema: z.ZodObject<{
    message: z.ZodString;
}, z.core.$strip>;
/**
 * Response schema for create workflow run operation
 * Returns only the runId after creating a run
 */
export declare const createWorkflowRunResponseSchema: z.ZodObject<{
    runId: z.ZodString;
}, z.core.$strip>;
/**
 * Schema for create workflow run body
 * Used by /create-run endpoint
 */
export declare const createWorkflowRunBodySchema: z.ZodObject<{
    resourceId: z.ZodOptional<z.ZodString>;
    disableScorers: z.ZodOptional<z.ZodBoolean>;
}, z.core.$strip>;
//# sourceMappingURL=workflows.d.ts.map