import { Request } from '../components/interface';
import { Context as NetContext } from '@irim/saber/types/interfaces';
/**
 * @param request
 * @param options net.request 的入参
 * @param dataFormatter 返回数据格式化
 * @param effect 数据更新时执行effect
 * @reutrn 返回数据依次是 [data, loading, error]
 */
export default function useRequest(request: string | Request, options?: NetContext | {
    method: string;
    data?: any;
}, dataFormatter?: (data: any) => any, effect?: (data: any) => any): [any, boolean, Error];
