import { QueryClient } from '@tanstack/react-query'; import { BetterFetchError } from 'better-auth/react'; import { AuthClient } from '../../lib/auth-client'; export type UpdateUserParams = Parameters[0]; export type UpdateUserOptions = Omit>, "mutationKey" | "mutationFn" | "meta">; /** * Mutation options factory for updating the authenticated user's profile. * * @param authClient - The Better Auth client. */ export declare function updateUserOptions(authClient: TAuthClient): import('@tanstack/query-core').WithRequired, unknown>, "mutationKey">; /** * Create a mutation for updating the authenticated user's profile. * * On success, `MutationInvalidator` awaits invalidation of the session * query so the updated user fields are reflected (see `meta.awaits`). * * @param authClient - The Better Auth client. * @param options - React Query options forwarded to `useMutation`. */ export declare function useUpdateUser(authClient: TAuthClient, options?: UpdateUserOptions, queryClient?: QueryClient): import('@tanstack/react-query').UseMutationResult<{ status: boolean; }, BetterFetchError, UpdateUserParams, unknown>;