import { QueryClient } from '@tanstack/react-query'; import { BetterFetchError } from 'better-auth/react'; import { PasskeyAuthClient } from '../../lib/auth-client'; export type AddPasskeyParams = Parameters[0]; export type AddPasskeyOptions = Omit>, "mutationKey" | "mutationFn" | "meta">; /** * Mutation options factory for registering a new passkey. * * @param authClient - The Better Auth client with the passkey plugin. */ export declare function addPasskeyOptions(authClient: TAuthClient): import('@tanstack/query-core').WithRequired | undefined, unknown>, "mutationKey">; /** * Create a mutation for registering a new passkey. * * On success, `MutationInvalidator` awaits invalidation of the user's * passkey list (see `meta.awaits`). * * @param authClient - The Better Auth client with the passkey plugin. * @param options - React Query options forwarded to `useMutation`. */ export declare function useAddPasskey(authClient: TAuthClient, options?: AddPasskeyOptions, queryClient?: QueryClient): import('@tanstack/react-query').UseMutationResult<{ data: null; error: { message?: string | undefined; status: number; statusText: string; }; } | { data: import('@better-auth/passkey').Passkey; error: null; } | { webauthn: { response: import('@better-auth/passkey/client').RegistrationResponseJSON; clientExtensionResults: import('@better-auth/passkey/client').AuthenticationExtensionsClientOutputs; }; data: import('@better-auth/passkey').Passkey; error: null; } | { data: null; error: { code: string; message: string; status: number; statusText: string; }; }, BetterFetchError, void | AddPasskeyParams | undefined, unknown>;