import WebSocket from 'ws'; import Session from './modules/session/commands'; import Browser from "./modules/browser/commands"; import BrowsingContext from "./modules/browsingContext/commands"; import Log from './modules/log/commands'; import Input from './modules/input/commands'; import Storage from './modules/storage/commands'; import Network from "./modules/network/commands"; import Script from "./modules/script/commands"; /** * BiDi class for handling WebSocket connections * @class */ declare class BiDi { _ws: WebSocket; _isConnected: boolean; _id: number; /** * @param {string} url - WebSocket URL */ constructor(url: string); /** * Return WebSocket connection * @return {WebSocket} The WebSocket connection. */ get getConnection(): WebSocket; /** * Return if it is connected * @return {boolean} The connection status. */ get isConnected(): boolean; /** * Wait for the connection to be established * @return {Promise} Resolves when the connection is established. */ waitForConnection(): Promise; /** * Send a command over the WebSocket connection * @param params - Parameters to send with the command. * @return {Promise} Resolves with the response payload. */ sendCommand(params: T): Promise; /** * Close the WebSocket connection. * @return {Promise} Resolves when the connection has been successfully closed. */ closeConnection(): Promise; } export { BiDi, Browser, BrowsingContext, Input, Log, Network, Script, Session, Storage };