import type { NetworkEventHandlers, NetworkInterceptorAdapter, TriggerAction, InterceptTarget, InterceptSession } from "@pagepocket/lib"; import { type Browser, type GoToOptions, type PuppeteerLaunchOptions, type Page } from "puppeteer"; export type PuppeteerAdapterOptions = { browser?: Browser; page?: Page; launch?: (options?: PuppeteerLaunchOptions) => Promise; launchOptions?: PuppeteerLaunchOptions; gotoOptions?: GoToOptions; triggerActions?: TriggerAction[]; }; /** * Internal adapter for the capture plugin. * * Note: this is intentionally NOT published as a separate package. */ export declare class PuppeteerAdapter implements NetworkInterceptorAdapter { readonly name = "puppeteer"; readonly capabilities: { canGetResponseBody: boolean; canStreamResponseBody: boolean; canGetRequestBody: boolean; providesResourceType: boolean; canWaitForHtml: boolean; supportsStagedCapture: boolean; }; private options; constructor(options?: PuppeteerAdapterOptions); start(target: InterceptTarget, handlers: NetworkEventHandlers, _options?: Record): Promise; }