/** * Battery-scoped exception constructors for OpenAI media generation adapter failures. * * @module @nhtio/adk/batteries/generation/openai/exceptions * * @remarks * Battery-scoped exception classes for the OpenAI media generation adapter. These exceptions are * owned by the battery (not the ADK core) and are minted via `createException` from * `@nhtio/adk/factories`. Re-exported from the battery's barrel. * * The categories mirror the OpenAI Embeddings battery one-to-one so batteries across domains fail * with parallel semantics — only the engine-specific transport exception differs. */ /** * Thrown when the resolved adapter options fail validation against * `openAIGenerationOptionsSchema` — e.g. a missing/empty `model`, an unknown option key, or an * invalid enum value. Fatal: config bugs fail loud at construction time, not at generate/edit time. */ export declare const E_INVALID_OPENAI_GENERATION_OPTIONS: import("../../../factories").CreatedException<[ string ]>; /** * Thrown when the upstream `/v1/images/generations` or `/v1/images/edits` endpoint returns a * non-2xx response (after retries are exhausted), or the transport throws. Non-fatal. Printf args: * `[status, detail]` — `status` is `0` for a transport-level failure with no HTTP response. */ export declare const E_OPENAI_GENERATION_HTTP_ERROR: import("../../../factories").CreatedException<[ number, string ]>; /** * Thrown when the request handshake does not complete before `requestTimeoutMs` (and retries are * exhausted). Non-fatal. Printf arg: `[requestTimeoutMs]`. */ export declare const E_OPENAI_GENERATION_REQUEST_TIMEOUT: import("../../../factories").CreatedException<[ number ]>; /** * Thrown when a 2xx response body cannot be parsed into the expected `{ data: [{ b64_json }] }` * shape (malformed JSON, missing/empty `data`, or an entry missing `b64_json`). Non-fatal. Printf * arg: `[detail]`. */ export declare const E_OPENAI_GENERATION_MALFORMED_RESPONSE: import("../../../factories").CreatedException<[ string ]>;