import { NiceAxios, NiceAxiosConfig } from '..'; /** * @description: 在 vue 组件销毁时取消所有的请求 * @tip * 1. 请确保在 vue 的hook 环境中使用,目前只支持 vue3 * 2. 这将会取消所有通过 instance 发出的请求, 确保不需要取消的请求加上 ignoreCancel 属性 * @param instance */ export declare function useNiceAxiosCancelAllRequestsVueHook(instance: NiceAxios): void; export declare function useAbortRequestVueHook(fn: (arg: T, config?: NiceAxiosConfig) => Promise): { handler: (arg: T, config?: NiceAxiosConfig) => Promise; controllers: AbortController[]; cancel: () => void; cancelAll: () => void; };