summaryrefslogtreecommitdiffstats
path: root/g4f/Provider/npm/node_modules/funcaptcha/lib/session.d.ts
blob: d40a10c9354770133a5b5264d582cb1f3607b4cf (plain) (blame)
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
import { GetTokenResult } from "./api";
import { Challenge } from "./challenge";
export interface TokenInfo {
    token: string;
    r: string;
    metabgclr: string;
    mainbgclr: string;
    guitextcolor: string;
    metaiconclr: string;
    meta_height: string;
    meta_width: string;
    meta: string;
    pk: string;
    dc: string;
    at: string;
    cdn_url: string;
    lurl: string;
    surl: string;
    smurl: string;
    kbio: boolean;
    mbio: boolean;
    tbio: boolean;
}
export interface SessionOptions {
    userAgent?: string;
    proxy?: string;
}
export declare class Session {
    token: string;
    tokenInfo: TokenInfo;
    private userAgent;
    private proxy;
    constructor(token: string | GetTokenResult, sessionOptions?: SessionOptions);
    getChallenge(): Promise<Challenge>;
    getEmbedUrl(): string;
}