/**
 * The wait an agent-level auto-retry sleeps through, published on `session_status` and `list_sessions` so a
 * supervisor can tell "waiting on a provider until T" from work (senpi#7025). It exists only between an
 * `auto_retry_start` and the retried request's `agent_start` (or the retry's end).
 */
export interface RetryWait {
    readonly kind: "rate_limit" | "retry";
    readonly attempt: number;
    readonly maxAttempts: number;
    readonly delayMs: number;
    readonly until: string;
    readonly error?: string;
}
type RetryWaitEvent = {
    readonly type: "auto_retry_start";
    readonly attempt: number;
    readonly maxAttempts: number;
    readonly delayMs: number;
    readonly errorMessage: string;
} | {
    readonly type: string;
};
export declare function nextRetryWait(previous: RetryWait | undefined, event: RetryWaitEvent, now: number): RetryWait | undefined;
/**
 * The wait as a listing publishes it: the typed kind and its timing, never the provider's error text, which
 * stays on `get_state` and on `session_status`.
 */
export declare function redactedRetryWait(wait: RetryWait): RetryWait;
export {};
//# sourceMappingURL=retry-wait.d.ts.map