UNPKG

@anushase/json-form-builder

Version:

A dynamic JSON form builder with multi-language support, validation, and responsive design

16 lines (15 loc) 891 B
import { FormState } from "../types"; /** * Loads the reCAPTCHA script asynchronously and checks if it is already loaded. * @returns {Promise<boolean>} A promise that resolves to true if reCAPTCHA script is loaded successfully, false otherwise. */ declare const loadRecaptcha: (state: FormState) => Promise<boolean>; /** * Adds the reCAPTCHA script to the document if reCAPTCHA is enabled and site key is provided. */ declare const addRecaptchaScript: (state: FormState) => Promise<void>; declare const enableRecaptcha: (state: FormState, form: HTMLElement) => void; declare const initializeRecaptcha: (state: FormState) => void; declare const reInitializeRecaptcha: (state: FormState) => void; declare const validateRecaptcha: (state: FormState) => boolean; export { enableRecaptcha, addRecaptchaScript, initializeRecaptcha, loadRecaptcha, reInitializeRecaptcha, validateRecaptcha, };