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); } export declare function applyResponseFormat(response: NexusResponse, config?: ResponseFormatConfig): NexusResponse; export declare function withResponseFormat(request: CompletionRequest, config?: ResponseFormatConfig): CompletionRequest;