/** Minimal shape of the global Turnstile API we rely on. */ interface TurnstileApi { render: (element: HTMLElement, options: Record) => string; reset: (widgetId?: string) => void; remove: (widgetId?: string) => void; } declare global { interface Window { turnstile?: TurnstileApi; } } export interface TurnstileHandle { reset: () => void; } export interface TurnstileProps { siteKey: string; onVerify: (token: string) => void; onExpire?: () => void; onError?: () => void; appearance?: 'always' | 'execute' | 'interaction-only'; /** Widget language. Defaults to `'auto'`. */ language?: string; className?: string; } /** * Self-contained Cloudflare Turnstile widget. Loads the CF script once * (explicit-render mode), mounts the widget, and exposes `reset()` via ref. * No design-system dependency. */ export declare const Turnstile: import("react").ForwardRefExoticComponent>; export {}; //# sourceMappingURL=Turnstile.d.ts.map