import { AlovaGenerics, Method } from 'alova'; import { AlovaMethodHandler, UseHookExposure } from '../general'; import { WatcherHookConfig } from './useWatcher'; /** * useSerialWatcher * Serial request hook, the handlers will receive the result of the previous request * Applicable scenario: After monitoring status changes, serially request a set of interfaces * @param serialHandlers Serial request callback array * @param config Configuration parameters * @return useSerialWatcher related data and operation functions */ export declare function useSerialWatcher( serialHandlers: [Method | AlovaMethodHandler, ...AlovaMethodHandler[]], watchingStates: AG['StatesExport']['Watched'][], config?: WatcherHookConfig ): UseHookExposure; /** * useSerialWatcher(overload) * Serial request hook, the handlers will receive the result of the previous request * Applicable scenario: After monitoring status changes, serially request a set of interfaces * @param serialHandlers Serial request callback array * @param config Configuration parameters * @return useSerialWatcher related data and operation functions */ export declare function useSerialWatcher< AG extends AlovaGenerics, AG2 extends AlovaGenerics, Args extends any[] = any[] >( serialHandlers: [Method | AlovaMethodHandler, AlovaMethodHandler, ...AlovaMethodHandler[]], watchingStates: AG['StatesExport']['Watched'][], config?: WatcherHookConfig ): UseHookExposure; /** * useSerialWatcher(overload) * Serial request hook, the handlers will receive the result of the previous request * Applicable scenario: After monitoring status changes, serially request a set of interfaces * @param serialHandlers Serial request callback array * @param config Configuration parameters * @return useSerialWatcher related data and operation functions */ export declare function useSerialWatcher< AG extends AlovaGenerics, AG2 extends AlovaGenerics, AG3 extends AlovaGenerics, Args extends any[] = any[] >( serialHandlers: [ Method | AlovaMethodHandler, AlovaMethodHandler, AlovaMethodHandler, ...AlovaMethodHandler[] ], watchingStates: AG['StatesExport']['Watched'][], config?: WatcherHookConfig ): UseHookExposure; /** * useSerialWatcher(overload) * Serial request hook, the handlers will receive the result of the previous request * Applicable scenario: After monitoring status changes, serially request a set of interfaces * @param serialHandlers Serial request callback array * @param config Configuration parameters * @return useSerialWatcher related data and operation functions */ export declare function useSerialWatcher< AG extends AlovaGenerics, AG2 extends AlovaGenerics, AG3 extends AlovaGenerics, AG4 extends AlovaGenerics, Args extends any[] = any[] >( serialHandlers: [ Method | AlovaMethodHandler, AlovaMethodHandler, AlovaMethodHandler, AlovaMethodHandler, ...AlovaMethodHandler[] ], watchingStates: AG['StatesExport']['Watched'][], config?: WatcherHookConfig ): UseHookExposure; /** * useSerialWatcher(overload) * Serial request hook, the handlers will receive the result of the previous request * Applicable scenario: After monitoring status changes, serially request a set of interfaces * @param serialHandlers Serial request callback array * @param config Configuration parameters * @return useSerialWatcher related data and operation functions */ export declare function useSerialWatcher< AG extends AlovaGenerics, AG2 extends AlovaGenerics, AG3 extends AlovaGenerics, AG4 extends AlovaGenerics, AG5 extends AlovaGenerics, Args extends any[] = any[] >( serialHandlers: [ Method | AlovaMethodHandler, AlovaMethodHandler, AlovaMethodHandler, AlovaMethodHandler, AlovaMethodHandler, ...AlovaMethodHandler[] ], watchingStates: AG['StatesExport']['Watched'][], config?: WatcherHookConfig ): UseHookExposure; /** * useSerialWatcher(overload) * Serial request hook, the handlers will receive the result of the previous request * Applicable scenario: After monitoring status changes, serially request a set of interfaces * @param serialHandlers Serial request callback array * @param config Configuration parameters * @return useSerialWatcher related data and operation functions */ export declare function useSerialWatcher< AG extends AlovaGenerics, AG2 extends AlovaGenerics, AG3 extends AlovaGenerics, AG4 extends AlovaGenerics, AG5 extends AlovaGenerics, AG6 extends AlovaGenerics, Args extends any[] = any[] >( serialHandlers: [ Method | AlovaMethodHandler, AlovaMethodHandler, AlovaMethodHandler, AlovaMethodHandler, AlovaMethodHandler, AlovaMethodHandler, ...AlovaMethodHandler[] ], watchingStates: AG['StatesExport']['Watched'][], config?: WatcherHookConfig ): UseHookExposure; /** * useSerialWatcher(overload) * Serial request hook, the handlers will receive the result of the previous request * Applicable scenario: After monitoring status changes, serially request a set of interfaces * @param serialHandlers Serial request callback array * @param config Configuration parameters * @return useSerialWatcher related data and operation functions */ export declare function useSerialWatcher< AG extends AlovaGenerics, AG2 extends AlovaGenerics, AG3 extends AlovaGenerics, AG4 extends AlovaGenerics, AG5 extends AlovaGenerics, AG6 extends AlovaGenerics, AG7 extends AlovaGenerics, Args extends any[] = any[] >( serialHandlers: [ Method | AlovaMethodHandler, AlovaMethodHandler, AlovaMethodHandler, AlovaMethodHandler, AlovaMethodHandler, AlovaMethodHandler, AlovaMethodHandler, ...AlovaMethodHandler[] ], watchingStates: AG['StatesExport']['Watched'][], config?: WatcherHookConfig ): UseHookExposure;