import type { AssistantMessage } from "@earendil-works/pi-ai"; import type { CodexRealtimePeer } from "./peer.ts"; export type RealtimeHandoffChannel = "commentary" | "speakable"; export declare function realtimeHandoffChannel(stopReason: AssistantMessage["stopReason"]): RealtimeHandoffChannel; interface RealtimeDelegationHandoffCallbacks { isActive(): boolean; onFailure(error: Error): void; onSettled(id: string): void; onStatus(status: string): void; } export declare class RealtimeDelegationHandoff { private readonly peer; private readonly callbacks; private activeDelegationId; private buffer; constructor(peer: CodexRealtimePeer, callbacks: RealtimeDelegationHandoffCallbacks); activate(id: string): void; mirrorPiSteer(input: unknown): boolean; stream(delta: string): void; finishMessage(channel: RealtimeHandoffChannel): void; settle(): void; clear(): void; private send; } export {};