import { Mocks, APIErrorResponse } from "./types.js"; declare function handleApiError(ierror: unknown, context: string, debug?: boolean, options?: { apiKey?: string; endpoint?: string; skipRefresh?: boolean; refreshToken?: string; updateRefreshToken?: (currentToken: string) => Promise; mock?: Mocks; }): Promise; declare function checkForInvalidModelError(response: Response, model: string, debug?: boolean): Promise<{ isInvalidModel: boolean; errorData?: APIErrorResponse; }>; export { handleApiError, checkForInvalidModelError };