export declare type FetchError = Response | {
    status: number;
    message: unknown;
};
export declare type UseFetchRequest = (options: RequestInit, url?: string) => Promise<void>;
export declare const useFetch: (defaultUrl?: string) => {
    data: unknown;
    error?: FetchError;
    loading: boolean;
    get: UseFetchRequest;
    post: UseFetchRequest;
};
