import { CaptchaRequestBase, CaptchaRequestBaseIn } from './CaptchaRequestBase'; export declare type HCaptchaRequestBaseIn = { websiteURL: string; websiteKey: string; isInvisible?: boolean; data?: string; userAgent?: string; cookies?: string; } & CaptchaRequestBaseIn; /** * Base HCaptcha recognition request */ export declare abstract class HCaptchaRequestBase extends CaptchaRequestBase { /** * Address of a webpage with hCaptcha. */ websiteURL: string; /** * hCaptcha website key. */ websiteKey: string; /** * Set true for invisible version of hCaptcha */ isInvisible?: boolean; /** * Custom data that is used in some implementations of hCaptcha, mostly with @type {Invisible}=true. * In most cases you see it as inside network requests. * IMPORTANT: you MUST provide @type {UserAgent} if you submit captcha with data parameter. * The value should match the User-Agent you use when interacting with the target website. */ data?: string; /** * Browser's User-Agent which is used in emulation. * It is required that you use a signature of a modern browser. */ userAgent?: string; /** * Additional cookies which we must use during interaction with target page. */ cookies?: string; constructor({ type, nocache, websiteURL, websiteKey, isInvisible, data, userAgent, cookies }: HCaptchaRequestBaseIn); }