import type { ExtensionAPI } from "@earendil-works/pi-coding-agent"; /** * Context-window-specific overflow patterns only. Deliberately does NOT * include broader phrases like /too many tokens/i or /max context/i, which * risk matching rate-limit/quota-exceeded messages - rewriting those would * falsely trigger Pi's compaction-and-retry path instead of its normal * retry-with-backoff path for throttling. See docs/custom-provider.md * "Context Overflow Errors". */ export declare const DEFAULT_OVERFLOW_PATTERNS: RegExp[]; /** * Normalizes Vyce AI's overflow error messages so Pi recognizes them and * auto-recovers (drop failed message, compact, retry once). Mirrors the * canonical recipe in docs/custom-provider.md, with the added * `stopReason === "error"` guard run before any regex work. */ export declare function installOverflowRewriter(pi: ExtensionAPI, providerId: string, patterns: RegExp[]): void;