import { QueryClient } from '@tanstack/react-query'; import { BetterFetchError } from 'better-auth/react'; import { AuthClient } from '../../lib/auth-client'; export type UnlinkAccountParams = Parameters[0]; export type UnlinkAccountOptions = Omit>, "mutationKey" | "mutationFn" | "meta">; /** * Mutation options factory for unlinking a social provider from the current user. * * @param authClient - The Better Auth client. */ export declare function unlinkAccountOptions(authClient: TAuthClient): import('@tanstack/query-core').WithRequired, unknown>, "mutationKey">; /** * Create a mutation for unlinking a social provider from the current user. * * On success, `MutationInvalidator` awaits invalidation of the linked * accounts list (see `meta.awaits`). * * @param authClient - The Better Auth client. * @param options - React Query options forwarded to `useMutation`. */ export declare function useUnlinkAccount(authClient: TAuthClient, options?: UnlinkAccountOptions, queryClient?: QueryClient): import('@tanstack/react-query').UseMutationResult<{ status: boolean; }, BetterFetchError, UnlinkAccountParams, unknown>;