import type { FilterBy } from "./filterBy"; import type { ConsoleLogEntry, GenericLogEntry, JavascriptLogEntry } from "./logEntries"; declare class LogInspector { private _driver: any; private _browsingContextIds: any; private listener: Record; private bidi: any; private ws: { on: Function }; constructor(driver: any, browsingContextIds: any); init(): Promise; logListener(kind: string): void; onConsoleEntry(callback: (entry: ConsoleLogEntry) => void, filterBy?: FilterBy): Promise; onJavascriptLog(callback: (entry: JavascriptLogEntry) => void, filterBy?: FilterBy): Promise; onJavascriptException(callback: (entry: JavascriptLogEntry) => void): Promise; onLog( callback: (entry: ConsoleLogEntry | JavascriptLogEntry | GenericLogEntry) => void, filterBy?: FilterBy, ): Promise; close(): Promise; } declare function getLogInspectorInstance(driver: any, browsingContextIds?: any): Promise; export = getLogInspectorInstance;