import type { CallbackSpawnSync } from "./openclaw-callback-transport.js"; import { type CallbackAttemptOutcome, type CallbackRouteV1, type CallbackTransport, type CallbackTransportContextV1, type CallbackTransportDeliverInput } from "./callback-transport.js"; import { type TerminalWatchCallbackEvent as TerminalWatchCallbackEventType, type TerminalWatchCallbackMessageInput, type TerminalWatchCallbackResolution } from "./terminal-watch-service.js"; import type { TerminalWatch } from "./terminal-watch-store.js"; export type TerminalWatchCallbackEvent = TerminalWatchCallbackEventType; export interface TerminalWatchCallbackInput { watchId: string; idempotencyKey: string; event: TerminalWatchCallbackEvent; agent: "codex" | "claude"; terminalId: string; openclawSession?: string; openclawBin?: string; origin?: TerminalWatchCallbackMessageInput["origin"]; detail?: string; completionText?: string; manualInteraction?: TerminalWatchCallbackMessageInput["manualInteraction"]; } export type TerminalWatchTransportDeliveryInput = CallbackTransportDeliverInput; export interface TerminalWatchCallbackCliAdapter { deliver(input: TerminalWatchCallbackInput): void; deliverTransport?(input: TerminalWatchTransportDeliveryInput): CallbackAttemptOutcome; } export declare function resolveTerminalWatchOpenClawCallback(watch: Pick & Partial>): TerminalWatchCallbackResolution; export declare function resolveTerminalWatchOpenClawCallbackContext(watch: Pick, _route?: CallbackRouteV1): CallbackTransportContextV1; export declare function createTerminalWatchCallbackCliAdapter(options?: { environment?: () => NodeJS.ProcessEnv; now?: () => Date; spawnSync?: CallbackSpawnSync; transport?: CallbackTransport; }): TerminalWatchCallbackCliAdapter;