2023-01-13 05:40:33 +01:00
|
|
|
declare module "hcaptcha" {
|
2020-05-02 03:51:12 +02:00
|
|
|
interface IVerifyResponse {
|
2020-04-28 07:29:33 +02:00
|
|
|
success: boolean;
|
|
|
|
challenge_ts: string;
|
|
|
|
hostname: string;
|
|
|
|
credit?: boolean;
|
2023-01-13 05:40:33 +01:00
|
|
|
"error-codes"?: unknown[];
|
2020-05-02 03:51:12 +02:00
|
|
|
}
|
2020-05-02 03:50:29 +02:00
|
|
|
|
2023-01-13 05:40:33 +01:00
|
|
|
export function verify(
|
|
|
|
secret: string,
|
|
|
|
token: string,
|
|
|
|
): Promise<IVerifyResponse>;
|
2020-04-28 07:29:33 +02:00
|
|
|
}
|