import { SignInSecurityKeyPasswordlessHandlerResult, SignInSecurityKeyPasswordlessState } from '@nhost/nhost-js'; import { ToRefs } from 'vue'; import { RefOrValue } from './helpers'; interface SignInSecurityKeyPasswordlessHandler { (email: RefOrValue): Promise; } export interface SignInSecurityKeyPasswordlessHookResult extends ToRefs { signInEmailSecurityKey: SignInSecurityKeyPasswordlessHandler; } interface SignInSecurityKeyPasswordlessResult { (): SignInSecurityKeyPasswordlessHookResult; } /** * Use the composable `useSignInEmailSecurityKey` to sign in a user using their email and a security key using the WebAuthn API. * * @example * ```tsx * const { signInEmailSecurityKey, needsEmailVerification, isLoading, isSuccess, isError, error } = useSignInEmailSecurityKey() * * console.log({ needsEmailVerification, isLoading, isSuccess, isError, error }); * * const handleFormSubmit = async (e) => { * e.preventDefault(); * * await signInEmailSecurityKey('joe@example.com') * } * ``` * * @docs https://docs.nhost.io/reference/vue/use-sign-in-web-authn */ export declare const useSignInEmailSecurityKey: SignInSecurityKeyPasswordlessResult; export {}; //# sourceMappingURL=useSignInEmailSecurityKey.d.ts.map