import { BetterFetchError } from 'better-auth/react'; import { AuthClient } from '../../lib/auth-client'; export type SignInSocialParams = Parameters[0]; export type SignInSocialOptions = Omit>, "mutationKey" | "mutationFn">; /** * Mutation options factory for social sign-in. * * The returned `mutationKey` (`["auth", "signIn", "social"]`) is stable and * can be passed to `useIsMutating` or matched inside a global * `MutationCache` observer for toast handling. * * @param authClient - The Better Auth client. */ export declare function signInSocialOptions(authClient: TAuthClient): import('@tanstack/query-core').WithRequired & { user: import('better-auth').StripEmptyObjects<{ id: string; createdAt: Date; updatedAt: Date; email: string; emailVerified: boolean; name: string; image?: string | null | undefined; }>; }), BetterFetchError, SignInSocialParams, unknown>, "mutationKey">; /** * Create a mutation for social sign-in. * * Wraps `authClient.signIn.social` to initiate a provider redirect and * forwards React Query mutation options such as `onSuccess`, `onError`, * and `retry`. * * @param authClient - The Better Auth client. * @param options - React Query options forwarded to `useMutation`. */ export declare function useSignInSocial(authClient: TAuthClient, options?: SignInSocialOptions): import('@tanstack/react-query').UseMutationResult<{ redirect: boolean; url: string; } | (Omit<{ redirect: boolean; token: string; url: undefined; user: { id: string; createdAt: Date; updatedAt: Date; email: string; emailVerified: boolean; name: string; image?: string | null | undefined | undefined; }; }, "user"> & { user: import('better-auth').StripEmptyObjects<{ id: string; createdAt: Date; updatedAt: Date; email: string; emailVerified: boolean; name: string; image?: string | null | undefined; }>; }), BetterFetchError, SignInSocialParams, unknown>;