///
export interface VanillaHCaptchaJsApiConfig {
/**
* The hCaptcha JS API.
* Default: "https://js.hcaptcha.com/1/api.js"
*/
jsapi?: string;
/**
* Default: true
*/
sentry: boolean;
/**
* Disable drop-in replacement for reCAPTCHA with false to prevent
* hCaptcha from injecting into window.grecaptcha.
* Default: true
*/
reCaptchaCompat: boolean;
/**
* hCaptcha auto-detects language via the user's browser.
* This overrides that to set a default UI language.
*/
hl?: string;
endpoint?: string;
reportapi?: string;
assethost?: string;
imghost?: string;
host?: string;
}
declare type VanillaHCaptchaRenderConfig = Omit;
export declare class VanillaHCaptchaWebComponent extends HTMLElement {
private hcaptchaId;
connectedCallback(): void;
private onApiLoaded;
private assertApiLoaded;
private assertRendered;
private onError;
private $emit;
/**
* Programmatically render the hCaptcha checkbox.
* The config object must specify all required properties.
* The web component attributes are ignored for more explicit behavior.
* @param config
*/
render(config: VanillaHCaptchaRenderConfig): void;
/**
* Sets the rqdata.
* @param rqdata
*/
setData(rqdata: string | null): void;
/**
* Triggers hCaptcha verification.
*/
execute(): void;
/**
* Triggers a verification request.
* Returns a Promise which resolved with the token results or throws in case of errors.
*/
executeAsync(): Promise;
/**
* Resets the hCaptcha verification.
*/
reset(): void;
}
export {};