/**
 * Number of milliseconds added after Claude's reported reset timestamp before retrying.
 */
export declare const CLAUDE_CODE_SESSION_LIMIT_RESET_BUFFER_MS: number;
/**
 * Fallback delay used when Claude reports a session limit without a machine-readable reset timestamp.
 */
export declare const DEFAULT_CLAUDE_CODE_SESSION_LIMIT_RETRY_DELAY_MS: number;
/**
 * Session-limit detection details needed to resume a Claude Code run.
 */
export type ClaudeCodeSessionLimit = {
    readonly sessionId: string;
    readonly resetDate?: Date;
    readonly rateLimitType?: string;
    readonly summary: string;
};
/**
 * Extracts a Claude Code session-limit failure from a thrown runner error.
 */
export declare function extractClaudeCodeSessionLimitFromError(error: unknown): ClaudeCodeSessionLimit | undefined;
/**
 * Extracts a Claude Code session-limit failure from raw stream-json output.
 */
export declare function extractClaudeCodeSessionLimitFromOutput(output: string): ClaudeCodeSessionLimit | undefined;
/**
 * Computes how long to wait before trying to resume the Claude Code session.
 */
export declare function getClaudeCodeSessionLimitDelayMs(sessionLimit: ClaudeCodeSessionLimit, nowMs?: number): number;
/**
 * Builds the follow-up prompt sent into a resumed Claude Code session after its limit resets.
 */
export declare function buildClaudeCodeSessionResurrectionPrompt(originalPrompt: string, sessionId: string): string;
/**
 * Builds a compact one-line label for logs and terminal UI messages.
 */
export declare function formatClaudeCodeSessionLimitForDisplay(sessionLimit: ClaudeCodeSessionLimit): string;
