import type { ApiResponse } from '../types.js'; export declare function parseWaitSeconds(value: unknown): number; /** * Map a terminal, non-success `data.state` onto the transport envelope so a * plain `task status` exits the way `--follow` does: canceled / failed / * stopped / skipped → `status: "error"` (exit 1), message naming the state. * A missing or active state, a successful terminal state, and a transport * failure all pass through unchanged. Shared by both read shapes so they * can never disagree about the same run. */ export declare function settleTerminalState(result: ApiResponse): ApiResponse; /** Follow the lifecycle field, independently of the transport envelope's status. */ export declare function followTaskStatus(initial: ApiResponse, poll: (remainingMs: number) => Promise, waitSeconds: number, report: (message: string) => void, timing?: { now: () => number; sleep: (ms: number) => Promise; }): Promise; //# sourceMappingURL=task-status-follow.d.ts.map