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;
    }>;
    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;
    }>;
    stepGraph: {
        type: "step" | "sleep" | "sleepUntil" | "waitForEvent" | "parallel" | "conditional" | "loop" | "foreach";
    }[];
    options?: {} | undefined;
    name?: string | undefined;
    description?: string | undefined;
    stateSchema?: string | undefined;
    inputSchema?: string | undefined;
    outputSchema?: string | undefined;
    isProcessorWorkflow?: boolean | undefined;
}>, "json">;
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;
    }>;
    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;
    }>;
    stepGraph: {
        type: "step" | "sleep" | "sleepUntil" | "waitForEvent" | "parallel" | "conditional" | "loop" | "foreach";
    }[];
    options?: {} | undefined;
    name?: string | undefined;
    description?: string | undefined;
    stateSchema?: string | undefined;
    inputSchema?: string | undefined;
    outputSchema?: string | undefined;
    isProcessorWorkflow?: boolean | undefined;
}, "json">;
export declare const LIST_WORKFLOW_RUNS_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<z.ZodObject<{
    workflowId: z.ZodString;
}, "strip", z.ZodTypeAny, {
    workflowId: string;
}, {
    workflowId: string;
}>, z.ZodObject<{
    page: z.ZodOptional<z.ZodNumber>;
    perPage: z.ZodOptional<z.ZodNumber>;
    offset: z.ZodOptional<z.ZodNumber>;
    limit: z.ZodOptional<z.ZodNumber>;
} & {
    fromDate: z.ZodOptional<z.ZodDate>;
    toDate: z.ZodOptional<z.ZodDate>;
    resourceId: z.ZodOptional<z.ZodString>;
    status: z.ZodOptional<z.ZodEnum<["running", "waiting", "suspended", "success", "failed", "canceled", "pending", "bailed", "tripwire", "paused"]>>;
}, "strip", z.ZodTypeAny, {
    status?: "success" | "running" | "waiting" | "suspended" | "failed" | "canceled" | "pending" | "bailed" | "tripwire" | "paused" | undefined;
    page?: number | undefined;
    perPage?: number | undefined;
    offset?: number | undefined;
    limit?: number | undefined;
    resourceId?: string | undefined;
    fromDate?: Date | undefined;
    toDate?: Date | undefined;
}, {
    status?: "success" | "running" | "waiting" | "suspended" | "failed" | "canceled" | "pending" | "bailed" | "tripwire" | "paused" | undefined;
    page?: number | undefined;
    perPage?: number | undefined;
    offset?: number | undefined;
    limit?: number | undefined;
    resourceId?: string | undefined;
    fromDate?: Date | undefined;
    toDate?: Date | undefined;
}>, undefined>, {
    total: number;
    runs: {
        runId: string;
        workflowName: string;
        snapshot: string | {};
        createdAt: Date;
        updatedAt: Date;
        resourceId?: string | undefined;
    }[];
}, "json">;
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;
}, "strip", z.ZodTypeAny, {
    runId: string;
    workflowId: string;
}, {
    runId: string;
    workflowId: string;
}>, z.ZodObject<{
    fields: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, string | undefined>;
    withNestedWorkflows: z.ZodOptional<z.ZodEnum<["true", "false"]>>;
}, "strip", z.ZodTypeAny, {
    fields?: string | undefined;
    withNestedWorkflows?: "true" | "false" | undefined;
}, {
    fields?: string | undefined;
    withNestedWorkflows?: "true" | "false" | undefined;
}>, undefined>, {
    runId: string;
    status: "success" | "running" | "waiting" | "suspended" | "failed" | "canceled" | "pending" | "bailed" | "tripwire" | "paused";
    workflowName: string;
    createdAt: Date;
    updatedAt: Date;
    error?: unknown;
    steps?: Record<string, any> | undefined;
    resourceId?: string | undefined;
    initialState?: Record<string, any> | undefined;
    result?: unknown;
    payload?: unknown;
    activeStepsPath?: Record<string, number[]> | undefined;
    serializedStepGraph?: {
        type: "step" | "sleep" | "sleepUntil" | "waitForEvent" | "parallel" | "conditional" | "loop" | "foreach";
    }[] | undefined;
}, "json">;
export declare const DELETE_WORKFLOW_RUN_BY_ID_ROUTE: import("../server-adapter").ServerRoute<{
    runId: string;
    workflowId: string;
}, {
    message: string;
}, "json">;
export declare const CREATE_WORKFLOW_RUN_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<z.ZodObject<{
    workflowId: z.ZodString;
}, "strip", z.ZodTypeAny, {
    workflowId: string;
}, {
    workflowId: string;
}>, z.ZodObject<{
    runId: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
    runId?: string | undefined;
}, {
    runId?: string | undefined;
}>, z.ZodObject<{
    resourceId: z.ZodOptional<z.ZodString>;
    disableScorers: z.ZodOptional<z.ZodBoolean>;
}, "strip", z.ZodTypeAny, {
    resourceId?: string | undefined;
    disableScorers?: boolean | undefined;
}, {
    resourceId?: string | undefined;
    disableScorers?: boolean | undefined;
}>>, {
    runId: string;
}, "json">;
export declare const STREAM_WORKFLOW_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<z.ZodObject<{
    workflowId: z.ZodString;
}, "strip", z.ZodTypeAny, {
    workflowId: string;
}, {
    workflowId: string;
}>, z.ZodObject<{
    runId: z.ZodString;
}, "strip", z.ZodTypeAny, {
    runId: string;
}, {
    runId: string;
}>, 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, "many">>;
        traceId: z.ZodOptional<z.ZodString>;
        parentSpanId: z.ZodOptional<z.ZodString>;
    }, "strip", z.ZodTypeAny, {
        metadata?: Record<string, unknown> | undefined;
        requestContextKeys?: string[] | undefined;
        traceId?: string | undefined;
        parentSpanId?: string | undefined;
    }, {
        metadata?: Record<string, unknown> | undefined;
        requestContextKeys?: string[] | undefined;
        traceId?: string | undefined;
        parentSpanId?: string | undefined;
    }>>;
    perStep: z.ZodOptional<z.ZodBoolean>;
} & {
    closeOnSuspend: z.ZodOptional<z.ZodBoolean>;
}, "strip", z.ZodTypeAny, {
    resourceId?: string | undefined;
    inputData?: unknown;
    initialState?: unknown;
    requestContext?: Record<string, unknown> | undefined;
    tracingOptions?: {
        metadata?: Record<string, unknown> | undefined;
        requestContextKeys?: string[] | undefined;
        traceId?: string | undefined;
        parentSpanId?: string | undefined;
    } | undefined;
    perStep?: boolean | undefined;
    closeOnSuspend?: boolean | undefined;
}, {
    resourceId?: string | undefined;
    inputData?: unknown;
    initialState?: unknown;
    requestContext?: Record<string, unknown> | undefined;
    tracingOptions?: {
        metadata?: Record<string, unknown> | undefined;
        requestContextKeys?: string[] | undefined;
        traceId?: string | undefined;
        parentSpanId?: string | undefined;
    } | undefined;
    perStep?: boolean | undefined;
    closeOnSuspend?: boolean | undefined;
}>>, unknown, "stream">;
export declare const RESUME_STREAM_WORKFLOW_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<z.ZodObject<{
    workflowId: z.ZodString;
}, "strip", z.ZodTypeAny, {
    workflowId: string;
}, {
    workflowId: string;
}>, z.ZodObject<{
    runId: z.ZodString;
}, "strip", z.ZodTypeAny, {
    runId: string;
}, {
    runId: string;
}>, z.ZodObject<{
    step: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
    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, "many">>;
        traceId: z.ZodOptional<z.ZodString>;
        parentSpanId: z.ZodOptional<z.ZodString>;
    }, "strip", z.ZodTypeAny, {
        metadata?: Record<string, unknown> | undefined;
        requestContextKeys?: string[] | undefined;
        traceId?: string | undefined;
        parentSpanId?: string | undefined;
    }, {
        metadata?: Record<string, unknown> | undefined;
        requestContextKeys?: string[] | undefined;
        traceId?: string | undefined;
        parentSpanId?: string | undefined;
    }>>;
    perStep: z.ZodOptional<z.ZodBoolean>;
}, "strip", z.ZodTypeAny, {
    step?: string | string[] | undefined;
    requestContext?: Record<string, unknown> | undefined;
    tracingOptions?: {
        metadata?: Record<string, unknown> | undefined;
        requestContextKeys?: string[] | undefined;
        traceId?: string | undefined;
        parentSpanId?: string | undefined;
    } | undefined;
    perStep?: boolean | undefined;
    resumeData?: unknown;
}, {
    step?: string | string[] | undefined;
    requestContext?: Record<string, unknown> | undefined;
    tracingOptions?: {
        metadata?: Record<string, unknown> | undefined;
        requestContextKeys?: string[] | undefined;
        traceId?: string | undefined;
        parentSpanId?: string | undefined;
    } | undefined;
    perStep?: boolean | undefined;
    resumeData?: unknown;
}>>, any, "stream">;
export declare const START_ASYNC_WORKFLOW_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<z.ZodObject<{
    workflowId: z.ZodString;
}, "strip", z.ZodTypeAny, {
    workflowId: string;
}, {
    workflowId: string;
}>, z.ZodObject<{
    runId: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
    runId?: string | undefined;
}, {
    runId?: string | undefined;
}>, 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, "many">>;
        traceId: z.ZodOptional<z.ZodString>;
        parentSpanId: z.ZodOptional<z.ZodString>;
    }, "strip", z.ZodTypeAny, {
        metadata?: Record<string, unknown> | undefined;
        requestContextKeys?: string[] | undefined;
        traceId?: string | undefined;
        parentSpanId?: string | undefined;
    }, {
        metadata?: Record<string, unknown> | undefined;
        requestContextKeys?: string[] | undefined;
        traceId?: string | undefined;
        parentSpanId?: string | undefined;
    }>>;
    perStep: z.ZodOptional<z.ZodBoolean>;
}, "strip", z.ZodTypeAny, {
    resourceId?: string | undefined;
    inputData?: unknown;
    initialState?: unknown;
    requestContext?: Record<string, unknown> | undefined;
    tracingOptions?: {
        metadata?: Record<string, unknown> | undefined;
        requestContextKeys?: string[] | undefined;
        traceId?: string | undefined;
        parentSpanId?: string | undefined;
    } | undefined;
    perStep?: boolean | undefined;
}, {
    resourceId?: string | undefined;
    inputData?: unknown;
    initialState?: unknown;
    requestContext?: Record<string, unknown> | undefined;
    tracingOptions?: {
        metadata?: Record<string, unknown> | undefined;
        requestContextKeys?: string[] | undefined;
        traceId?: string | undefined;
        parentSpanId?: string | undefined;
    } | undefined;
    perStep?: boolean | undefined;
}>>, {
    status?: "success" | "running" | "waiting" | "suspended" | "failed" | "canceled" | "pending" | "bailed" | "tripwire" | "paused" | undefined;
    error?: unknown;
    steps?: Record<string, any> | undefined;
    initialState?: unknown;
    result?: unknown;
    payload?: unknown;
    activeStepsPath?: Record<string, number[]> | undefined;
    serializedStepGraph?: {
        type: "step" | "sleep" | "sleepUntil" | "waitForEvent" | "parallel" | "conditional" | "loop" | "foreach";
    }[] | undefined;
}, "json">;
export declare const START_WORKFLOW_RUN_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<z.ZodObject<{
    workflowId: z.ZodString;
}, "strip", z.ZodTypeAny, {
    workflowId: string;
}, {
    workflowId: string;
}>, z.ZodObject<{
    runId: z.ZodString;
}, "strip", z.ZodTypeAny, {
    runId: string;
}, {
    runId: string;
}>, 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, "many">>;
        traceId: z.ZodOptional<z.ZodString>;
        parentSpanId: z.ZodOptional<z.ZodString>;
    }, "strip", z.ZodTypeAny, {
        metadata?: Record<string, unknown> | undefined;
        requestContextKeys?: string[] | undefined;
        traceId?: string | undefined;
        parentSpanId?: string | undefined;
    }, {
        metadata?: Record<string, unknown> | undefined;
        requestContextKeys?: string[] | undefined;
        traceId?: string | undefined;
        parentSpanId?: string | undefined;
    }>>;
    perStep: z.ZodOptional<z.ZodBoolean>;
}, "strip", z.ZodTypeAny, {
    resourceId?: string | undefined;
    inputData?: unknown;
    initialState?: unknown;
    requestContext?: Record<string, unknown> | undefined;
    tracingOptions?: {
        metadata?: Record<string, unknown> | undefined;
        requestContextKeys?: string[] | undefined;
        traceId?: string | undefined;
        parentSpanId?: string | undefined;
    } | undefined;
    perStep?: boolean | undefined;
}, {
    resourceId?: string | undefined;
    inputData?: unknown;
    initialState?: unknown;
    requestContext?: Record<string, unknown> | undefined;
    tracingOptions?: {
        metadata?: Record<string, unknown> | undefined;
        requestContextKeys?: string[] | undefined;
        traceId?: string | undefined;
        parentSpanId?: string | undefined;
    } | undefined;
    perStep?: boolean | undefined;
}>>, {
    message: string;
}, "json">;
export declare const OBSERVE_STREAM_WORKFLOW_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<z.ZodObject<{
    workflowId: z.ZodString;
}, "strip", z.ZodTypeAny, {
    workflowId: string;
}, {
    workflowId: string;
}>, z.ZodObject<{
    runId: z.ZodString;
}, "strip", z.ZodTypeAny, {
    runId: string;
}, {
    runId: string;
}>, undefined>, any, "stream">;
export declare const RESUME_ASYNC_WORKFLOW_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<z.ZodObject<{
    workflowId: z.ZodString;
}, "strip", z.ZodTypeAny, {
    workflowId: string;
}, {
    workflowId: string;
}>, z.ZodObject<{
    runId: z.ZodString;
}, "strip", z.ZodTypeAny, {
    runId: string;
}, {
    runId: string;
}>, z.ZodObject<{
    step: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
    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, "many">>;
        traceId: z.ZodOptional<z.ZodString>;
        parentSpanId: z.ZodOptional<z.ZodString>;
    }, "strip", z.ZodTypeAny, {
        metadata?: Record<string, unknown> | undefined;
        requestContextKeys?: string[] | undefined;
        traceId?: string | undefined;
        parentSpanId?: string | undefined;
    }, {
        metadata?: Record<string, unknown> | undefined;
        requestContextKeys?: string[] | undefined;
        traceId?: string | undefined;
        parentSpanId?: string | undefined;
    }>>;
    perStep: z.ZodOptional<z.ZodBoolean>;
}, "strip", z.ZodTypeAny, {
    step?: string | string[] | undefined;
    requestContext?: Record<string, unknown> | undefined;
    tracingOptions?: {
        metadata?: Record<string, unknown> | undefined;
        requestContextKeys?: string[] | undefined;
        traceId?: string | undefined;
        parentSpanId?: string | undefined;
    } | undefined;
    perStep?: boolean | undefined;
    resumeData?: unknown;
}, {
    step?: string | string[] | undefined;
    requestContext?: Record<string, unknown> | undefined;
    tracingOptions?: {
        metadata?: Record<string, unknown> | undefined;
        requestContextKeys?: string[] | undefined;
        traceId?: string | undefined;
        parentSpanId?: string | undefined;
    } | undefined;
    perStep?: boolean | undefined;
    resumeData?: unknown;
}>>, {
    status?: "success" | "running" | "waiting" | "suspended" | "failed" | "canceled" | "pending" | "bailed" | "tripwire" | "paused" | undefined;
    error?: unknown;
    steps?: Record<string, any> | undefined;
    initialState?: unknown;
    result?: unknown;
    payload?: unknown;
    activeStepsPath?: Record<string, number[]> | undefined;
    serializedStepGraph?: {
        type: "step" | "sleep" | "sleepUntil" | "waitForEvent" | "parallel" | "conditional" | "loop" | "foreach";
    }[] | undefined;
}, "json">;
export declare const RESUME_WORKFLOW_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<z.ZodObject<{
    workflowId: z.ZodString;
}, "strip", z.ZodTypeAny, {
    workflowId: string;
}, {
    workflowId: string;
}>, z.ZodObject<{
    runId: z.ZodString;
}, "strip", z.ZodTypeAny, {
    runId: string;
}, {
    runId: string;
}>, z.ZodObject<{
    step: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
    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, "many">>;
        traceId: z.ZodOptional<z.ZodString>;
        parentSpanId: z.ZodOptional<z.ZodString>;
    }, "strip", z.ZodTypeAny, {
        metadata?: Record<string, unknown> | undefined;
        requestContextKeys?: string[] | undefined;
        traceId?: string | undefined;
        parentSpanId?: string | undefined;
    }, {
        metadata?: Record<string, unknown> | undefined;
        requestContextKeys?: string[] | undefined;
        traceId?: string | undefined;
        parentSpanId?: string | undefined;
    }>>;
    perStep: z.ZodOptional<z.ZodBoolean>;
}, "strip", z.ZodTypeAny, {
    step?: string | string[] | undefined;
    requestContext?: Record<string, unknown> | undefined;
    tracingOptions?: {
        metadata?: Record<string, unknown> | undefined;
        requestContextKeys?: string[] | undefined;
        traceId?: string | undefined;
        parentSpanId?: string | undefined;
    } | undefined;
    perStep?: boolean | undefined;
    resumeData?: unknown;
}, {
    step?: string | string[] | undefined;
    requestContext?: Record<string, unknown> | undefined;
    tracingOptions?: {
        metadata?: Record<string, unknown> | undefined;
        requestContextKeys?: string[] | undefined;
        traceId?: string | undefined;
        parentSpanId?: string | undefined;
    } | undefined;
    perStep?: boolean | undefined;
    resumeData?: unknown;
}>>, {
    message: string;
}, "json">;
export declare const RESTART_ASYNC_WORKFLOW_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<z.ZodObject<{
    workflowId: z.ZodString;
}, "strip", z.ZodTypeAny, {
    workflowId: string;
}, {
    workflowId: string;
}>, z.ZodObject<{
    runId: z.ZodString;
}, "strip", z.ZodTypeAny, {
    runId: string;
}, {
    runId: string;
}>, 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, "many">>;
        traceId: z.ZodOptional<z.ZodString>;
        parentSpanId: z.ZodOptional<z.ZodString>;
    }, "strip", z.ZodTypeAny, {
        metadata?: Record<string, unknown> | undefined;
        requestContextKeys?: string[] | undefined;
        traceId?: string | undefined;
        parentSpanId?: string | undefined;
    }, {
        metadata?: Record<string, unknown> | undefined;
        requestContextKeys?: string[] | undefined;
        traceId?: string | undefined;
        parentSpanId?: string | undefined;
    }>>;
}, "strip", z.ZodTypeAny, {
    requestContext?: Record<string, unknown> | undefined;
    tracingOptions?: {
        metadata?: Record<string, unknown> | undefined;
        requestContextKeys?: string[] | undefined;
        traceId?: string | undefined;
        parentSpanId?: string | undefined;
    } | undefined;
}, {
    requestContext?: Record<string, unknown> | undefined;
    tracingOptions?: {
        metadata?: Record<string, unknown> | undefined;
        requestContextKeys?: string[] | undefined;
        traceId?: string | undefined;
        parentSpanId?: string | undefined;
    } | undefined;
}>>, {
    status?: "success" | "running" | "waiting" | "suspended" | "failed" | "canceled" | "pending" | "bailed" | "tripwire" | "paused" | undefined;
    error?: unknown;
    steps?: Record<string, any> | undefined;
    initialState?: unknown;
    result?: unknown;
    payload?: unknown;
    activeStepsPath?: Record<string, number[]> | undefined;
    serializedStepGraph?: {
        type: "step" | "sleep" | "sleepUntil" | "waitForEvent" | "parallel" | "conditional" | "loop" | "foreach";
    }[] | undefined;
}, "json">;
export declare const RESTART_WORKFLOW_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<z.ZodObject<{
    workflowId: z.ZodString;
}, "strip", z.ZodTypeAny, {
    workflowId: string;
}, {
    workflowId: string;
}>, z.ZodObject<{
    runId: z.ZodString;
}, "strip", z.ZodTypeAny, {
    runId: string;
}, {
    runId: string;
}>, 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, "many">>;
        traceId: z.ZodOptional<z.ZodString>;
        parentSpanId: z.ZodOptional<z.ZodString>;
    }, "strip", z.ZodTypeAny, {
        metadata?: Record<string, unknown> | undefined;
        requestContextKeys?: string[] | undefined;
        traceId?: string | undefined;
        parentSpanId?: string | undefined;
    }, {
        metadata?: Record<string, unknown> | undefined;
        requestContextKeys?: string[] | undefined;
        traceId?: string | undefined;
        parentSpanId?: string | undefined;
    }>>;
}, "strip", z.ZodTypeAny, {
    requestContext?: Record<string, unknown> | undefined;
    tracingOptions?: {
        metadata?: Record<string, unknown> | undefined;
        requestContextKeys?: string[] | undefined;
        traceId?: string | undefined;
        parentSpanId?: string | undefined;
    } | undefined;
}, {
    requestContext?: Record<string, unknown> | undefined;
    tracingOptions?: {
        metadata?: Record<string, unknown> | undefined;
        requestContextKeys?: string[] | undefined;
        traceId?: string | undefined;
        parentSpanId?: string | undefined;
    } | undefined;
}>>, {
    message: string;
}, "json">;
export declare const RESTART_ALL_ACTIVE_WORKFLOW_RUNS_ASYNC_ROUTE: import("../server-adapter").ServerRoute<{
    workflowId: string;
}, {
    message: string;
}, "json">;
export declare const RESTART_ALL_ACTIVE_WORKFLOW_RUNS_ROUTE: import("../server-adapter").ServerRoute<{
    workflowId: string;
}, {
    message: string;
}, "json">;
export declare const TIME_TRAVEL_ASYNC_WORKFLOW_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<z.ZodObject<{
    workflowId: z.ZodString;
}, "strip", z.ZodTypeAny, {
    workflowId: string;
}, {
    workflowId: string;
}>, z.ZodObject<{
    runId: z.ZodString;
}, "strip", z.ZodTypeAny, {
    runId: string;
}, {
    runId: string;
}>, z.ZodObject<{
    inputData: z.ZodOptional<z.ZodUnknown>;
    resumeData: z.ZodOptional<z.ZodUnknown>;
    initialState: z.ZodOptional<z.ZodUnknown>;
    step: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
    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, "many">>;
        traceId: z.ZodOptional<z.ZodString>;
        parentSpanId: z.ZodOptional<z.ZodString>;
    }, "strip", z.ZodTypeAny, {
        metadata?: Record<string, unknown> | undefined;
        requestContextKeys?: string[] | undefined;
        traceId?: string | undefined;
        parentSpanId?: string | undefined;
    }, {
        metadata?: Record<string, unknown> | undefined;
        requestContextKeys?: string[] | undefined;
        traceId?: string | undefined;
        parentSpanId?: string | undefined;
    }>>;
    perStep: z.ZodOptional<z.ZodBoolean>;
}, "strip", z.ZodTypeAny, {
    step: string | string[];
    context?: Record<string, any> | undefined;
    inputData?: unknown;
    initialState?: unknown;
    requestContext?: Record<string, unknown> | undefined;
    tracingOptions?: {
        metadata?: Record<string, unknown> | undefined;
        requestContextKeys?: string[] | undefined;
        traceId?: string | undefined;
        parentSpanId?: string | undefined;
    } | undefined;
    perStep?: boolean | undefined;
    resumeData?: unknown;
    nestedStepsContext?: Record<string, Record<string, any>> | undefined;
}, {
    step: string | string[];
    context?: Record<string, any> | undefined;
    inputData?: unknown;
    initialState?: unknown;
    requestContext?: Record<string, unknown> | undefined;
    tracingOptions?: {
        metadata?: Record<string, unknown> | undefined;
        requestContextKeys?: string[] | undefined;
        traceId?: string | undefined;
        parentSpanId?: string | undefined;
    } | undefined;
    perStep?: boolean | undefined;
    resumeData?: unknown;
    nestedStepsContext?: Record<string, Record<string, any>> | undefined;
}>>, {
    status?: "success" | "running" | "waiting" | "suspended" | "failed" | "canceled" | "pending" | "bailed" | "tripwire" | "paused" | undefined;
    error?: unknown;
    steps?: Record<string, any> | undefined;
    initialState?: unknown;
    result?: unknown;
    payload?: unknown;
    activeStepsPath?: Record<string, number[]> | undefined;
    serializedStepGraph?: {
        type: "step" | "sleep" | "sleepUntil" | "waitForEvent" | "parallel" | "conditional" | "loop" | "foreach";
    }[] | undefined;
}, "json">;
export declare const TIME_TRAVEL_WORKFLOW_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<z.ZodObject<{
    workflowId: z.ZodString;
}, "strip", z.ZodTypeAny, {
    workflowId: string;
}, {
    workflowId: string;
}>, z.ZodObject<{
    runId: z.ZodString;
}, "strip", z.ZodTypeAny, {
    runId: string;
}, {
    runId: string;
}>, z.ZodObject<{
    inputData: z.ZodOptional<z.ZodUnknown>;
    resumeData: z.ZodOptional<z.ZodUnknown>;
    initialState: z.ZodOptional<z.ZodUnknown>;
    step: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
    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, "many">>;
        traceId: z.ZodOptional<z.ZodString>;
        parentSpanId: z.ZodOptional<z.ZodString>;
    }, "strip", z.ZodTypeAny, {
        metadata?: Record<string, unknown> | undefined;
        requestContextKeys?: string[] | undefined;
        traceId?: string | undefined;
        parentSpanId?: string | undefined;
    }, {
        metadata?: Record<string, unknown> | undefined;
        requestContextKeys?: string[] | undefined;
        traceId?: string | undefined;
        parentSpanId?: string | undefined;
    }>>;
    perStep: z.ZodOptional<z.ZodBoolean>;
}, "strip", z.ZodTypeAny, {
    step: string | string[];
    context?: Record<string, any> | undefined;
    inputData?: unknown;
    initialState?: unknown;
    requestContext?: Record<string, unknown> | undefined;
    tracingOptions?: {
        metadata?: Record<string, unknown> | undefined;
        requestContextKeys?: string[] | undefined;
        traceId?: string | undefined;
        parentSpanId?: string | undefined;
    } | undefined;
    perStep?: boolean | undefined;
    resumeData?: unknown;
    nestedStepsContext?: Record<string, Record<string, any>> | undefined;
}, {
    step: string | string[];
    context?: Record<string, any> | undefined;
    inputData?: unknown;
    initialState?: unknown;
    requestContext?: Record<string, unknown> | undefined;
    tracingOptions?: {
        metadata?: Record<string, unknown> | undefined;
        requestContextKeys?: string[] | undefined;
        traceId?: string | undefined;
        parentSpanId?: string | undefined;
    } | undefined;
    perStep?: boolean | undefined;
    resumeData?: unknown;
    nestedStepsContext?: Record<string, Record<string, any>> | undefined;
}>>, {
    message: string;
}, "json">;
export declare const TIME_TRAVEL_STREAM_WORKFLOW_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<z.ZodObject<{
    workflowId: z.ZodString;
}, "strip", z.ZodTypeAny, {
    workflowId: string;
}, {
    workflowId: string;
}>, z.ZodObject<{
    runId: z.ZodString;
}, "strip", z.ZodTypeAny, {
    runId: string;
}, {
    runId: string;
}>, z.ZodObject<{
    inputData: z.ZodOptional<z.ZodUnknown>;
    resumeData: z.ZodOptional<z.ZodUnknown>;
    initialState: z.ZodOptional<z.ZodUnknown>;
    step: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
    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, "many">>;
        traceId: z.ZodOptional<z.ZodString>;
        parentSpanId: z.ZodOptional<z.ZodString>;
    }, "strip", z.ZodTypeAny, {
        metadata?: Record<string, unknown> | undefined;
        requestContextKeys?: string[] | undefined;
        traceId?: string | undefined;
        parentSpanId?: string | undefined;
    }, {
        metadata?: Record<string, unknown> | undefined;
        requestContextKeys?: string[] | undefined;
        traceId?: string | undefined;
        parentSpanId?: string | undefined;
    }>>;
    perStep: z.ZodOptional<z.ZodBoolean>;
}, "strip", z.ZodTypeAny, {
    step: string | string[];
    context?: Record<string, any> | undefined;
    inputData?: unknown;
    initialState?: unknown;
    requestContext?: Record<string, unknown> | undefined;
    tracingOptions?: {
        metadata?: Record<string, unknown> | undefined;
        requestContextKeys?: string[] | undefined;
        traceId?: string | undefined;
        parentSpanId?: string | undefined;
    } | undefined;
    perStep?: boolean | undefined;
    resumeData?: unknown;
    nestedStepsContext?: Record<string, Record<string, any>> | undefined;
}, {
    step: string | string[];
    context?: Record<string, any> | undefined;
    inputData?: unknown;
    initialState?: unknown;
    requestContext?: Record<string, unknown> | undefined;
    tracingOptions?: {
        metadata?: Record<string, unknown> | undefined;
        requestContextKeys?: string[] | undefined;
        traceId?: string | undefined;
        parentSpanId?: string | undefined;
    } | undefined;
    perStep?: boolean | undefined;
    resumeData?: unknown;
    nestedStepsContext?: Record<string, Record<string, any>> | undefined;
}>>, unknown, "stream">;
export declare const CANCEL_WORKFLOW_RUN_ROUTE: import("../server-adapter").ServerRoute<{
    runId: string;
    workflowId: string;
}, {
    message: string;
}, "json">;
export declare const STREAM_LEGACY_WORKFLOW_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<z.ZodObject<{
    workflowId: z.ZodString;
}, "strip", z.ZodTypeAny, {
    workflowId: string;
}, {
    workflowId: string;
}>, z.ZodObject<{
    runId: z.ZodString;
}, "strip", z.ZodTypeAny, {
    runId: string;
}, {
    runId: string;
}>, 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, "many">>;
        traceId: z.ZodOptional<z.ZodString>;
        parentSpanId: z.ZodOptional<z.ZodString>;
    }, "strip", z.ZodTypeAny, {
        metadata?: Record<string, unknown> | undefined;
        requestContextKeys?: string[] | undefined;
        traceId?: string | undefined;
        parentSpanId?: string | undefined;
    }, {
        metadata?: Record<string, unknown> | undefined;
        requestContextKeys?: string[] | undefined;
        traceId?: string | undefined;
        parentSpanId?: string | undefined;
    }>>;
    perStep: z.ZodOptional<z.ZodBoolean>;
} & {
    closeOnSuspend: z.ZodOptional<z.ZodBoolean>;
}, "strip", z.ZodTypeAny, {
    resourceId?: string | undefined;
    inputData?: unknown;
    initialState?: unknown;
    requestContext?: Record<string, unknown> | undefined;
    tracingOptions?: {
        metadata?: Record<string, unknown> | undefined;
        requestContextKeys?: string[] | undefined;
        traceId?: string | undefined;
        parentSpanId?: string | undefined;
    } | undefined;
    perStep?: boolean | undefined;
    closeOnSuspend?: boolean | undefined;
}, {
    resourceId?: string | undefined;
    inputData?: unknown;
    initialState?: unknown;
    requestContext?: Record<string, unknown> | undefined;
    tracingOptions?: {
        metadata?: Record<string, unknown> | undefined;
        requestContextKeys?: string[] | undefined;
        traceId?: string | undefined;
        parentSpanId?: string | undefined;
    } | undefined;
    perStep?: boolean | undefined;
    closeOnSuspend?: boolean | undefined;
}>>, any, "stream">;
export declare const OBSERVE_STREAM_LEGACY_WORKFLOW_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<z.ZodObject<{
    workflowId: z.ZodString;
}, "strip", z.ZodTypeAny, {
    workflowId: string;
}, {
    workflowId: string;
}>, z.ZodObject<{
    runId: z.ZodString;
}, "strip", z.ZodTypeAny, {
    runId: string;
}, {
    runId: string;
}>, undefined>, any, "stream">;
//# sourceMappingURL=workflows.d.ts.map