UNPKG

react-waitlist

Version:

A customizable waitlist form component for React applications

26 lines (25 loc) 731 B
interface UseReCaptchaOptions { siteKey: string; proxyEndpoint?: string; secretKey?: string; action?: string; onLoad?: () => void; onError?: (error: Error) => void; debug?: boolean; } interface UseReCaptchaReturn { isLoaded: boolean; isLoading: boolean; error: Error | null; executeReCaptcha: (action?: string) => Promise<string>; verifyToken: (token: string, action?: string) => Promise<{ valid: boolean; score?: number; error?: string; }>; } /** * Hook to manage reCAPTCHA integration */ export declare const useReCaptcha: ({ siteKey, proxyEndpoint, secretKey, action, onLoad, onError, debug, }: UseReCaptchaOptions) => UseReCaptchaReturn; export {};