/** * A standardized error structure for handling HTTP errors from the fetch API. * This replaces the AxiosError interface. * * @public */ export interface FetchError extends Error { /** * The HTTP status code */ status?: number; /** * The response data */ response?: { data?: any; status?: number; headers?: Record; }; /** * The request configuration */ config?: any; /** * Error message */ message: string; } /** * Create a FetchError from a failed response */ export declare function createFetchError(status: number, data: any, message?: string): FetchError; /** * Check if an error is a FetchError */ export declare function isFetchError(error: unknown): error is FetchError;