import type { TurnMiddleware } from "./turn-middleware.js";
/**
 * Wrap the agent runner. If the inner turn throws context-overflow or
 * role-ordering errors, surface a friendly message and mark the
 * session ended; otherwise pass results through untouched.
 */
export declare function withContextOverflowRecovery(): TurnMiddleware;
