import { BoundingBox, Browser, ElementHandle, Frame, Page } from 'puppeteer'; import { FakeDeviceDescriptor } from './DeviceDescriptor'; export declare class PptrToolkit { static waitForSelectorWithRegex(page: Page | Frame, reg: RegExp, attributeToSearch?: string | null, options?: { timeout: number; }): Promise; /** * Search DOM nodes based on regular expressions * @param page * @param reg * @param attributeToSearch */ static querySelectorAllWithRegex(page: Page | Frame, reg: RegExp, attributeToSearch?: string | null): Promise; static stopLoading(page: Page): Promise; static boundingBoxNew(eh: ElementHandle): Promise<{ border: BoundingBox; content: BoundingBox; margin: BoundingBox; padding: BoundingBox; width: number; height: number; } | null>; static boundingBox(eh?: ElementHandle | null): Promise; static intersectingViewport(eh: ElementHandle, fakeDD: FakeDeviceDescriptor): Promise; static getActivePage(browser: Browser, timeout?: number): Promise; } //# sourceMappingURL=PptrToolkit.d.ts.map