forked from mirrors/firefish
15 lines
266 B
TypeScript
15 lines
266 B
TypeScript
declare module "hcaptcha" {
|
|
interface IVerifyResponse {
|
|
success: boolean;
|
|
challenge_ts: string;
|
|
hostname: string;
|
|
credit?: boolean;
|
|
"error-codes"?: unknown[];
|
|
}
|
|
|
|
export function verify(
|
|
secret: string,
|
|
token: string,
|
|
): Promise<IVerifyResponse>;
|
|
}
|