import type { QueryException } from './search/query-exception.js'; export interface SearchAPIErrorWithStatusCode { statusCode: number; message: string; type: string; ignored?: boolean; } export interface SearchAPIErrorWithExceptionInBody { exception: QueryException; } export declare function buildAPIResponseFromErrorOrThrow(error: Error | DOMException, disableAbortWarning?: boolean): { error: SearchAPIErrorWithStatusCode; };