import { type ConversationRunProjection } from "./durable.js"; /** Public API contract for conversation root run descriptor. */ export interface ConversationRootRunDescriptor { runId: string; messageId: string; latestEventId?: number; latestExternalEventSequence?: number; } /** Context for conversation root run. */ export interface ConversationRootRunContext { run: ConversationRunProjection | null; effectiveParentRunId?: string; effectiveParentMessageId?: string; publishParentRunEvents?: (events: unknown[]) => Promise | void; } /** Context for create conversation root run. */ export declare function createConversationRootRunContext(input: { run: ConversationRunProjection | null; parentRunId?: string; parentMessageId?: string; appendParentRunEvents?: ((events: unknown[]) => Promise | void) | undefined; }): ConversationRootRunContext; /** Starts conversation root run. */ export declare function startConversationRootRun(input: { authToken: string; apiUrl: string; conversationId?: string; projectId?: string | null; branchId?: string | null; agentId: string; implementationKind?: string | null; providedRun?: ConversationRootRunDescriptor; abortSignal?: AbortSignal; }): Promise; /** Create conversation root run start adapter. */ export declare function createConversationRootRunStartAdapter(input: { authToken: string; apiUrl: string; conversationId?: string; projectId?: string | null; branchId?: string | null; agentId: string; implementationKind?: string | null; providedRun?: ConversationRootRunDescriptor; }): (input: { abortSignal: AbortSignal; }) => Promise<{ run: ConversationRunProjection | null; }>; /** Context for prepare conversation root run. */ export declare function prepareConversationRootRunContext(input: { authToken: string; apiUrl: string; conversationId?: string; projectId?: string | null; branchId?: string | null; agentId: string; implementationKind?: string | null; providedRun?: ConversationRootRunDescriptor; parentRunId?: string; parentMessageId?: string; appendParentRunEvents?: ((events: unknown[]) => Promise | void) | undefined; }): Promise; //# sourceMappingURL=root-run-context.d.ts.map