import { E as ERROR_CODES } from '../errorCodes-CCG-cHBn.js'; interface NexusErrorData { message?: string; error?: string; detail?: string; [key: string]: unknown; } interface NexusErrorResponse { data?: NexusErrorData; status: number; statusText: string; headers: Headers; } interface NexusErrorInfo extends Error { readonly name: 'NexusError'; readonly response?: NexusErrorResponse; readonly request?: Request; readonly config?: RequestInit; readonly code?: ErrorCode; } type ErrorCode = (typeof ERROR_CODES)[keyof typeof ERROR_CODES]; declare const isNexusError: (error: unknown) => error is NexusErrorInfo; export { isNexusError };