import * as z from "zod/v4"; import * as models from "../index.js"; import { OpenRouterError } from "./openroutererror.js"; /** * A refusal before the stream opens. Once the response is `200` and streaming, failures arrive as a chunk with `finish_reason: "error"` instead. */ export type InternChatErrorResponseData = { /** * The OpenAI-compatible error object. `metadata` is present on refusals from the chat route. Authentication refusals (`401`), the departed-creator `403` and the programme `404` carry only `code` and `message`. */ error: models.InternChatError; }; /** * A refusal before the stream opens. Once the response is `200` and streaming, failures arrive as a chunk with `finish_reason: "error"` instead. */ export declare class InternChatErrorResponse extends OpenRouterError { /** * The OpenAI-compatible error object. `metadata` is present on refusals from the chat route. Authentication refusals (`401`), the departed-creator `403` and the programme `404` carry only `code` and `message`. */ error: models.InternChatError; /** The original data that was passed to this error instance. */ data$: InternChatErrorResponseData; constructor(err: InternChatErrorResponseData, httpMeta: { response: Response; request: Request; body: string; }); } /** @internal */ export declare const InternChatErrorResponse$inboundSchema: z.ZodType; //# sourceMappingURL=internchaterrorresponse.d.ts.map