import * as React from 'react' export interface UrlFailureInfo { url: string error: string attemptNumber: number totalAttempts: number isLastAttempt: boolean } export interface ScriptLoadingFailedInfo { urls: string[] error: string } export interface ArcaptchaWidgetProps { "site-key": string size?: 'normal' | 'invisible' domain?: string invisible?: boolean theme?: 'light' | 'dark' color?: string error_print?: 0 | 1 api_url?: string lang?: 'en' | 'fa' timeout?: number url_failed_callback?: (info: UrlFailureInfo) => void script_loading_failed_callback?: (info: ScriptLoadingFailedInfo) => void callback?: (token?: string) => void rendered_callback?: () => void error_callback?: () => void reset_callback?: () => void expired_callback?: () => void chlexpired_callback?: () => void blocked_callback?: () => void clicked_callback?: () => void opened_callback?: () => void closed_callback?: () => void } export interface ArcaptchaExecuteResponse { arcaptcha_token: string site_key: string } export interface ArcaptchaWidgetHandle { execute: () => Promise resetCaptcha: () => void close?: () => void } export declare const ArcaptchaWidget: React.ForwardRefExoticComponent< ArcaptchaWidgetProps & React.RefAttributes > export default ArcaptchaWidget