import { FetchError } from "./types/FetchError";
export type UseGetOptions<ResponseType> = {
    onSuccess?: (data: ResponseType) => void;
    onError?: (error: FetchError) => void;
    onResponseGot?: (url: string, endpoint: string, responseCode: number | string | undefined) => void;
    debounce?: number;
    dontRequestIfUrlIncludeNullOrUndefined?: boolean;
    headers?: Record<string, string>;
    accessTokenLocalStorageKey?: string;
    callRefreshToken?: () => {
        on: number[];
        body: Record<string, string>;
        endpoint: string;
        saveAccessTokenFromResponse?: (res: any) => void;
    };
};
export declare function useGet<T>(baseApiUrl: string, url: string, options?: UseGetOptions<T>): {
    data: T | undefined;
    error: FetchError | undefined;
    loading: boolean;
    reload: () => void;
};
