import { type AssistantMessage } from "@earendil-works/pi-ai/compat";
/** Providers mark post-delta failures with this prefix so a turn retry never replays visible text or tool calls. */
export declare const TURN_RETRY_SUPPRESSION_PREFIX = "senpi:no-turn-retry:";
/**
 * Failures the turn retry never takes, whatever their text says: a suppressed replay, a local (journal or file)
 * failure, a route that does not serve the model, and a context overflow, which compaction handles.
 */
export declare function isExcludedFromTurnRetry(message: AssistantMessage, contextWindow: number): boolean;
/**
 * The turn retry engine's own transient-failure decision (overloaded, rate limit, server errors). The interactive
 * transcript reads the same predicate, so a row is folded into the retry episode only for a failure the engine retries
 * (senpi#6012).
 */
export declare function isTurnRetryableFailure(message: AssistantMessage, contextWindow: number): boolean;
//# sourceMappingURL=turn-retry-eligibility.d.ts.map