import ICorePluginCreateOptions from '@ulixee/hero-interfaces/ICorePluginCreateOptions'; import { ISessionSummary } from '@ulixee/hero-interfaces/ICorePlugin'; import IDevtoolsSession from '@ulixee/unblocked-specification/agent/browser/IDevtoolsSession'; import CorePlugin from '@ulixee/hero-plugin-utils/lib/CorePlugin'; import { IWorker } from '@ulixee/unblocked-specification/agent/browser/IWorker'; import IBrowser from '@ulixee/unblocked-specification/agent/browser/IBrowser'; import { BrowserContext, Page } from '@ulixee/unblocked-agent'; import IEmulationProfile from '@ulixee/unblocked-specification/plugin/IEmulationProfile'; import TabGroupModule from './hero-plugin-modules/TabGroupModule'; import DevtoolsBackdoorModule from './hero-plugin-modules/DevtoolsBackdoorModule'; import ElementsModule from './hero-plugin-modules/ElementsModule'; export declare const extensionPath: string; export default class HeroCorePlugin extends CorePlugin { static id: string; static bySessionId: Map; activePage: Page; tabGroupModule: TabGroupModule; devtoolsBackdoorModule: DevtoolsBackdoorModule; elementsModule: ElementsModule; sessionId: string; mirrorPage: Page; private readonly bridgeToExtension; private readonly identityByPage; private readonly pagesById; private readonly events; private readonly browserEmitter; private hasRegisteredServiceWorkerDebug; constructor(createOptions: ICorePluginCreateOptions); getTabIdByPageId(pageId: string): Promise; getPageByTabId(tabId: number): Promise; configure(options: IEmulationProfile): Promise | void; onNewBrowser(browser: IBrowser): void; onNewBrowserContext(context: BrowserContext): Promise; onNewPage(page: Page): Promise; onDevtoolsPanelAttached(devtoolsSession: IDevtoolsSession): Promise; onDevtoolsPanelDetached(devtoolsSession: IDevtoolsSession): Promise; onNewWorker(worker: IWorker): Promise; onPageClosed(page: Page): void; onBrowserContextClosed(sessionSummary: ISessionSummary): void; sendToExtension(pageId: string, action: string, args?: object, waitForResponse?: boolean): Promise; private onBridgeMessage; private handlePageIsVisible; private onTabIdentified; private onBoundsChanged; private setPageViewportToWindowBounds; private getMaxChromeViewport; private debugServiceWorker; static shouldActivate(profile: IEmulationProfile, session: ISessionSummary): boolean; }