import type { Message } from '../../../types/message/index.js'; import type { ChatCompletionParams, LLMProvider, StreamChunk } from '../../../types/provider/index.js'; import { type RequestImageIdentity } from '../request-rich-content.js'; export declare function isProviderRejectedImageError(error: unknown): boolean; /** * Retry one provider-invalid request without its only distinct image. * * The callback is the durable commit point for an HTTP 400 carrying the exact * provider code `invalid_image`. It runs only after the retry has produced an * accepted chunk or reached a clean EOF. A legacy phrase can still recover the * current request, but cannot assert durable server proof. */ export declare function streamWithProviderRejectedImageRecovery(provider: LLMProvider, params: ChatCompletionParams, onAccepted: (identity: RequestImageIdentity) => Promise, onRequest?: (messages: readonly Message[]) => void): AsyncIterable; //# sourceMappingURL=provider-rejected-image.d.ts.map