import type { WdioMatcherContext } from '../../types.js'; import type { AssertionResult, CommandOptions } from '../../publicTypes/options.js'; import type { ExpectedOf } from '../../publicTypes/expectWebdriverIO.js'; /** * The number of the windows and tabs of the session (`getWindowHandles()`), compared with a `NumberMatcher`, e.g. * `toHaveWindowCount(2)` after a link opens a new tab. On a browsing context, it is the count of its session. * The expected value is checked first: a wrong one throws, also with `.not`. */ export declare function toHaveWindowCount(this: WdioMatcherContext, browser: WebdriverIO.Browser | WebdriverIO.BrowsingContext | WebdriverIO.MultiRemoteBrowser, expectedValue: ExpectedOf<'number'> | ExpectWebdriverIO.MultiRemotePartialMatcher>, options?: CommandOptions): Promise;