declare type SuspenseStatus = 'pending' | 'error' | 'resolved';
interface IUseFetchOptions {
    method?: string;
    data?: {
        [x: string]: any;
    };
    headers?: Headers | undefined;
}
declare function useFetch(service: () => PromiseLike<any>): {
    result: any;
    status: SuspenseStatus;
    loading: boolean;
};
export { useFetch, IUseFetchOptions };
