import { EventEmitter } from 'eventemitter3'; import { TabDialog } from './dialog'; import { Mouse, Keyboard } from '../actions'; import type { Page } from 'puppeteer-core'; import { type NavigationOptions, type NavigationResult, type TabEventsMap, type TabOptions, type TabScreenshotOptions, type TabScreenshotResult } from '../types'; export declare class Tab extends EventEmitter { #private; constructor(page: Page, options: TabOptions); init(): Promise; get tabId(): string; get page(): Page; get url(): string; getTitle(): Promise; getFavicon(): Promise; /** * @internal */ _active(): Promise; /** * @internal */ _inactive(): Promise; /** * @internal */ _checkActiveStatusWithRuntime(): Promise; get dialog(): TabDialog; get keyboard(): Keyboard; get mouse(): Mouse; screenshot(options?: T): Promise>; getHistory(): Promise<{ index: number; canGoBack: boolean; canGoForward: boolean; history: { url: string; title: string; }[]; }>; goto(url: string, options?: NavigationOptions): Promise; goBack(options?: NavigationOptions): Promise; goForward(options?: NavigationOptions): Promise; reload(options?: NavigationOptions): Promise; /** * @internal */ _close(): Promise; injectScriptOnCreate(script: string | string[]): void; injectScriptOnLoad(script: string | string[]): void; } //# sourceMappingURL=tab.d.ts.map