import { CaptchaRequestBase, CaptchaRequestBaseIn } from './CaptchaRequestBase'; export declare type FunCaptchaRequestBaseIn = { websiteURL: string; websitePublicKey: string; funcaptchaApiJSSubdomain?: string; data?: string; cookies?: string; } & CaptchaRequestBaseIn; /** * Base FunCaptcha recognition request */ export declare abstract class FunCaptchaRequestBase extends CaptchaRequestBase { /** * Address of a webpage with FunCaptcha * @example * https://funcaptcha.com/fc/api/nojs/?pkey=69A21A01-CC7B-B9C6-0F9A-E7FA06677FFC */ websiteURL: string; /** * FunCaptcha website key. * @example * ]]> * 69A21A01-CC7B-B9C6-0F9A-E7FA06677FFC */ websitePublicKey: string; /** * A special subdomain of funcaptcha.com, from which the JS captcha widget should be loaded. * Most FunCaptcha installations work from shared domains, so this option is only needed in certain rare cases. * @example * mywebsite-api.funcaptcha.com */ funcaptchaApiJSSubdomain?: string; /** * Additional parameter that may be required by FunCaptcha implementation. * Use this property to send "blob" value as a stringified array. See example how it may look like. * @example * * "{\"blob\":\"dyXvXANMbHj1iDyz.Qj97JtSqR2n%2BuoY1V%2FbdgbrG7p%2FmKiqdU9AwJ6MifEt0np4vfYn6TTJDJEfZDlcz9Q1XMn9przeOV%2FCr2%2FIpi%2FC1s%3D\"}" */ data?: string; /** * Additional cookies which we must use during interaction with target page. */ cookies?: string; constructor({ type, nocache, websiteURL, websitePublicKey, funcaptchaApiJSSubdomain, data, cookies }: FunCaptchaRequestBaseIn); }