UNPKG

recaptcha-node

Version:

A Node.js library to verify reCAPTCHA v2/v3 response tokens received from a client.

12 lines (11 loc) 395 B
/// <reference types="node" /> import { SupportedProtocols } from './recaptcha'; import * as https from 'https'; declare type ResponseBody = any; export declare type ClientOptions = Omit<https.RequestOptions, 'protocol'> & { data?: string; timeout?: number; protocol?: SupportedProtocols; }; export declare function request(options: ClientOptions): Promise<ResponseBody>; export {};