import type { MaybeRefOrGetter, WatchSource, WatchCallback } from 'vue'; import type { TypeOfResult } from '#utilities'; import type { WatcherCallback, WatchUntilPromise } from '#reactivity'; interface WaitForMethod { method>(value: V): V extends WatchSource ? WatchUntilPromise<[S, V]> : WatchUntilPromise; method(value: MaybeRefOrGetter): Promise; } export type WaitForMethods = { toFulfill(condition: WatcherCallback): WatchUntilPromise; toFulfill(condition: WatchCallback): Promise; } & (F extends true ? { toChange>(times?: T): T extends WatchSource ? WatchUntilPromise<[...(S extends WatchSource[] ? S : [S]), T]> : WatchUntilPromise; toChange(times?: MaybeRefOrGetter): Promise; get not(): WaitForMethods; } : {}) & (S extends readonly WatchSource[] ? { toBeEqual(): WatchUntilPromise; } : { toBe: WaitForMethod["method"]; toEqual: WaitForMethod["method"]; toBeIn: WaitForMethod["method"]; toContain: WaitForMethod["method"]; toBeOfType: WaitForMethod["method"]; toBeTruthy(): WatchUntilPromise; toMatch: WaitForMethod["method"]; }); export {}; //# sourceMappingURL=waitFor.types.d.ts.map