import { Options } from 'ahooks/lib/useRequest/src/types'; import { AxiosRequestConfig } from 'axios'; declare type FunctionService = (...args: any[]) => Promise; declare type ResourceActionOptions

= { resource?: string; resourceOf?: any; action?: string; params?: P; }; export declare function useRequest

(service: AxiosRequestConfig

| ResourceActionOptions

| FunctionService, options?: Options & { uid?: string; }): { state: {}; setState: (patch: Partial<{}> | ((prevState: {}) => Partial<{}>)) => void; loading: boolean; data?: any; error?: Error; params: any; cancel: () => void; refresh: () => void; refreshAsync: () => Promise; run: (...params: any) => void; runAsync: (...params: any) => Promise; mutate: (data?: any) => void; }; export {};