/**
 * @author mango
 * @description fetch error
 */
import type DriveContext from "./context";
export interface FetchErrorParams<T> {
    code?: T;
    cause?: unknown;
    context: DriveContext;
}
export declare class FetchError<T = number> extends Error {
    code?: T;
    context?: DriveContext;
    constructor(message: string, params: FetchErrorParams<T>);
}
