import type { SessionEvent } from "@opengeni/contracts"; export declare const COMMAND_READ_MAX_WAIT_SECONDS = 50; export declare const COMMAND_WAIT_DEFAULT_SECONDS = 45; /** Shared provider-neutral command_read/command_wait operation. Notifications * are only wake hints. Every result, including timeout, comes from durable DB * state. Subscribe before reading to close the finish/subscription race, and * periodically recheck durable state because live hints may be lost. */ export declare function readCommandWithWait(input: { commandId: string; waitSeconds?: number; maxOutputBytes?: number | undefined; signal?: AbortSignal; read: () => Promise; subscribe: (onEvents: (events: SessionEvent[]) => void) => Promise<() => void>; }): Promise;