import { QueryClient } from '@tanstack/react-query'; import { BetterFetchError } from 'better-auth/react'; import { AuthClient } from '../../lib/auth-client'; export type SignOutParams = Parameters[0]; export type SignOutOptions = Omit>, "mutationKey" | "mutationFn">; /** * Mutation options factory for signing out. * * @param authClient - The Better Auth client. */ export declare function signOutOptions(authClient: TAuthClient): import('@tanstack/query-core').WithRequired | undefined, unknown>, "mutationKey">; /** * Create a mutation for signing the current user out. * * On success, removes every cached auth query so no stale data leaks across * accounts. Sign-out uses a direct `removeQueries` call (rather than the * `meta.awaits` / `meta.invalidates` pattern) because the goal is to drop * cache entries entirely, not to refetch them. * * @param authClient - The Better Auth client. * @param options - React Query options forwarded to `useMutation`. */ export declare function useSignOut(authClient: TAuthClient, options?: SignOutOptions, queryClient?: QueryClient): import('@tanstack/react-query').UseMutationResult<{ success: boolean; }, BetterFetchError, void | SignOutParams | undefined, unknown>;