import * as plugins from './plugins.js'; /** * The error object of an OpenAI error body, of a Responses `response.failed` stream frame or of a * Responses `error` stream frame. */ export interface IOpenAiErrorDetails { /** The error's `type` and `code`; HTTP bodies name the error in `type`, stream frames in `code`. */ readonly identifiers: readonly string[]; readonly fields: Readonly>; } export declare function readOpenAiError(body: unknown): IOpenAiErrorDetails | undefined; /** OpenAI API limits: `insufficient_quota` is an exhausted balance, any other 429 a rate limit. */ export declare const classifyOpenAiLimit: plugins.TModelLimitClassifier;