UNPKG

react-waitlist

Version:

A customizable waitlist form component for React applications

31 lines (30 loc) 739 B
/** * Generic request interface */ interface Request { method?: string; body?: any; headers?: any; } /** * Generic response interface */ interface Response { status: (code: number) => Response; json: (data: any) => any; setHeader?: (name: string, value: string) => Response; } /** * Options for configuring the reCAPTCHA proxy */ export interface RecaptchaProxyOptions { secretKey: string; minScore?: number; allowedActions?: string[]; debug?: boolean; } /** * Create a proxy handler for reCAPTCHA verification */ export declare const createRecaptchaProxy: ({ secretKey, minScore, allowedActions, debug, }: RecaptchaProxyOptions) => (req: Request, res: Response) => Promise<any>; export {};