import type { CompletionRequest } from '../types/messages.js'; import type { NexusResponse } from '../types/response.js'; import type { ResponseFormatConfig } from '../types/config.js'; /** Raised when a response does not match the requested format and cannot be repaired. */ export declare class ResponseFormatError extends Error { constructor(message: string); } /** * Checks a response against the requested format. A zod shape is checked through its own * `safeParse`, so it needs nothing installed beyond the zod that built it; a JSON Schema loads `ajv` * and `ajv-formats` on first use. */ export declare function applyResponseFormat(response: NexusResponse, config?: ResponseFormatConfig): Promise; export declare function withResponseFormat(request: CompletionRequest, config?: ResponseFormatConfig): CompletionRequest;