forked from ZFC-Digital/puppeteer-real-browser
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtypings.d.ts
35 lines (30 loc) · 852 Bytes
/
typings.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
declare module "puppeteer-real-browser" {
import type { Browser, Page } from "puppeteer-core-patch";
import type { GhostCursor } from "ghost-cursor";
export function connect(options: Options): Promise<ConnectResult>;
interface PageWithCursor extends Page {
realClick: GhostCursor["click"];
realCursor: GhostCursor;
}
type ConnectResult = {
browser: Browser;
page: PageWithCursor;
};
interface Options {
args?: string[];
headless?: boolean;
customConfig?: import("chrome-launcher").Options;
proxy?: ProxyOptions;
turnstile?: boolean;
connectOption?: import("puppeteer-core-patch").ConnectOptions;
disableXvfb?: boolean;
plugins?: import("puppeteer-extra").PuppeteerExtraPlugin[];
ignoreAllFlags?: boolean;
}
interface ProxyOptions {
host: string;
port: number;
username?: string;
password?: string;
}
}