/** * @template T * @overload * @param { WatcherSource } source * @param { { deep?: boolean | number } } [options] * @returns { WatchersHandle } */ export function useWatchers(source: WatcherSource, options?: { deep?: boolean | number; } | undefined): WatchersHandle; export type WatcherEffect = ReactiveEffect & { [_isScheduled_]?: boolean; }; export type WatchersHandle = ControlledWatchers; import type { WatcherSource } from '#reactivity'; import type { ReactiveEffect } from 'vue'; /** * @typedef { ReactiveEffect & { [_isScheduled_]?: boolean } } WatcherEffect */ /** Used to mark effects scheduled while watchers are not paused. */ declare const _isScheduled_: unique symbol; /** * @template [T = unknown] * @typedef { ControlledWatchers } WatchersHandle */ /** @template T */ declare class ControlledWatchers { /** * @param { WatchSource | WatchSource[] } source * @param {{ deep?: boolean | number }} [options] */ constructor(source: WatchSource | WatchSource[], { deep }?: { deep?: boolean | number; }); /** * @template { boolean } [Immediate = false] * @overload * @param { WatcherCallback } callback * @param { Omit, 'deep'> } [options] * @returns { () => void } */ onUpdated(callback: WatcherCallback, options?: Omit, "deep"> | undefined): () => void; pause(): void; resume(): void; stop(): void; /** @param { () => void } callback */ ignore(callback: () => void): void; /** * @type { boolean | number | undefined } * @readonly */ readonly [_deep_]: boolean | number | undefined; #private; } import type { WatcherCallback } from '#reactivity'; import type { WatchControlledOptions } from '#reactivity'; import { _deep_ } from "#composables/.private/constants"; import type { WatchSource } from 'vue'; export {}; //# sourceMappingURL=useWatchers.d.ts.map