/** * Idle watchdog for a long-lived stream: aborts the fetch when `poke()` hasn't * been called for `ms`. Unlike a fixed deadline, a stream that keeps emitting * can run indefinitely — which is what a slow-but-healthy scan or agent needs. */ export declare function watchdog(ms: number): { signal: AbortSignal; poke: () => void; disarm: () => void; tripped: () => boolean; }; /** * Best-effort reading of an error response body: the human message, the * server's machine-readable `code` where it gave one, and the parsed body * itself. A caller that only branches on prose loses the code, and ora uses it * to say things that are not failures (see MCP_AUTH_REQUIRED in ./audit). * The body is read through a clone so the caller can still consume the * original. */ export declare function errorBody(res: Response): Promise<{ message: string; code: string | null; payload: unknown; }>; /** Best-effort human message from an error response body. */ export declare function errorBodyText(res: Response): Promise; export declare const pause: (ms: number) => Promise;