/** * @author jingyu * @description 处理接口或者 Promise 的 pending 状态 */ import { ReturnValue } from '../define'; interface Response { loading: boolean; data: T | null; } interface Action { wrapRequset: (...args: any[]) => Promise; } declare function useLoading(request: (...args: any[]) => Promise): ReturnValue, Action>; export { useLoading };