import type { SDKMessage } from "./messages.js"; import type { ModelSelection } from "./options.js"; import type { ConversationTurn } from "./types/conversation-types.js"; export type RunStatus = "running" | "finished" | "error" | "cancelled"; export type RunResultStatus = Exclude; export type RunOperation = "stream" | "wait" | "cancel" | "conversation"; export declare class UnsupportedRunOperationError extends Error { readonly operation: RunOperation; constructor(operation: RunOperation, reason?: string); } export interface RunGitBranchInfo { repoUrl: string; branch?: string; prUrl?: string; } export interface RunGitInfo { branches: RunGitBranchInfo[]; } export interface RunResult { id: string; status: RunResultStatus; result?: string; model?: ModelSelection; durationMs?: number; git?: RunGitInfo; } export interface Run { readonly id: string; readonly agentId: string; supports(operation: RunOperation): boolean; unsupportedReason(operation: RunOperation): string | undefined; stream(): AsyncGenerator; conversation(): Promise; wait(): Promise; cancel(): Promise; readonly status: RunStatus; onDidChangeStatus(listener: (status: RunStatus) => void): () => void; readonly result?: string; readonly model?: ModelSelection; readonly durationMs?: number; readonly git?: RunGitInfo; readonly createdAt?: number; } //# sourceMappingURL=run.d.ts.map