import { Ref } from 'vue'; type Service = (...args: any[]) => Promise; interface UseRequestReturn { data: Ref; error: Ref; loading: Ref; run: (...args: Parameters>) => void; runAsync: (...args: Parameters>) => Promise; refresh: () => void; } export declare function useRequest(service: Service, options?: { immediate?: boolean; defaultParams?: Parameters>; defaultValue?: T; refreshDeps?: Array; onSuccess?(res: T): any; }): UseRequestReturn; export {};