File: /var/www/quadcode/one-time-popup/src/global.d.ts
interface Grecaptcha {
ready: (callback: () => void) => void;
execute: (siteKey: string, options: { action: string }) => Promise<string>;
render: (
container: string | HTMLElement,
parameters: {
sitekey: string;
theme?: 'light' | 'dark';
size?: 'normal' | 'compact' | 'invisible';
callback?: (token: string) => void;
'expired-callback'?: () => void;
'error-callback'?: () => void;
},
) => void;
getResponse: (widgetId: number) => string;
reset: (widgetId?: number) => void;
}
declare global {
interface Window {
grecaptcha: Grecaptcha;
dataRequestFormCaptcha: number;
isUserFillingForm: boolean;
}
}
export {};