@anilkumarthakur/vue3-recaptcha
Version:
A Vue 3 plugin for Google reCAPTCHA v2 (checkbox & invisible) and v3 integration
65 lines • 2.03 kB
TypeScript
import { PropType } from 'vue';
import { RecaptchaTheme } from '../types';
export declare const RecaptchaV2Checkbox: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
siteKey: {
type: StringConstructor;
default: undefined;
};
theme: {
type: PropType<RecaptchaTheme>;
default: RecaptchaTheme;
};
size: {
type: PropType<"normal" | "compact">;
default: "normal" | "compact";
};
tabindex: {
type: NumberConstructor;
default: number;
};
modelValue: {
type: StringConstructor;
default: string;
};
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
'update:modelValue': (token: string) => boolean;
verify: (token: string) => boolean;
expire: null;
error: (err: Error) => boolean;
load: null;
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
siteKey: {
type: StringConstructor;
default: undefined;
};
theme: {
type: PropType<RecaptchaTheme>;
default: RecaptchaTheme;
};
size: {
type: PropType<"normal" | "compact">;
default: "normal" | "compact";
};
tabindex: {
type: NumberConstructor;
default: number;
};
modelValue: {
type: StringConstructor;
default: string;
};
}>> & Readonly<{
"onUpdate:modelValue"?: ((token: string) => any) | undefined;
onVerify?: ((token: string) => any) | undefined;
onExpire?: ((...args: any[]) => any) | undefined;
onError?: ((err: Error) => any) | undefined;
onLoad?: ((...args: any[]) => any) | undefined;
}>, {
siteKey: string;
theme: RecaptchaTheme;
size: "normal" | "compact";
tabindex: number;
modelValue: string;
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
export default RecaptchaV2Checkbox;
//# sourceMappingURL=RecaptchaV2Checkbox.d.ts.map