type Options = {
    token?: string | null;
    body?: object | FormData | string;
    headers?: {
        [key: string]: string;
    };
    onSuccess?: (data: any) => unknown;
    onError?: ({ code, message }: {
        code: number;
        message: string;
    }) => unknown;
};
export declare class Fetch {
    url: string;
    constructor(url: string);
    f(method: string, url: string, options?: Options): Promise<void>;
    Head(url: string, options?: Options): Promise<void>;
    Get(url: string, options?: Options): Promise<void>;
    Post(url: string, options?: Options): Promise<void>;
    Put(url: string, options?: Options): Promise<void>;
    Patch(url: string, options?: Options): Promise<void>;
    Delete(url: string, options?: Options): Promise<void>;
}
export {};
