import type { RequestContext } from '@mastra/core/di';
import { z } from 'zod';
import type { Context } from '../types.js';
export interface WorkflowContext extends Context {
    workflowId?: string;
    runId?: string;
    requestContext?: RequestContext;
}
export declare const LIST_WORKFLOWS_ROUTE: import("../server-adapter").ServerRoute<{
    partial?: string | undefined;
}, Record<string, {
    steps: Record<string, {
        id: string;
        description?: string | undefined;
        stateSchema?: string | undefined;
        inputSchema?: string | undefined;
        outputSchema?: string | undefined;
        resumeSchema?: string | undefined;
        suspendSchema?: string | undefined;
        component?: string | undefined;
        isWorkflow?: boolean | undefined;
        metadata?: Record<string, unknown> | undefined;
    }>;
    allSteps: Record<string, {
        id: string;
        description?: string | undefined;
        stateSchema?: string | undefined;
        inputSchema?: string | undefined;
        outputSchema?: string | undefined;
        resumeSchema?: string | undefined;
        suspendSchema?: string | undefined;
        component?: string | undefined;
        isWorkflow?: boolean | undefined;
        metadata?: Record<string, unknown> | undefined;
    }>;
    stepGraph: {
        type: "step" | "sleep" | "sleepUntil" | "waitForEvent" | "parallel" | "conditional" | "loop" | "foreach";
    }[];
    name?: string | undefined;
    description?: string | undefined;
    inputSchema?: string | undefined;
    outputSchema?: string | undefined;
    stateSchema?: string | undefined;
    options?: Record<string, never> | undefined;
    isProcessorWorkflow?: boolean | undefined;
}>, "json", import("../server-adapter").RouteSchemas<undefined, z.ZodObject<{
    partial: z.ZodOptional<z.ZodString>;
}, z.core.$strip>, undefined, 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>>>, "GET", "/workflows">;
export declare const GET_WORKFLOW_BY_ID_ROUTE: import("../server-adapter").ServerRoute<{
    workflowId: string;
}, {
    steps: Record<string, {
        id: string;
        description?: string | undefined;
        stateSchema?: string | undefined;
        inputSchema?: string | undefined;
        outputSchema?: string | undefined;
        resumeSchema?: string | undefined;
        suspendSchema?: string | undefined;
        component?: string | undefined;
        isWorkflow?: boolean | undefined;
        metadata?: Record<string, unknown> | undefined;
    }>;
    allSteps: Record<string, {
        id: string;
        description?: string | undefined;
        stateSchema?: string | undefined;
        inputSchema?: string | undefined;
        outputSchema?: string | undefined;
        resumeSchema?: string | undefined;
        suspendSchema?: string | undefined;
        component?: string | undefined;
        isWorkflow?: boolean | undefined;
        metadata?: Record<string, unknown> | undefined;
    }>;
    stepGraph: {
        type: "step" | "sleep" | "sleepUntil" | "waitForEvent" | "parallel" | "conditional" | "loop" | "foreach";
    }[];
    name?: string | undefined;
    description?: string | undefined;
    inputSchema?: string | undefined;
    outputSchema?: string | undefined;
    stateSchema?: string | undefined;
    options?: Record<string, never> | undefined;
    isProcessorWorkflow?: boolean | undefined;
}, "json", import("../server-adapter").RouteSchemas<z.ZodObject<{
    workflowId: z.ZodString;
}, z.core.$strip>, undefined, undefined, 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>>, "GET", "/workflows/:workflowId">;
export declare const LIST_WORKFLOW_RUNS_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<z.ZodObject<{
    workflowId: z.ZodString;
}, z.core.$strip>, 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>, undefined>, {
    runs: {
        workflowName: string;
        runId: string;
        snapshot: string | Record<string, any>;
        createdAt: Date;
        updatedAt: Date;
        resourceId?: string | undefined;
    }[];
    total: number;
}, "json", import("../server-adapter").RouteSchemas<z.ZodObject<{
    workflowId: z.ZodString;
}, z.core.$strip>, 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>, undefined, 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>>, "GET", "/workflows/:workflowId/runs">;
export declare const GET_WORKFLOW_RUN_BY_ID_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<z.ZodObject<{
    workflowId: z.ZodString;
    runId: z.ZodString;
}, z.core.$strip>, z.ZodObject<{
    fields: z.ZodOptional<z.ZodString>;
    withNestedWorkflows: z.ZodOptional<z.ZodEnum<{
        true: "true";
        false: "false";
    }>>;
}, z.core.$strip>, undefined>, {
    runId: string;
    workflowName: string;
    createdAt: Date;
    updatedAt: Date;
    status: "success" | "running" | "waiting" | "suspended" | "failed" | "canceled" | "pending" | "bailed" | "tripwire" | "paused";
    resourceId?: string | undefined;
    initialState?: Record<string, any> | undefined;
    result?: unknown;
    error?: unknown;
    payload?: unknown;
    steps?: Record<string, any> | undefined;
    activeStepsPath?: Record<string, number[]> | undefined;
    serializedStepGraph?: {
        type: "step" | "sleep" | "sleepUntil" | "waitForEvent" | "parallel" | "conditional" | "loop" | "foreach";
    }[] | undefined;
}, "json", import("../server-adapter").RouteSchemas<z.ZodObject<{
    workflowId: z.ZodString;
    runId: z.ZodString;
}, z.core.$strip>, z.ZodObject<{
    fields: z.ZodOptional<z.ZodString>;
    withNestedWorkflows: z.ZodOptional<z.ZodEnum<{
        true: "true";
        false: "false";
    }>>;
}, z.core.$strip>, undefined, 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>>, "GET", "/workflows/:workflowId/runs/:runId">;
export declare const DELETE_WORKFLOW_RUN_BY_ID_ROUTE: import("../server-adapter").ServerRoute<{
    workflowId: string;
    runId: string;
}, {
    message: string;
}, "json", import("../server-adapter").RouteSchemas<z.ZodObject<{
    workflowId: z.ZodString;
    runId: z.ZodString;
}, z.core.$strip>, undefined, undefined, z.ZodObject<{
    message: z.ZodString;
}, z.core.$strip>>, "DELETE", "/workflows/:workflowId/runs/:runId">;
export declare const CREATE_WORKFLOW_RUN_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<z.ZodObject<{
    workflowId: z.ZodString;
}, z.core.$strip>, z.ZodObject<{
    runId: z.ZodOptional<z.ZodString>;
}, z.core.$strip>, z.ZodObject<{
    resourceId: z.ZodOptional<z.ZodString>;
    disableScorers: z.ZodOptional<z.ZodBoolean>;
}, z.core.$strip>>, {
    runId: string;
}, "json", import("../server-adapter").RouteSchemas<z.ZodObject<{
    workflowId: z.ZodString;
}, z.core.$strip>, z.ZodObject<{
    runId: z.ZodOptional<z.ZodString>;
}, z.core.$strip>, z.ZodObject<{
    resourceId: z.ZodOptional<z.ZodString>;
    disableScorers: z.ZodOptional<z.ZodBoolean>;
}, z.core.$strip>, z.ZodObject<{
    runId: z.ZodString;
}, z.core.$strip>>, "POST", "/workflows/:workflowId/create-run">;
export declare const STREAM_WORKFLOW_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<z.ZodObject<{
    workflowId: z.ZodString;
}, z.core.$strip>, z.ZodObject<{
    runId: z.ZodString;
}, z.core.$strip>, 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>>, unknown, "stream", import("../server-adapter").RouteSchemas<z.ZodObject<{
    workflowId: z.ZodString;
}, z.core.$strip>, z.ZodObject<{
    runId: z.ZodString;
}, z.core.$strip>, 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>, undefined>, "POST", "/workflows/:workflowId/stream">;
export declare const RESUME_STREAM_WORKFLOW_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<z.ZodObject<{
    workflowId: z.ZodString;
}, z.core.$strip>, z.ZodObject<{
    runId: z.ZodString;
}, z.core.$strip>, 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>>, any, "stream", import("../server-adapter").RouteSchemas<z.ZodObject<{
    workflowId: z.ZodString;
}, z.core.$strip>, z.ZodObject<{
    runId: z.ZodString;
}, z.core.$strip>, 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>, z.ZodAny>, "POST", "/workflows/:workflowId/resume-stream">;
export declare const START_ASYNC_WORKFLOW_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<z.ZodObject<{
    workflowId: z.ZodString;
}, z.core.$strip>, z.ZodObject<{
    runId: z.ZodOptional<z.ZodString>;
}, z.core.$strip>, 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>>, {
    status?: "success" | "running" | "waiting" | "suspended" | "failed" | "canceled" | "pending" | "bailed" | "tripwire" | "paused" | undefined;
    result?: unknown;
    error?: unknown;
    payload?: unknown;
    initialState?: unknown;
    steps?: Record<string, any> | undefined;
    activeStepsPath?: Record<string, number[]> | undefined;
    serializedStepGraph?: {
        type: "step" | "sleep" | "sleepUntil" | "waitForEvent" | "parallel" | "conditional" | "loop" | "foreach";
    }[] | undefined;
}, "json", import("../server-adapter").RouteSchemas<z.ZodObject<{
    workflowId: z.ZodString;
}, z.core.$strip>, z.ZodObject<{
    runId: z.ZodOptional<z.ZodString>;
}, z.core.$strip>, 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>, 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>>, "POST", "/workflows/:workflowId/start-async">;
export declare const START_WORKFLOW_RUN_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<z.ZodObject<{
    workflowId: z.ZodString;
}, z.core.$strip>, z.ZodObject<{
    runId: z.ZodString;
}, z.core.$strip>, 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>>, {
    message: string;
}, "json", import("../server-adapter").RouteSchemas<z.ZodObject<{
    workflowId: z.ZodString;
}, z.core.$strip>, z.ZodObject<{
    runId: z.ZodString;
}, z.core.$strip>, 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>, z.ZodObject<{
    message: z.ZodString;
}, z.core.$strip>>, "POST", "/workflows/:workflowId/start">;
export declare const OBSERVE_STREAM_WORKFLOW_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<z.ZodObject<{
    workflowId: z.ZodString;
}, z.core.$strip>, z.ZodObject<{
    runId: z.ZodString;
}, z.core.$strip>, undefined>, any, "stream", import("../server-adapter").RouteSchemas<z.ZodObject<{
    workflowId: z.ZodString;
}, z.core.$strip>, z.ZodObject<{
    runId: z.ZodString;
}, z.core.$strip>, undefined, z.ZodAny>, "POST", "/workflows/:workflowId/observe">;
export declare const RESUME_ASYNC_WORKFLOW_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<z.ZodObject<{
    workflowId: z.ZodString;
}, z.core.$strip>, z.ZodObject<{
    runId: z.ZodString;
}, z.core.$strip>, 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>>, {
    status?: "success" | "running" | "waiting" | "suspended" | "failed" | "canceled" | "pending" | "bailed" | "tripwire" | "paused" | undefined;
    result?: unknown;
    error?: unknown;
    payload?: unknown;
    initialState?: unknown;
    steps?: Record<string, any> | undefined;
    activeStepsPath?: Record<string, number[]> | undefined;
    serializedStepGraph?: {
        type: "step" | "sleep" | "sleepUntil" | "waitForEvent" | "parallel" | "conditional" | "loop" | "foreach";
    }[] | undefined;
}, "json", import("../server-adapter").RouteSchemas<z.ZodObject<{
    workflowId: z.ZodString;
}, z.core.$strip>, z.ZodObject<{
    runId: z.ZodString;
}, z.core.$strip>, 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>, 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>>, "POST", "/workflows/:workflowId/resume-async">;
export declare const RESUME_WORKFLOW_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<z.ZodObject<{
    workflowId: z.ZodString;
}, z.core.$strip>, z.ZodObject<{
    runId: z.ZodString;
}, z.core.$strip>, 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>>, {
    message: string;
}, "json", import("../server-adapter").RouteSchemas<z.ZodObject<{
    workflowId: z.ZodString;
}, z.core.$strip>, z.ZodObject<{
    runId: z.ZodString;
}, z.core.$strip>, 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>, z.ZodObject<{
    message: z.ZodString;
}, z.core.$strip>>, "POST", "/workflows/:workflowId/resume">;
export declare const RESTART_ASYNC_WORKFLOW_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<z.ZodObject<{
    workflowId: z.ZodString;
}, z.core.$strip>, z.ZodObject<{
    runId: z.ZodString;
}, z.core.$strip>, 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>>, {
    status?: "success" | "running" | "waiting" | "suspended" | "failed" | "canceled" | "pending" | "bailed" | "tripwire" | "paused" | undefined;
    result?: unknown;
    error?: unknown;
    payload?: unknown;
    initialState?: unknown;
    steps?: Record<string, any> | undefined;
    activeStepsPath?: Record<string, number[]> | undefined;
    serializedStepGraph?: {
        type: "step" | "sleep" | "sleepUntil" | "waitForEvent" | "parallel" | "conditional" | "loop" | "foreach";
    }[] | undefined;
}, "json", import("../server-adapter").RouteSchemas<z.ZodObject<{
    workflowId: z.ZodString;
}, z.core.$strip>, z.ZodObject<{
    runId: z.ZodString;
}, z.core.$strip>, 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>, 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>>, "POST", "/workflows/:workflowId/restart-async">;
export declare const RESTART_WORKFLOW_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<z.ZodObject<{
    workflowId: z.ZodString;
}, z.core.$strip>, z.ZodObject<{
    runId: z.ZodString;
}, z.core.$strip>, 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>>, {
    message: string;
}, "json", import("../server-adapter").RouteSchemas<z.ZodObject<{
    workflowId: z.ZodString;
}, z.core.$strip>, z.ZodObject<{
    runId: z.ZodString;
}, z.core.$strip>, 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>, z.ZodObject<{
    message: z.ZodString;
}, z.core.$strip>>, "POST", "/workflows/:workflowId/restart">;
export declare const RESTART_ALL_ACTIVE_WORKFLOW_RUNS_ASYNC_ROUTE: import("../server-adapter").ServerRoute<{
    workflowId: string;
}, {
    message: string;
}, "json", import("../server-adapter").RouteSchemas<z.ZodObject<{
    workflowId: z.ZodString;
}, z.core.$strip>, undefined, undefined, z.ZodObject<{
    message: z.ZodString;
}, z.core.$strip>>, "POST", "/workflows/:workflowId/restart-all-active-workflow-runs-async">;
export declare const RESTART_ALL_ACTIVE_WORKFLOW_RUNS_ROUTE: import("../server-adapter").ServerRoute<{
    workflowId: string;
}, {
    message: string;
}, "json", import("../server-adapter").RouteSchemas<z.ZodObject<{
    workflowId: z.ZodString;
}, z.core.$strip>, undefined, undefined, z.ZodObject<{
    message: z.ZodString;
}, z.core.$strip>>, "POST", "/workflows/:workflowId/restart-all-active-workflow-runs">;
export declare const TIME_TRAVEL_ASYNC_WORKFLOW_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<z.ZodObject<{
    workflowId: z.ZodString;
}, z.core.$strip>, z.ZodObject<{
    runId: z.ZodString;
}, z.core.$strip>, 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>>, {
    status?: "success" | "running" | "waiting" | "suspended" | "failed" | "canceled" | "pending" | "bailed" | "tripwire" | "paused" | undefined;
    result?: unknown;
    error?: unknown;
    payload?: unknown;
    initialState?: unknown;
    steps?: Record<string, any> | undefined;
    activeStepsPath?: Record<string, number[]> | undefined;
    serializedStepGraph?: {
        type: "step" | "sleep" | "sleepUntil" | "waitForEvent" | "parallel" | "conditional" | "loop" | "foreach";
    }[] | undefined;
}, "json", import("../server-adapter").RouteSchemas<z.ZodObject<{
    workflowId: z.ZodString;
}, z.core.$strip>, z.ZodObject<{
    runId: z.ZodString;
}, z.core.$strip>, 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>, 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>>, "POST", "/workflows/:workflowId/time-travel-async">;
export declare const TIME_TRAVEL_WORKFLOW_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<z.ZodObject<{
    workflowId: z.ZodString;
}, z.core.$strip>, z.ZodObject<{
    runId: z.ZodString;
}, z.core.$strip>, 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>>, {
    message: string;
}, "json", import("../server-adapter").RouteSchemas<z.ZodObject<{
    workflowId: z.ZodString;
}, z.core.$strip>, z.ZodObject<{
    runId: z.ZodString;
}, z.core.$strip>, 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>, z.ZodObject<{
    message: z.ZodString;
}, z.core.$strip>>, "POST", "/workflows/:workflowId/time-travel">;
export declare const TIME_TRAVEL_STREAM_WORKFLOW_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<z.ZodObject<{
    workflowId: z.ZodString;
}, z.core.$strip>, z.ZodObject<{
    runId: z.ZodString;
}, z.core.$strip>, 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>>, unknown, "stream", import("../server-adapter").RouteSchemas<z.ZodObject<{
    workflowId: z.ZodString;
}, z.core.$strip>, z.ZodObject<{
    runId: z.ZodString;
}, z.core.$strip>, 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>, undefined>, "POST", "/workflows/:workflowId/time-travel-stream">;
export declare const CANCEL_WORKFLOW_RUN_ROUTE: import("../server-adapter").ServerRoute<{
    workflowId: string;
    runId: string;
}, {
    message: string;
}, "json", import("../server-adapter").RouteSchemas<z.ZodObject<{
    workflowId: z.ZodString;
    runId: z.ZodString;
}, z.core.$strip>, undefined, undefined, z.ZodObject<{
    message: z.ZodString;
}, z.core.$strip>>, "POST", "/workflows/:workflowId/runs/:runId/cancel">;
export declare const STREAM_LEGACY_WORKFLOW_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<z.ZodObject<{
    workflowId: z.ZodString;
}, z.core.$strip>, z.ZodObject<{
    runId: z.ZodString;
}, z.core.$strip>, 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>>, any, "stream", import("../server-adapter").RouteSchemas<z.ZodObject<{
    workflowId: z.ZodString;
}, z.core.$strip>, z.ZodObject<{
    runId: z.ZodString;
}, z.core.$strip>, 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>, z.ZodAny>, "POST", "/workflows/:workflowId/stream-legacy">;
export declare const OBSERVE_STREAM_LEGACY_WORKFLOW_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<z.ZodObject<{
    workflowId: z.ZodString;
}, z.core.$strip>, z.ZodObject<{
    runId: z.ZodString;
}, z.core.$strip>, undefined>, any, "stream", import("../server-adapter").RouteSchemas<z.ZodObject<{
    workflowId: z.ZodString;
}, z.core.$strip>, z.ZodObject<{
    runId: z.ZodString;
}, z.core.$strip>, undefined, z.ZodAny>, "POST", "/workflows/:workflowId/observe-stream-legacy">;
//# sourceMappingURL=workflows.d.ts.map