import { CaptchaRequestBase, CaptchaRequestBaseIn } from './CaptchaRequestBase'; export declare type RecaptchaV2EnterpriseRequestBaseIn = { websiteURL: string; websiteKey: string; enterprisePayload?: Record; recaptchaDataSValue?: string; userAgent?: string; } & CaptchaRequestBaseIn; /** * Base Recaptcha V2 Enterprise recognition request */ export declare abstract class RecaptchaV2EnterpriseRequestBase extends CaptchaRequestBase { /** * Address of a webpage with Google ReCaptcha */ websiteURL: string; /** * Recaptcha website key. * @example * ]]> */ websiteKey: string; /** * Additional parameters which should be passed to "grecaptcha.enterprise.render" method along with sitekey. * Example of what you should search for: * @example * * @description * In this example, you will notice a parameter "s" which is not documented, but obviously required. * Send it to the API, so that we render the Recaptcha widget with this parameter properly. */ enterprisePayload?: Record; /** * Some custom implementations may contain additional "data-s" parameter in ReCaptcha2 div, which is in fact a one-time token and must be grabbed every time you want to solve a ReCaptcha2. * @example * ]]> */ recaptchaDataSValue?: 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, websiteKey, enterprisePayload, recaptchaDataSValue, userAgent, }: RecaptchaV2EnterpriseRequestBaseIn); }