export declare function usePrevious(value: any): any; export declare const useSet: (initState: any) => [any, import("react").ActionDispatch<[newState: any]>]; /** * 业务中为了防止提交按钮会被连续点击 我们会手动的设置setLoading true 和setLoading false 非常麻烦 * 所以写了这个hook 省事 * @returns */ type TCallback = () => Promise; type TRequestLoading = () => [boolean, (callback: TCallback) => void]; export declare const useLoadingRequest: TRequestLoading; export {};