/** * A picture of the page, taken in the page: the assistant's * `screenshot_page`, so it can see a change it made rather than only read it * (`read_page` gives the words and the boxes). * * Taken HERE, in the page: a browser lets no page photograph a frame, so * the bridge renders its own document -- * `modern-screenshot` draws the DOM, with its computed styles, fonts and * same-origin images, into a canvas -- and hands back a JPEG. * * It is a rendering of the DOM, not of the screen: an image from another * origin that does not allow it, a video frame, a `` a script drew * and an iframe come out blank. Good enough to see a layout, a colour, a * button that wrapped; the tool says what it cannot show. * * Loaded when asked: the library is not in a page that is never * photographed. */ /** What `screenshotPage` answers. */ export type PageScreenshot = { /** A JPEG, as a data URL. */ dataUrl: string; width: number; height: number; /** The whole page, from the top, rather than what was on screen. */ fullPage: boolean; /** The page went on below what the picture shows. */ clipped: boolean; }; /** * The page in `win`, as it is now: what is on screen, or (`fullPage`) the * whole page from the top, cut off at {@link MAX_FULL_PAGE_HEIGHT}. Elements * `exclude` says are not the page's -- the picker's highlight -- are left * out. */ export declare function screenshotPage(win: Window, options?: { fullPage?: boolean; exclude?: (element: Element) => boolean; }): Promise;