export interface DetailedError extends Error { readonly details: Record; } export declare function isDetailedError(object: unknown): object is DetailedError; export declare function isFetchError(object: unknown): object is FetchError; export declare const stackToArray: (stack: string | undefined) => string[]; export interface ResponseError extends Error { status: number; body?: unknown; } export declare class FetchError extends Error implements ResponseError, DetailedError { #private; response: Response; constructor(response: Response, resourceName: string, body?: string); get status(): number; isInvalidToken(): boolean; get details(): { message: string; stack: string[]; response: { status: number; headers: Headers; body: string | undefined; }; }; } export declare class TimeoutError extends Error { constructor(url: URL | RequestInfo); } export declare class InvalidInstanceVersionError extends Error { }