export interface UseWebOtpOptions { /** * Invoked once with the full code when the browser surfaces a matching * SMS. Setting state from inside `onCode` is safe — the hook will not * fire again for the same lifecycle (it auto-aborts after success). */ onCode: (code: string) => void; /** * Optional error sink. `AbortError` (the normal cleanup path) is NEVER * forwarded — only real failures (permission denied, malformed SMS, etc.). * When omitted the hook silently swallows everything so a consumer that * doesn't care about telemetry can call the hook bare. */ onError?: (error: Error) => void; /** * Gate the listener. When `false` the hook is a no-op; flipping back to * `true` reinstalls the listener. Default `true`. */ enabled?: boolean; } export declare function useWebOtp({ onCode, onError, enabled, }: UseWebOtpOptions): void; //# sourceMappingURL=use-web-otp.d.ts.map