import type { FetchImpl } from "../types.js"; /** * Responses can normalize upstream failures to completed without exposing the * native reason. Only a metadata-lag 404 with non-reasoning output usage triggers * inferred malformed-response recovery; usage does not confirm the native reason. * Other diagnostic failures leave the original empty-stop recovery unchanged. */ export declare function readOpenRouterGenerationError(args: { baseUrl: string; headers: Record; responseId: string; outputTokens?: number; reasoningTokens?: number; fetch?: FetchImpl; signal: AbortSignal; }): Promise;