/** * Problem: * Sending a prompt request while an upstream agent turn is in progress (e.g. executing tool calls) * is rejected with a fatal error: `"A foreground turn is already active"`. * * Solution: * Queues in-flight user steering directives, classifies mid-turn inputs, and retries * rejected prompt requests once the active turn transitions to idle. */ import { type AcpFix } from "../../core/types.js"; export declare function stripSteeringPrefix(text: string): string; export declare const FOREGROUND_TURN_ERROR_PATTERN: RegExp; export declare const DONE_CH_ERROR_PATTERN: RegExp; export declare const SESSION_NOT_FOUND_PATTERN: RegExp; export declare const MAX_PROMPT_RETRIES = 5; export declare const DEFAULT_PROMPT_RETRY_DELAY_MS = 500; export interface UserSteeringOptions { delayMs?: number; maxRetries?: number; } export declare const USER_STEERING_INSTRUCTIONS: readonly string[]; export declare function createActiveTurnCollisionFix(options?: UserSteeringOptions): AcpFix; export declare const activeTurnCollisionFix: AcpFix; export declare const createUserSteeringFix: typeof createActiveTurnCollisionFix; export declare const userSteeringFix: AcpFix; export declare const createPromptRetryFix: typeof createActiveTurnCollisionFix; export declare const promptRetryFix: AcpFix; //# sourceMappingURL=index.d.ts.map