import { WatchSource, WatchOptions, MaybeRef } from 'vue'; export type FetchResult = { loading: boolean; value: V | undefined; error: E; }; /** * Watch any reactive source and perform an asynchronous operation * * @example * ```ts * const v = useWatchFetch( * watchSource, * async (sourceValue) => { * return await fetchDataFromApi(sourceValue); * } * ); * * // Usage in a template * * ``` */ export declare function useWatchFetch(watchSource: WatchSource, doFetch: (s: S) => Promise, settings?: { watchOptions?: WatchOptions; debounce?: MaybeRef; filterWatchResult?: (s: S) => boolean; }): FetchResult; //# sourceMappingURL=useWatchFetch.d.ts.map