import { CaptchaRequestBase, CaptchaRequestBaseIn } from './CaptchaRequestBase'; export declare type GeeTestRequestBaseIn = { websiteURL: string; gt: string; challenge: string; geetestApiServerSubdomain?: string; geetestGetLib?: string; userAgent?: string; } & CaptchaRequestBaseIn; /** * Base GeeTest recognition request */ export declare abstract class GeeTestRequestBase extends CaptchaRequestBase { /** * Address of the page on which the captcha is recognized * @example * https://example.com/geetest.php */ websiteURL: string; /** * The GeeTest identifier key for the domain. * Static value, rarely updated. * @example * 81dc9bdb52d04dc20036dbd8313ed055 */ gt: string; /** * A dynamic key. * Each time our API is called, we need to get a new key value. * If the captcha is loaded on the page, then the challenge value is no longer valid and you will get @type {ErrorType.TOKEN_EXPIRED} error. * IMPORTANT. You will be charged for tasks with @type {ErrorType.TOKEN_EXPIRED} error! * * It is necessary to examine the requests and find the one in which this value is returned and, * before each creation of the recognition task, execute this request and parse the from it. * @example * d93591bdf7860e1e4ee2fca799911215 */ challenge: string; /** * May be required for some sites. */ geetestApiServerSubdomain?: string; /** * May be required for some sites. * Send JSON as a string. */ geetestGetLib?: string; /** * Browser's User-Agent which is used in emulation. * It is required that you use a signature of a modern browser, * otherwise Google will ask you to "update your browser". */ userAgent?: string; constructor({ type, nocache, websiteURL, gt, challenge, geetestApiServerSubdomain, geetestGetLib, userAgent }: GeeTestRequestBaseIn); }