import type { PageData } from '../types.js'; import type { PageHook } from '@d-zero/puppeteer-screenshot'; import type { Page } from 'puppeteer'; export interface GetDataOptions { readonly hooks?: readonly PageHook[]; readonly htmlDiffOnly?: boolean; readonly selector?: string; readonly ignore?: string; readonly devices?: readonly string[]; } /** * Puppeteerでページを開き、各デバイスサイズのスクリーンショットとDOMツリーを取得する * @param page - PuppeteerのPageインスタンス * @param url - 取得対象のURL * @param options - スクリーンショット取得のオプション * @param update - 進捗ログを受け取るコールバック * @returns 各デバイスサイズのスクリーンショットとDOMツリーを含むページデータ */ export declare function getData(page: Page, url: string, options: GetDataOptions, update: (log: string) => void): Promise;