import type { PDFOptions, Awaitable, WaitForOptions } from "puppeteer-core"; export type { PDFOptions } from "puppeteer-core"; type InnerParams = { [K in keyof T]: T[K]; }; type EvaluateFunc = (...params: InnerParams) => Awaitable; export interface Page { pdf(options?: PDFOptions): Promise; close(): Promise; goto(url: string, options?: WaitForOptions & { referer?: string; }): Promise; evaluate = EvaluateFunc>(pageFunction: Func | string, ...args: Params): Promise>>; } export interface Browser { newPage(): Promise; }