-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.d.ts
38 lines (28 loc) · 1008 Bytes
/
index.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
36
37
38
import { PuppeteerExtraPlugin, PluginRequirements } from 'puppeteer-extra-plugin'
import { Page, Target } from 'puppeteer'
export = defaultExport;
declare function defaultExport(opts?: {
language?: string,
ip?: boolean,
httpHeaders?: boolean,
geoLocation?: boolean,
javascript?: boolean,
requestInterceptionPriority?: number
}): ForceCustomLanguagePlugin;
declare const ForceCustomLanguagePlugin_base: PuppeteerExtraPlugin;
declare class ForceCustomLanguagePlugin extends ForceCustomLanguagePlugin_base {
constructor(opts?: {});
get defaults(): {
language: string,
ip: boolean,
httpHeaders: boolean,
geoLocation: boolean,
javascript: boolean,
requestInterceptionPriority: number
};
get name(): string;
get requirements(): PluginRequirements;
async beforeLaunch(options: any): Promise<void>;
async onPageCreated(page: Page): Promise<void>;
async onTargetChanged(target: Target): Promise<void>;
}