UNPKG

@anilkumarthakur/vue3-recaptcha

Version:

This plugin provides a Vue 3 component and plugin for integrating Google reCAPTCHA V3. The plugin enables easy reCAPTCHA token generation, management, and configuration within a Vue 3 application.

26 lines (25 loc) 1.22 kB
import { RecaptchaComponentProps } from '../types/recaptchaPluginTypes'; declare function initializeRecaptcha(): Promise<string>; declare function executeRecaptcha(): Promise<string>; declare function loadRecaptcha(): Promise<string>; declare global { interface Window { grecaptcha: { ready: (callback: () => void) => void; execute: (siteKey: string, options: { action: string; }) => Promise<string>; }; } } declare const _default: import('vue').DefineComponent<RecaptchaComponentProps, { loadRecaptcha: typeof loadRecaptcha; executeRecaptcha: typeof executeRecaptcha; initializeRecaptcha: typeof initializeRecaptcha; recaptchaToken: import('vue').WritableComputedRef<string | undefined, string | undefined>; }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & { "update:modelValue": (token: string) => any; }, string, import('vue').PublicProps, Readonly<RecaptchaComponentProps> & Readonly<{ "onUpdate:modelValue"?: ((token: string) => any) | undefined; }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>; export default _default;