import './global'; import type { HTMLAttributes } from 'svelte/elements'; import type { CodeChallenge, ServerVerificationResult, State, WidgetAttributes } from './'; export {}; interface AltchaWidgetSvelte extends WidgetAttributes, HTMLAttributes { oncodechallenge?: (ev: CustomEvent<{ codeChallenge: CodeChallenge; }>) => void; onexpired?: (ev: CustomEvent) => void; onstatechange?: (e: CustomEvent<{ payload?: string; state: State; }>) => void; onserververification?: (e: CustomEvent) => void; onverified?: (e: CustomEvent<{ payload: string; }>) => void; } declare global { namespace svelteHTML { interface IntrinsicElements { 'altcha-widget': AltchaWidgetSvelte; } } }