import type { Capabilities } from '@wdio/types'; import type BrowserStackConfig from './config.js'; import type { Options } from '@wdio/types'; import type { BrowserstackHealing } from '@browserstack/ai-sdk-node'; import type { BrowserstackOptions } from './types.js'; declare class AiHandler { authResult: BrowserstackHealing.InitSuccessResponse | BrowserstackHealing.InitErrorResponse; wdioBstackVersion: string; constructor(); authenticateUser(user: string, key: string): Promise; updateCaps(authResult: BrowserstackHealing.InitSuccessResponse | BrowserstackHealing.InitErrorResponse, options: BrowserstackOptions, caps: Array | Capabilities.ResolvedTestrunnerCapabilities): Capabilities.ResolvedTestrunnerCapabilities | Capabilities.ResolvedTestrunnerCapabilities[]; setToken(sessionId: string, sessionToken: string): Promise; installFirefoxExtension(browser: WebdriverIO.Browser): Promise; handleHealing(orginalFunc: (arg0: string, arg1: string) => { error?: string; }, using: string, value: string, browser: WebdriverIO.Browser, options: BrowserstackOptions): Promise<{ error?: string; }>; addMultiRemoteCaps(authResult: BrowserstackHealing.InitSuccessResponse | BrowserstackHealing.InitErrorResponse, config: Options.Testrunner, browserStackConfig: BrowserStackConfig, options: BrowserstackOptions, caps: Capabilities.RequestedMultiremoteCapabilities, browser: string): void; handleMultiRemoteSetup(authResult: BrowserstackHealing.InitSuccessResponse | BrowserstackHealing.InitErrorResponse, config: Options.Testrunner, browserStackConfig: BrowserStackConfig, options: BrowserstackOptions, caps: Capabilities.RequestedMultiremoteCapabilities): void; setup(config: Options.Testrunner, browserStackConfig: BrowserStackConfig, options: BrowserstackOptions, caps: WebdriverIO.Capabilities, isMultiremote: boolean): Promise; handleSelfHeal(options: BrowserstackOptions, browser: WebdriverIO.Browser): Promise; selfHeal(options: BrowserstackOptions, caps: Capabilities.ResolvedTestrunnerCapabilities, browser: WebdriverIO.Browser): Promise; } declare const _default: AiHandler; export default _default; //# sourceMappingURL=ai-handler.d.ts.map