/** * This encompasses a widget for a given site key. */ export interface RecaptchaWidgetInterface { /** execute the recaptcha request and returns a token */ execute(): Promise; } /** * The combines parameters from the Recaptcha config and adds the zIndex, which * allows us to control the z-index of the recaptcha widget. */ export type RecaptchaWidgetConfig = Pick & { zIndex?: number; }; /** * This encompasses a widget for a given site key. */ export declare class RecaptchaWidget implements RecaptchaWidgetInterface { private executionSuccessBlock?; private executionExpiredBlock?; private executionErrorBlock?; private grecaptchaLibrary; private siteKey; private widgetId; private isExecuting; constructor(config: { siteKey: string; grecaptchaLibrary: ReCaptchaV2.ReCaptcha; }, widgetConfig?: RecaptchaWidgetConfig); /** @inheritdoc */ execute(): Promise; private finishExecution; private setup; private createContainer; private responseHandler; private expiredHandler; private errorHandler; }