import { z } from 'zod';
import { ExecutionRunClassSchema, type ExecutionRunClass, ExecutionRunDisplaySchema, type ExecutionRunDisplay, ExecutionRunIntentSchema, type ExecutionRunIntent, ExecutionRunIoModeSchema, type ExecutionRunIoMode, ExecutionRunReplaySeedRequestSchema, type ExecutionRunReplaySeedRequest, ExecutionRunResumeHandleSchema, type ExecutionRunResumeHandle, ExecutionRunResumeHandleVendorSessionV1Schema, type ExecutionRunResumeHandleVendorSessionV1, ExecutionRunResumeHandleVoiceAgentSessionsV1Schema, type ExecutionRunResumeHandleVoiceAgentSessionsV1, ExecutionRunRetentionPolicySchema, type ExecutionRunRetentionPolicy, ExecutionRunStartRequestSchema, type ExecutionRunStartRequest, ExecutionRunStartResponseSchema, type ExecutionRunStartResponse, normalizeLegacyExecutionRunBackendTargetInput } from './executionRunStartRequest.js';
/**
 * Public contract for execution runs (sub-agents / reviews / planning / delegation / voice agent).
 *
 * Notes:
 * - This schema is used by session-scoped RPC + MCP and must remain stable and bounded.
 * - Rich/large UI payloads (e.g. full review findings) are carried via transcript message `meta.happier`.
 */
export { ExecutionRunIntentSchema, ExecutionRunRetentionPolicySchema, ExecutionRunClassSchema, ExecutionRunIoModeSchema, normalizeLegacyExecutionRunBackendTargetInput, ExecutionRunResumeHandleVendorSessionV1Schema, ExecutionRunResumeHandleVoiceAgentSessionsV1Schema, ExecutionRunResumeHandleSchema, ExecutionRunDisplaySchema, ExecutionRunReplaySeedRequestSchema, ExecutionRunStartRequestSchema, ExecutionRunStartResponseSchema, };
export type { ExecutionRunIntent, ExecutionRunRetentionPolicy, ExecutionRunClass, ExecutionRunIoMode, ExecutionRunResumeHandleVendorSessionV1, ExecutionRunResumeHandleVoiceAgentSessionsV1, ExecutionRunResumeHandle, ExecutionRunDisplay, ExecutionRunReplaySeedRequest, ExecutionRunStartRequest, ExecutionRunStartResponse, };
export declare const ExecutionRunTransportErrorCodeSchema: z.ZodEnum<{
    execution_run_not_allowed: "execution_run_not_allowed";
    execution_run_not_found: "execution_run_not_found";
    execution_run_action_not_supported: "execution_run_action_not_supported";
    execution_run_invalid_action_input: "execution_run_invalid_action_input";
    execution_run_stream_not_found: "execution_run_stream_not_found";
    execution_run_busy: "execution_run_busy";
    execution_run_failed: "execution_run_failed";
    execution_run_budget_exceeded: "execution_run_budget_exceeded";
    run_depth_exceeded: "run_depth_exceeded";
    permission_denied: "permission_denied";
}>;
export type ExecutionRunTransportErrorCode = z.infer<typeof ExecutionRunTransportErrorCodeSchema>;
export declare const ExecutionRunStatusSchema: z.ZodEnum<{
    failed: "failed";
    running: "running";
    succeeded: "succeeded";
    cancelled: "cancelled";
    timeout: "timeout";
}>;
export type ExecutionRunStatus = z.infer<typeof ExecutionRunStatusSchema>;
export declare const ExecutionRunListRequestSchema: z.ZodObject<{
    backendId: z.ZodOptional<z.ZodString>;
    backendTarget: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
        kind: z.ZodLiteral<"builtInAgent">;
        agentId: z.ZodString;
    }, z.core.$strip>, z.ZodObject<{
        kind: z.ZodLiteral<"configuredAcpBackend">;
        backendId: z.ZodString;
    }, z.core.$strip>]>>;
    status: z.ZodOptional<z.ZodEnum<{
        failed: "failed";
        running: "running";
        succeeded: "succeeded";
        cancelled: "cancelled";
        timeout: "timeout";
    }>>;
    limit: z.ZodOptional<z.ZodNumber>;
}, z.core.$strip>;
export type ExecutionRunListRequest = z.infer<typeof ExecutionRunListRequestSchema>;
export declare const ExecutionRunErrorSchema: z.ZodObject<{
    code: z.ZodString;
    message: z.ZodOptional<z.ZodString>;
}, z.core.$loose>;
export type ExecutionRunError = z.infer<typeof ExecutionRunErrorSchema>;
export declare const ExecutionRunTranscriptSchema: z.ZodObject<{
    persistenceMode: z.ZodEnum<{
        ephemeral: "ephemeral";
        persistent: "persistent";
    }>;
    epoch: z.ZodNumber;
}, z.core.$loose>;
export type ExecutionRunTranscript = z.infer<typeof ExecutionRunTranscriptSchema>;
export declare const ExecutionRunPublicStateSchema: z.ZodObject<{
    runId: z.ZodString;
    callId: z.ZodString;
    sidechainId: z.ZodString;
    intent: z.ZodEnum<{
        review: "review";
        plan: "plan";
        delegate: "delegate";
        voice_agent: "voice_agent";
        memory_hints: "memory_hints";
    }>;
    backendTarget: z.ZodUnion<readonly [z.ZodObject<{
        kind: z.ZodLiteral<"builtInAgent">;
        agentId: z.ZodString;
    }, z.core.$strip>, z.ZodObject<{
        kind: z.ZodLiteral<"configuredAcpBackend">;
        backendId: z.ZodString;
    }, z.core.$strip>]>;
    display: z.ZodOptional<z.ZodObject<{
        title: z.ZodOptional<z.ZodString>;
        participantLabel: z.ZodOptional<z.ZodString>;
        groupId: z.ZodOptional<z.ZodString>;
    }, z.core.$loose>>;
    permissionMode: z.ZodString;
    retentionPolicy: z.ZodEnum<{
        ephemeral: "ephemeral";
        resumable: "resumable";
    }>;
    runClass: z.ZodEnum<{
        bounded: "bounded";
        long_lived: "long_lived";
    }>;
    ioMode: z.ZodEnum<{
        request_response: "request_response";
        streaming: "streaming";
    }>;
    status: z.ZodEnum<{
        failed: "failed";
        running: "running";
        succeeded: "succeeded";
        cancelled: "cancelled";
        timeout: "timeout";
    }>;
    turnInFlight: z.ZodOptional<z.ZodBoolean>;
    availableActionIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
    resumeHandle: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDiscriminatedUnion<[z.ZodObject<{
        kind: z.ZodLiteral<"vendor_session.v1">;
        backendTarget: z.ZodUnion<readonly [z.ZodObject<{
            kind: z.ZodLiteral<"builtInAgent">;
            agentId: z.ZodString;
        }, z.core.$strip>, z.ZodObject<{
            kind: z.ZodLiteral<"configuredAcpBackend">;
            backendId: z.ZodString;
        }, z.core.$strip>]>;
        vendorSessionId: z.ZodString;
    }, z.core.$loose>, z.ZodObject<{
        kind: z.ZodLiteral<"voice_agent_sessions.v1">;
        backendTarget: z.ZodUnion<readonly [z.ZodObject<{
            kind: z.ZodLiteral<"builtInAgent">;
            agentId: z.ZodString;
        }, z.core.$strip>, z.ZodObject<{
            kind: z.ZodLiteral<"configuredAcpBackend">;
            backendId: z.ZodString;
        }, z.core.$strip>]>;
        chatVendorSessionId: z.ZodString;
        commitVendorSessionId: z.ZodString;
    }, z.core.$loose>], "kind">>>;
    transcript: z.ZodOptional<z.ZodObject<{
        persistenceMode: z.ZodEnum<{
            ephemeral: "ephemeral";
            persistent: "persistent";
        }>;
        epoch: z.ZodNumber;
    }, z.core.$loose>>;
    startedAtMs: z.ZodNumber;
    finishedAtMs: z.ZodOptional<z.ZodNumber>;
    error: z.ZodOptional<z.ZodObject<{
        code: z.ZodString;
        message: z.ZodOptional<z.ZodString>;
    }, z.core.$loose>>;
}, z.core.$loose>;
export type ExecutionRunPublicState = z.infer<typeof ExecutionRunPublicStateSchema>;
export declare const ExecutionRunListResponseSchema: z.ZodObject<{
    runs: z.ZodArray<z.ZodObject<{
        runId: z.ZodString;
        callId: z.ZodString;
        sidechainId: z.ZodString;
        intent: z.ZodEnum<{
            review: "review";
            plan: "plan";
            delegate: "delegate";
            voice_agent: "voice_agent";
            memory_hints: "memory_hints";
        }>;
        backendTarget: z.ZodUnion<readonly [z.ZodObject<{
            kind: z.ZodLiteral<"builtInAgent">;
            agentId: z.ZodString;
        }, z.core.$strip>, z.ZodObject<{
            kind: z.ZodLiteral<"configuredAcpBackend">;
            backendId: z.ZodString;
        }, z.core.$strip>]>;
        display: z.ZodOptional<z.ZodObject<{
            title: z.ZodOptional<z.ZodString>;
            participantLabel: z.ZodOptional<z.ZodString>;
            groupId: z.ZodOptional<z.ZodString>;
        }, z.core.$loose>>;
        permissionMode: z.ZodString;
        retentionPolicy: z.ZodEnum<{
            ephemeral: "ephemeral";
            resumable: "resumable";
        }>;
        runClass: z.ZodEnum<{
            bounded: "bounded";
            long_lived: "long_lived";
        }>;
        ioMode: z.ZodEnum<{
            request_response: "request_response";
            streaming: "streaming";
        }>;
        status: z.ZodEnum<{
            failed: "failed";
            running: "running";
            succeeded: "succeeded";
            cancelled: "cancelled";
            timeout: "timeout";
        }>;
        turnInFlight: z.ZodOptional<z.ZodBoolean>;
        availableActionIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
        resumeHandle: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDiscriminatedUnion<[z.ZodObject<{
            kind: z.ZodLiteral<"vendor_session.v1">;
            backendTarget: z.ZodUnion<readonly [z.ZodObject<{
                kind: z.ZodLiteral<"builtInAgent">;
                agentId: z.ZodString;
            }, z.core.$strip>, z.ZodObject<{
                kind: z.ZodLiteral<"configuredAcpBackend">;
                backendId: z.ZodString;
            }, z.core.$strip>]>;
            vendorSessionId: z.ZodString;
        }, z.core.$loose>, z.ZodObject<{
            kind: z.ZodLiteral<"voice_agent_sessions.v1">;
            backendTarget: z.ZodUnion<readonly [z.ZodObject<{
                kind: z.ZodLiteral<"builtInAgent">;
                agentId: z.ZodString;
            }, z.core.$strip>, z.ZodObject<{
                kind: z.ZodLiteral<"configuredAcpBackend">;
                backendId: z.ZodString;
            }, z.core.$strip>]>;
            chatVendorSessionId: z.ZodString;
            commitVendorSessionId: z.ZodString;
        }, z.core.$loose>], "kind">>>;
        transcript: z.ZodOptional<z.ZodObject<{
            persistenceMode: z.ZodEnum<{
                ephemeral: "ephemeral";
                persistent: "persistent";
            }>;
            epoch: z.ZodNumber;
        }, z.core.$loose>>;
        startedAtMs: z.ZodNumber;
        finishedAtMs: z.ZodOptional<z.ZodNumber>;
        error: z.ZodOptional<z.ZodObject<{
            code: z.ZodString;
            message: z.ZodOptional<z.ZodString>;
        }, z.core.$loose>>;
    }, z.core.$loose>>;
}, z.core.$loose>;
export type ExecutionRunListResponse = z.infer<typeof ExecutionRunListResponseSchema>;
export declare const ExecutionRunGetRequestSchema: z.ZodObject<{
    runId: z.ZodString;
    includeStructured: z.ZodOptional<z.ZodBoolean>;
}, z.core.$loose>;
export type ExecutionRunGetRequest = z.infer<typeof ExecutionRunGetRequestSchema>;
export declare const ExecutionRunGetResponseSchema: z.ZodObject<{
    run: z.ZodObject<{
        runId: z.ZodString;
        callId: z.ZodString;
        sidechainId: z.ZodString;
        intent: z.ZodEnum<{
            review: "review";
            plan: "plan";
            delegate: "delegate";
            voice_agent: "voice_agent";
            memory_hints: "memory_hints";
        }>;
        backendTarget: z.ZodUnion<readonly [z.ZodObject<{
            kind: z.ZodLiteral<"builtInAgent">;
            agentId: z.ZodString;
        }, z.core.$strip>, z.ZodObject<{
            kind: z.ZodLiteral<"configuredAcpBackend">;
            backendId: z.ZodString;
        }, z.core.$strip>]>;
        display: z.ZodOptional<z.ZodObject<{
            title: z.ZodOptional<z.ZodString>;
            participantLabel: z.ZodOptional<z.ZodString>;
            groupId: z.ZodOptional<z.ZodString>;
        }, z.core.$loose>>;
        permissionMode: z.ZodString;
        retentionPolicy: z.ZodEnum<{
            ephemeral: "ephemeral";
            resumable: "resumable";
        }>;
        runClass: z.ZodEnum<{
            bounded: "bounded";
            long_lived: "long_lived";
        }>;
        ioMode: z.ZodEnum<{
            request_response: "request_response";
            streaming: "streaming";
        }>;
        status: z.ZodEnum<{
            failed: "failed";
            running: "running";
            succeeded: "succeeded";
            cancelled: "cancelled";
            timeout: "timeout";
        }>;
        turnInFlight: z.ZodOptional<z.ZodBoolean>;
        availableActionIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
        resumeHandle: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDiscriminatedUnion<[z.ZodObject<{
            kind: z.ZodLiteral<"vendor_session.v1">;
            backendTarget: z.ZodUnion<readonly [z.ZodObject<{
                kind: z.ZodLiteral<"builtInAgent">;
                agentId: z.ZodString;
            }, z.core.$strip>, z.ZodObject<{
                kind: z.ZodLiteral<"configuredAcpBackend">;
                backendId: z.ZodString;
            }, z.core.$strip>]>;
            vendorSessionId: z.ZodString;
        }, z.core.$loose>, z.ZodObject<{
            kind: z.ZodLiteral<"voice_agent_sessions.v1">;
            backendTarget: z.ZodUnion<readonly [z.ZodObject<{
                kind: z.ZodLiteral<"builtInAgent">;
                agentId: z.ZodString;
            }, z.core.$strip>, z.ZodObject<{
                kind: z.ZodLiteral<"configuredAcpBackend">;
                backendId: z.ZodString;
            }, z.core.$strip>]>;
            chatVendorSessionId: z.ZodString;
            commitVendorSessionId: z.ZodString;
        }, z.core.$loose>], "kind">>>;
        transcript: z.ZodOptional<z.ZodObject<{
            persistenceMode: z.ZodEnum<{
                ephemeral: "ephemeral";
                persistent: "persistent";
            }>;
            epoch: z.ZodNumber;
        }, z.core.$loose>>;
        startedAtMs: z.ZodNumber;
        finishedAtMs: z.ZodOptional<z.ZodNumber>;
        error: z.ZodOptional<z.ZodObject<{
            code: z.ZodString;
            message: z.ZodOptional<z.ZodString>;
        }, z.core.$loose>>;
    }, z.core.$loose>;
    latestToolResult: z.ZodOptional<z.ZodUnknown>;
    structuredMeta: z.ZodOptional<z.ZodObject<{
        kind: z.ZodString;
        payload: z.ZodUnknown;
    }, z.core.$loose>>;
    structuredMetaArtifactRef: z.ZodOptional<z.ZodObject<{
        artifactId: z.ZodString;
    }, z.core.$loose>>;
}, z.core.$loose>;
export type ExecutionRunGetResponse = z.infer<typeof ExecutionRunGetResponseSchema>;
export declare const ExecutionRunSendRequestSchema: z.ZodObject<{
    runId: z.ZodString;
    message: z.ZodString;
    resume: z.ZodOptional<z.ZodBoolean>;
    delivery: z.ZodOptional<z.ZodEnum<{
        prompt: "prompt";
        steer_if_supported: "steer_if_supported";
        interrupt: "interrupt";
    }>>;
}, z.core.$loose>;
export type ExecutionRunSendRequest = z.infer<typeof ExecutionRunSendRequestSchema>;
export declare const ExecutionRunSendResponseSchema: z.ZodObject<{
    ok: z.ZodLiteral<true>;
}, z.core.$loose>;
export type ExecutionRunSendResponse = z.infer<typeof ExecutionRunSendResponseSchema>;
export declare const ExecutionRunStopRequestSchema: z.ZodObject<{
    runId: z.ZodString;
}, z.core.$loose>;
export type ExecutionRunStopRequest = z.infer<typeof ExecutionRunStopRequestSchema>;
export declare const ExecutionRunStopResponseSchema: z.ZodObject<{
    ok: z.ZodLiteral<true>;
}, z.core.$loose>;
export type ExecutionRunStopResponse = z.infer<typeof ExecutionRunStopResponseSchema>;
export declare const ExecutionRunEnsureRequestSchema: z.ZodObject<{
    runId: z.ZodString;
    resume: z.ZodOptional<z.ZodBoolean>;
}, z.core.$loose>;
export type ExecutionRunEnsureRequest = z.infer<typeof ExecutionRunEnsureRequestSchema>;
export declare const ExecutionRunEnsureResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
    ok: z.ZodLiteral<true>;
}, z.core.$loose>, z.ZodObject<{
    ok: z.ZodLiteral<false>;
    error: z.ZodString;
    errorCode: z.ZodOptional<z.ZodString>;
}, z.core.$loose>]>;
export type ExecutionRunEnsureResponse = z.infer<typeof ExecutionRunEnsureResponseSchema>;
export declare const ExecutionRunEnsureOrStartRequestSchema: z.ZodObject<{
    runId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
    start: z.ZodOptional<z.ZodObject<{
        intent: z.ZodEnum<{
            review: "review";
            plan: "plan";
            delegate: "delegate";
            voice_agent: "voice_agent";
            memory_hints: "memory_hints";
        }>;
        backendTarget: z.ZodUnion<readonly [z.ZodObject<{
            kind: z.ZodLiteral<"builtInAgent">;
            agentId: z.ZodString;
        }, z.core.$strip>, z.ZodObject<{
            kind: z.ZodLiteral<"configuredAcpBackend">;
            backendId: z.ZodString;
        }, z.core.$strip>]>;
        instructions: z.ZodOptional<z.ZodString>;
        display: z.ZodOptional<z.ZodObject<{
            title: z.ZodOptional<z.ZodString>;
            participantLabel: z.ZodOptional<z.ZodString>;
            groupId: z.ZodOptional<z.ZodString>;
        }, z.core.$loose>>;
        permissionMode: z.ZodString;
        retentionPolicy: z.ZodEnum<{
            ephemeral: "ephemeral";
            resumable: "resumable";
        }>;
        runClass: z.ZodEnum<{
            bounded: "bounded";
            long_lived: "long_lived";
        }>;
        ioMode: z.ZodEnum<{
            request_response: "request_response";
            streaming: "streaming";
        }>;
        initialContextMode: z.ZodOptional<z.ZodEnum<{
            bootstrap: "bootstrap";
            first_turn: "first_turn";
        }>>;
        resumeHandle: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDiscriminatedUnion<[z.ZodObject<{
            kind: z.ZodLiteral<"vendor_session.v1">;
            backendTarget: z.ZodUnion<readonly [z.ZodObject<{
                kind: z.ZodLiteral<"builtInAgent">;
                agentId: z.ZodString;
            }, z.core.$strip>, z.ZodObject<{
                kind: z.ZodLiteral<"configuredAcpBackend">;
                backendId: z.ZodString;
            }, z.core.$strip>]>;
            vendorSessionId: z.ZodString;
        }, z.core.$loose>, z.ZodObject<{
            kind: z.ZodLiteral<"voice_agent_sessions.v1">;
            backendTarget: z.ZodUnion<readonly [z.ZodObject<{
                kind: z.ZodLiteral<"builtInAgent">;
                agentId: z.ZodString;
            }, z.core.$strip>, z.ZodObject<{
                kind: z.ZodLiteral<"configuredAcpBackend">;
                backendId: z.ZodString;
            }, z.core.$strip>]>;
            chatVendorSessionId: z.ZodString;
            commitVendorSessionId: z.ZodString;
        }, z.core.$loose>], "kind">>>>;
        replay: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
            kind: z.ZodLiteral<"voice_session.v1">;
            previousSessionId: z.ZodString;
            transcriptEpoch: z.ZodNumber;
            strategy: z.ZodOptional<z.ZodEnum<{
                recent_messages: "recent_messages";
                summary_plus_recent: "summary_plus_recent";
            }>>;
            recentMessagesCount: z.ZodOptional<z.ZodNumber>;
            maxSeedChars: z.ZodOptional<z.ZodNumber>;
            summaryRunner: z.ZodOptional<z.ZodObject<{
                v: z.ZodLiteral<1>;
                backendTarget: z.ZodUnion<readonly [z.ZodObject<{
                    kind: z.ZodLiteral<"builtInAgent">;
                    agentId: z.ZodString;
                }, z.core.$strip>, z.ZodObject<{
                    kind: z.ZodLiteral<"configuredAcpBackend">;
                    backendId: z.ZodString;
                }, z.core.$strip>]>;
                modelId: z.ZodOptional<z.ZodString>;
                permissionMode: z.ZodOptional<z.ZodEnum<{
                    read_only: "read_only";
                    no_tools: "no_tools";
                    workspace_write: "workspace_write";
                    full: "full";
                }>>;
            }, z.core.$loose>>;
        }, z.core.$strict>], "kind">>;
    }, z.core.$loose>>;
    resume: z.ZodOptional<z.ZodBoolean>;
}, z.core.$loose>;
export type ExecutionRunEnsureOrStartRequest = z.infer<typeof ExecutionRunEnsureOrStartRequestSchema>;
export declare const ExecutionRunEnsureOrStartResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
    ok: z.ZodLiteral<true>;
    runId: z.ZodString;
    created: z.ZodBoolean;
}, z.core.$loose>, z.ZodObject<{
    ok: z.ZodLiteral<false>;
    error: z.ZodString;
    errorCode: z.ZodOptional<z.ZodString>;
}, z.core.$loose>]>;
export type ExecutionRunEnsureOrStartResponse = z.infer<typeof ExecutionRunEnsureOrStartResponseSchema>;
export declare const ExecutionRunActionRequestSchema: z.ZodObject<{
    runId: z.ZodString;
    actionId: z.ZodString;
    input: z.ZodOptional<z.ZodUnknown>;
}, z.core.$loose>;
export type ExecutionRunActionRequest = z.infer<typeof ExecutionRunActionRequestSchema>;
export declare const ExecutionRunActionResponseSchema: z.ZodObject<{
    ok: z.ZodBoolean;
    updatedToolResult: z.ZodOptional<z.ZodUnknown>;
}, z.core.$loose>;
export type ExecutionRunActionResponse = z.infer<typeof ExecutionRunActionResponseSchema>;
export declare const ExecutionRunTurnStreamStartRequestSchema: z.ZodObject<{
    runId: z.ZodString;
    message: z.ZodString;
    displayMessage: z.ZodOptional<z.ZodString>;
    resume: z.ZodOptional<z.ZodBoolean>;
}, z.core.$loose>;
export type ExecutionRunTurnStreamStartRequest = z.infer<typeof ExecutionRunTurnStreamStartRequestSchema>;
export declare const ExecutionRunTurnStreamStartResponseSchema: z.ZodObject<{
    streamId: z.ZodString;
}, z.core.$loose>;
export type ExecutionRunTurnStreamStartResponse = z.infer<typeof ExecutionRunTurnStreamStartResponseSchema>;
export declare const ExecutionRunTurnStreamReadRequestSchema: z.ZodObject<{
    runId: z.ZodString;
    streamId: z.ZodString;
    cursor: z.ZodNumber;
    maxEvents: z.ZodOptional<z.ZodNumber>;
}, z.core.$loose>;
export type ExecutionRunTurnStreamReadRequest = z.infer<typeof ExecutionRunTurnStreamReadRequestSchema>;
export declare const ExecutionRunTurnStreamEventDeltaSchema: z.ZodObject<{
    t: z.ZodLiteral<"delta">;
    textDelta: z.ZodString;
}, z.core.$loose>;
export type ExecutionRunTurnStreamEventDelta = z.infer<typeof ExecutionRunTurnStreamEventDeltaSchema>;
export declare const ExecutionRunTurnStreamEventDoneSchema: z.ZodObject<{
    t: z.ZodLiteral<"done">;
    assistantText: z.ZodString;
    actions: z.ZodOptional<z.ZodArray<z.ZodType<Readonly<{
        t: string;
        args: unknown;
    }>, unknown, z.core.$ZodTypeInternals<Readonly<{
        t: string;
        args: unknown;
    }>, unknown>>>>;
}, z.core.$loose>;
export type ExecutionRunTurnStreamEventDone = z.infer<typeof ExecutionRunTurnStreamEventDoneSchema>;
export declare const ExecutionRunTurnStreamEventErrorSchema: z.ZodObject<{
    t: z.ZodLiteral<"error">;
    error: z.ZodString;
    errorCode: z.ZodOptional<z.ZodString>;
}, z.core.$loose>;
export type ExecutionRunTurnStreamEventError = z.infer<typeof ExecutionRunTurnStreamEventErrorSchema>;
export declare const ExecutionRunTurnStreamEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
    t: z.ZodLiteral<"delta">;
    textDelta: z.ZodString;
}, z.core.$loose>, z.ZodObject<{
    t: z.ZodLiteral<"done">;
    assistantText: z.ZodString;
    actions: z.ZodOptional<z.ZodArray<z.ZodType<Readonly<{
        t: string;
        args: unknown;
    }>, unknown, z.core.$ZodTypeInternals<Readonly<{
        t: string;
        args: unknown;
    }>, unknown>>>>;
}, z.core.$loose>, z.ZodObject<{
    t: z.ZodLiteral<"error">;
    error: z.ZodString;
    errorCode: z.ZodOptional<z.ZodString>;
}, z.core.$loose>], "t">;
export type ExecutionRunTurnStreamEvent = z.infer<typeof ExecutionRunTurnStreamEventSchema>;
export declare const ExecutionRunTurnStreamReadResponseSchema: z.ZodObject<{
    streamId: z.ZodString;
    events: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
        t: z.ZodLiteral<"delta">;
        textDelta: z.ZodString;
    }, z.core.$loose>, z.ZodObject<{
        t: z.ZodLiteral<"done">;
        assistantText: z.ZodString;
        actions: z.ZodOptional<z.ZodArray<z.ZodType<Readonly<{
            t: string;
            args: unknown;
        }>, unknown, z.core.$ZodTypeInternals<Readonly<{
            t: string;
            args: unknown;
        }>, unknown>>>>;
    }, z.core.$loose>, z.ZodObject<{
        t: z.ZodLiteral<"error">;
        error: z.ZodString;
        errorCode: z.ZodOptional<z.ZodString>;
    }, z.core.$loose>], "t">>;
    nextCursor: z.ZodNumber;
    done: z.ZodBoolean;
}, z.core.$loose>;
export type ExecutionRunTurnStreamReadResponse = z.infer<typeof ExecutionRunTurnStreamReadResponseSchema>;
export declare const ExecutionRunTurnStreamCancelRequestSchema: z.ZodObject<{
    runId: z.ZodString;
    streamId: z.ZodString;
}, z.core.$loose>;
export type ExecutionRunTurnStreamCancelRequest = z.infer<typeof ExecutionRunTurnStreamCancelRequestSchema>;
export declare const ExecutionRunTurnStreamCancelResponseSchema: z.ZodObject<{
    ok: z.ZodLiteral<true>;
}, z.core.$loose>;
export type ExecutionRunTurnStreamCancelResponse = z.infer<typeof ExecutionRunTurnStreamCancelResponseSchema>;
//# sourceMappingURL=executionRuns.d.ts.map