import * as _better_fetch_fetch from '@better-fetch/fetch'; import { BetterFetchError } from '@better-fetch/fetch'; import * as better_auth_react from 'better-auth/react'; import { createAuthClient } from 'better-auth/react'; import * as nanostores from 'nanostores'; import * as better_auth from 'better-auth'; import { Session, User } from 'better-auth'; type AnyAuthClient = Omit, "signUp" | "getSession">; declare function useListDeviceSessions(_?: TAuthClient): { data: TAuthClient["$Infer"]["Session"][] | null; isPending: boolean; isRefetching: boolean; error: _better_fetch_fetch.BetterFetchError["error"] | null; refetch: () => Promise; }; declare function useSession(authClient: TAuthClient): { data: null; isPending: boolean; isRefetching: boolean; error: null; refetch: () => Promise; } | { data: TAuthClient["$Infer"]["Session"] | null; isPending: boolean; isRefetching: boolean; optimistic?: boolean; error: _better_fetch_fetch.BetterFetchError["error"] | null; refetch: () => Promise; }; declare function useSubscribeDeviceSessions(): void; declare function setActiveSession({ sessionToken }: { sessionToken: string; }): Promise; declare const $authClient: nanostores.PreinitializedWritableAtom<({ multiSession: { listDeviceSessions: >(context: _better_fetch_fetch.RequestContext) => Promise<_better_fetch_fetch.RequestContext | void> | _better_fetch_fetch.RequestContext | void) | undefined; onResponse?: ((context: _better_fetch_fetch.ResponseContext) => Promise | Response | _better_fetch_fetch.ResponseContext | void) | undefined; onSuccess?: ((context: _better_fetch_fetch.SuccessContext) => Promise | void) | undefined; onError?: ((context: _better_fetch_fetch.ErrorContext) => Promise | void) | undefined; onRetry?: ((response: _better_fetch_fetch.ResponseContext) => Promise | void) | undefined; hookOptions?: { cloneResponse?: boolean; } | undefined; timeout?: number | undefined; customFetchImpl?: _better_fetch_fetch.FetchEsque | undefined; plugins?: _better_fetch_fetch.BetterFetchPlugin[] | undefined; baseURL?: string | undefined; throw?: boolean | undefined; auth?: ({ type: "Bearer"; token: string | Promise | (() => string | Promise | undefined) | undefined; } | { type: "Basic"; username: string | (() => string | undefined) | undefined; password: string | (() => string | undefined) | undefined; } | { type: "Custom"; prefix: string | (() => string | undefined) | undefined; value: string | (() => string | undefined) | undefined; }) | undefined; body?: undefined; query?: (Partial> & Record) | undefined; params?: Record | undefined; duplex?: "full" | "half" | undefined; jsonParser?: ((text: string) => Promise | any) | undefined; retry?: _better_fetch_fetch.RetryOptions | undefined; retryAttempt?: number | undefined; output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined; errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined; disableValidation?: boolean | undefined; }>(data_0?: better_auth.Prettify<{ query?: Record | undefined; fetchOptions?: FetchOptions | undefined; }> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{ session: better_auth.Session; user: better_auth.User; }[], { code?: string; message?: string; }, FetchOptions["throw"] extends true ? true : false>>; }; } & { multiSession: { setActive: >(context: _better_fetch_fetch.RequestContext) => Promise<_better_fetch_fetch.RequestContext | void> | _better_fetch_fetch.RequestContext | void) | undefined; onResponse?: ((context: _better_fetch_fetch.ResponseContext) => Promise | Response | _better_fetch_fetch.ResponseContext | void) | undefined; onSuccess?: ((context: _better_fetch_fetch.SuccessContext) => Promise | void) | undefined; onError?: ((context: _better_fetch_fetch.ErrorContext) => Promise | void) | undefined; onRetry?: ((response: _better_fetch_fetch.ResponseContext) => Promise | void) | undefined; hookOptions?: { cloneResponse?: boolean; } | undefined; timeout?: number | undefined; customFetchImpl?: _better_fetch_fetch.FetchEsque | undefined; plugins?: _better_fetch_fetch.BetterFetchPlugin[] | undefined; baseURL?: string | undefined; throw?: boolean | undefined; auth?: ({ type: "Bearer"; token: string | Promise | (() => string | Promise | undefined) | undefined; } | { type: "Basic"; username: string | (() => string | undefined) | undefined; password: string | (() => string | undefined) | undefined; } | { type: "Custom"; prefix: string | (() => string | undefined) | undefined; value: string | (() => string | undefined) | undefined; }) | undefined; body?: (Partial<{ sessionToken: string; }> & Record) | undefined; query?: (Partial> & Record) | undefined; params?: Record | undefined; duplex?: "full" | "half" | undefined; jsonParser?: ((text: string) => Promise | any) | undefined; retry?: _better_fetch_fetch.RetryOptions | undefined; retryAttempt?: number | undefined; output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined; errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined; disableValidation?: boolean | undefined; }>(data_0: better_auth.Prettify<{ sessionToken: string; } & { fetchOptions?: FetchOptions | undefined; }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{ session: better_auth.Session & Record; user: better_auth.User & Record; }, { code?: string; message?: string; }, FetchOptions["throw"] extends true ? true : false>>; }; } & { multiSession: { revoke: >(context: _better_fetch_fetch.RequestContext) => Promise<_better_fetch_fetch.RequestContext | void> | _better_fetch_fetch.RequestContext | void) | undefined; onResponse?: ((context: _better_fetch_fetch.ResponseContext) => Promise | Response | _better_fetch_fetch.ResponseContext | void) | undefined; onSuccess?: ((context: _better_fetch_fetch.SuccessContext) => Promise | void) | undefined; onError?: ((context: _better_fetch_fetch.ErrorContext) => Promise | void) | undefined; onRetry?: ((response: _better_fetch_fetch.ResponseContext) => Promise | void) | undefined; hookOptions?: { cloneResponse?: boolean; } | undefined; timeout?: number | undefined; customFetchImpl?: _better_fetch_fetch.FetchEsque | undefined; plugins?: _better_fetch_fetch.BetterFetchPlugin[] | undefined; baseURL?: string | undefined; throw?: boolean | undefined; auth?: ({ type: "Bearer"; token: string | Promise | (() => string | Promise | undefined) | undefined; } | { type: "Basic"; username: string | (() => string | undefined) | undefined; password: string | (() => string | undefined) | undefined; } | { type: "Custom"; prefix: string | (() => string | undefined) | undefined; value: string | (() => string | undefined) | undefined; }) | undefined; body?: (Partial<{ sessionToken: string; }> & Record) | undefined; query?: (Partial> & Record) | undefined; params?: Record | undefined; duplex?: "full" | "half" | undefined; jsonParser?: ((text: string) => Promise | any) | undefined; retry?: _better_fetch_fetch.RetryOptions | undefined; retryAttempt?: number | undefined; output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined; errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined; disableValidation?: boolean | undefined; }>(data_0: better_auth.Prettify<{ sessionToken: string; } & { fetchOptions?: FetchOptions | undefined; }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{ status: boolean; }, { code?: string; message?: string; }, FetchOptions["throw"] extends true ? true : false>>; }; } & { signIn: { social: >(context: _better_fetch_fetch.RequestContext) => Promise<_better_fetch_fetch.RequestContext | void> | _better_fetch_fetch.RequestContext | void) | undefined; onResponse?: ((context: _better_fetch_fetch.ResponseContext) => Promise | Response | _better_fetch_fetch.ResponseContext | void) | undefined; onSuccess?: ((context: _better_fetch_fetch.SuccessContext) => Promise | void) | undefined; onError?: ((context: _better_fetch_fetch.ErrorContext) => Promise | void) | undefined; onRetry?: ((response: _better_fetch_fetch.ResponseContext) => Promise | void) | undefined; hookOptions?: { cloneResponse?: boolean; } | undefined; timeout?: number | undefined; customFetchImpl?: _better_fetch_fetch.FetchEsque | undefined; plugins?: _better_fetch_fetch.BetterFetchPlugin[] | undefined; baseURL?: string | undefined; throw?: boolean | undefined; auth?: ({ type: "Bearer"; token: string | Promise | (() => string | Promise | undefined) | undefined; } | { type: "Basic"; username: string | (() => string | undefined) | undefined; password: string | (() => string | undefined) | undefined; } | { type: "Custom"; prefix: string | (() => string | undefined) | undefined; value: string | (() => string | undefined) | undefined; }) | undefined; body?: (Partial<{ provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "huggingface" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "vk" | "zoom" | (string & {}); callbackURL?: string | undefined; newUserCallbackURL?: string | undefined; errorCallbackURL?: string | undefined; disableRedirect?: boolean | undefined; idToken?: { token: string; nonce?: string | undefined; accessToken?: string | undefined; refreshToken?: string | undefined; expiresAt?: number | undefined; } | undefined; scopes?: string[] | undefined; requestSignUp?: boolean | undefined; loginHint?: string | undefined; }> & Record) | undefined; query?: (Partial> & Record) | undefined; params?: Record | undefined; duplex?: "full" | "half" | undefined; jsonParser?: ((text: string) => Promise | any) | undefined; retry?: _better_fetch_fetch.RetryOptions | undefined; retryAttempt?: number | undefined; output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined; errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined; disableValidation?: boolean | undefined; }>(data_0: better_auth.Prettify<{ provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "huggingface" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "vk" | "zoom" | (string & {}); callbackURL?: string | undefined; newUserCallbackURL?: string | undefined; errorCallbackURL?: string | undefined; disableRedirect?: boolean | undefined; idToken?: { token: string; nonce?: string | undefined; accessToken?: string | undefined; refreshToken?: string | undefined; expiresAt?: number | undefined; } | undefined; scopes?: string[] | undefined; requestSignUp?: boolean | undefined; loginHint?: string | undefined; } & { fetchOptions?: FetchOptions | undefined; }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse, { code?: string; message?: string; }, FetchOptions["throw"] extends true ? true : false>>; }; } & { getSession: >(context: _better_fetch_fetch.RequestContext) => Promise<_better_fetch_fetch.RequestContext | void> | _better_fetch_fetch.RequestContext | void) | undefined; onResponse?: ((context: _better_fetch_fetch.ResponseContext) => Promise | Response | _better_fetch_fetch.ResponseContext | void) | undefined; onSuccess?: ((context: _better_fetch_fetch.SuccessContext) => Promise | void) | undefined; onError?: ((context: _better_fetch_fetch.ErrorContext) => Promise | void) | undefined; onRetry?: ((response: _better_fetch_fetch.ResponseContext) => Promise | void) | undefined; hookOptions?: { cloneResponse?: boolean; } | undefined; timeout?: number | undefined; customFetchImpl?: _better_fetch_fetch.FetchEsque | undefined; plugins?: _better_fetch_fetch.BetterFetchPlugin[] | undefined; baseURL?: string | undefined; throw?: boolean | undefined; auth?: ({ type: "Bearer"; token: string | Promise | (() => string | Promise | undefined) | undefined; } | { type: "Basic"; username: string | (() => string | undefined) | undefined; password: string | (() => string | undefined) | undefined; } | { type: "Custom"; prefix: string | (() => string | undefined) | undefined; value: string | (() => string | undefined) | undefined; }) | undefined; body?: undefined; query?: (Partial<{ disableCookieCache?: string | boolean | undefined; disableRefresh?: string | boolean | undefined; }> & Record) | undefined; params?: Record | undefined; duplex?: "full" | "half" | undefined; jsonParser?: ((text: string) => Promise | any) | undefined; retry?: _better_fetch_fetch.RetryOptions | undefined; retryAttempt?: number | undefined; output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined; errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined; disableValidation?: boolean | undefined; }>(data_0?: better_auth.Prettify<{ query?: { disableCookieCache?: string | boolean | undefined; disableRefresh?: string | boolean | undefined; } | undefined; fetchOptions?: FetchOptions | undefined; }> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{ user: { id: string; name: string; emailVerified: boolean; email: string; createdAt: Date; updatedAt: Date; image?: string | null | undefined | undefined; }; session: { id: string; token: string; userId: string; expiresAt: Date; createdAt: Date; updatedAt: Date; ipAddress?: string | null | undefined | undefined; userAgent?: string | null | undefined | undefined; }; } | null, { code?: string; message?: string; }, FetchOptions["throw"] extends true ? true : false>>; } & { signOut: >(context: _better_fetch_fetch.RequestContext) => Promise<_better_fetch_fetch.RequestContext | void> | _better_fetch_fetch.RequestContext | void) | undefined; onResponse?: ((context: _better_fetch_fetch.ResponseContext) => Promise | Response | _better_fetch_fetch.ResponseContext | void) | undefined; onSuccess?: ((context: _better_fetch_fetch.SuccessContext) => Promise | void) | undefined; onError?: ((context: _better_fetch_fetch.ErrorContext) => Promise | void) | undefined; onRetry?: ((response: _better_fetch_fetch.ResponseContext) => Promise | void) | undefined; hookOptions?: { cloneResponse?: boolean; } | undefined; timeout?: number | undefined; customFetchImpl?: _better_fetch_fetch.FetchEsque | undefined; plugins?: _better_fetch_fetch.BetterFetchPlugin[] | undefined; baseURL?: string | undefined; throw?: boolean | undefined; auth?: ({ type: "Bearer"; token: string | Promise | (() => string | Promise | undefined) | undefined; } | { type: "Basic"; username: string | (() => string | undefined) | undefined; password: string | (() => string | undefined) | undefined; } | { type: "Custom"; prefix: string | (() => string | undefined) | undefined; value: string | (() => string | undefined) | undefined; }) | undefined; body?: undefined; query?: (Partial> & Record) | undefined; params?: Record | undefined; duplex?: "full" | "half" | undefined; jsonParser?: ((text: string) => Promise | any) | undefined; retry?: _better_fetch_fetch.RetryOptions | undefined; retryAttempt?: number | undefined; output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined; errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined; disableValidation?: boolean | undefined; }>(data_0?: better_auth.Prettify<{ query?: Record | undefined; fetchOptions?: FetchOptions | undefined; }> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{ success: boolean; }, { code?: string; message?: string; }, FetchOptions["throw"] extends true ? true : false>>; } & { signIn: { email: >(context: _better_fetch_fetch.RequestContext) => Promise<_better_fetch_fetch.RequestContext | void> | _better_fetch_fetch.RequestContext | void) | undefined; onResponse?: ((context: _better_fetch_fetch.ResponseContext) => Promise | Response | _better_fetch_fetch.ResponseContext | void) | undefined; onSuccess?: ((context: _better_fetch_fetch.SuccessContext) => Promise | void) | undefined; onError?: ((context: _better_fetch_fetch.ErrorContext) => Promise | void) | undefined; onRetry?: ((response: _better_fetch_fetch.ResponseContext) => Promise | void) | undefined; hookOptions?: { cloneResponse?: boolean; } | undefined; timeout?: number | undefined; customFetchImpl?: _better_fetch_fetch.FetchEsque | undefined; plugins?: _better_fetch_fetch.BetterFetchPlugin[] | undefined; baseURL?: string | undefined; throw?: boolean | undefined; auth?: ({ type: "Bearer"; token: string | Promise | (() => string | Promise | undefined) | undefined; } | { type: "Basic"; username: string | (() => string | undefined) | undefined; password: string | (() => string | undefined) | undefined; } | { type: "Custom"; prefix: string | (() => string | undefined) | undefined; value: string | (() => string | undefined) | undefined; }) | undefined; body?: (Partial<{ email: string; password: string; callbackURL?: string | undefined; rememberMe?: boolean | undefined; }> & Record) | undefined; query?: (Partial> & Record) | undefined; params?: Record | undefined; duplex?: "full" | "half" | undefined; jsonParser?: ((text: string) => Promise | any) | undefined; retry?: _better_fetch_fetch.RetryOptions | undefined; retryAttempt?: number | undefined; output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined; errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined; disableValidation?: boolean | undefined; }>(data_0: better_auth.Prettify<{ email: string; password: string; callbackURL?: string | undefined; rememberMe?: boolean | undefined; } & { fetchOptions?: FetchOptions | undefined; }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{ redirect: boolean; token: string; url: string | undefined; user: { id: string; email: string; name: string; image: string | null | undefined; emailVerified: boolean; createdAt: Date; updatedAt: Date; }; }, { code?: string; message?: string; }, FetchOptions["throw"] extends true ? true : false>>; }; } & { forgetPassword: >(context: _better_fetch_fetch.RequestContext) => Promise<_better_fetch_fetch.RequestContext | void> | _better_fetch_fetch.RequestContext | void) | undefined; onResponse?: ((context: _better_fetch_fetch.ResponseContext) => Promise | Response | _better_fetch_fetch.ResponseContext | void) | undefined; onSuccess?: ((context: _better_fetch_fetch.SuccessContext) => Promise | void) | undefined; onError?: ((context: _better_fetch_fetch.ErrorContext) => Promise | void) | undefined; onRetry?: ((response: _better_fetch_fetch.ResponseContext) => Promise | void) | undefined; hookOptions?: { cloneResponse?: boolean; } | undefined; timeout?: number | undefined; customFetchImpl?: _better_fetch_fetch.FetchEsque | undefined; plugins?: _better_fetch_fetch.BetterFetchPlugin[] | undefined; baseURL?: string | undefined; throw?: boolean | undefined; auth?: ({ type: "Bearer"; token: string | Promise | (() => string | Promise | undefined) | undefined; } | { type: "Basic"; username: string | (() => string | undefined) | undefined; password: string | (() => string | undefined) | undefined; } | { type: "Custom"; prefix: string | (() => string | undefined) | undefined; value: string | (() => string | undefined) | undefined; }) | undefined; body?: (Partial<{ email: string; redirectTo?: string | undefined; }> & Record) | undefined; query?: (Partial> & Record) | undefined; params?: Record | undefined; duplex?: "full" | "half" | undefined; jsonParser?: ((text: string) => Promise | any) | undefined; retry?: _better_fetch_fetch.RetryOptions | undefined; retryAttempt?: number | undefined; output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined; errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined; disableValidation?: boolean | undefined; }>(data_0: better_auth.Prettify<{ email: string; redirectTo?: string | undefined; } & { fetchOptions?: FetchOptions | undefined; }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{ status: boolean; }, { code?: string; message?: string; }, FetchOptions["throw"] extends true ? true : false>>; } & { resetPassword: >(context: _better_fetch_fetch.RequestContext) => Promise<_better_fetch_fetch.RequestContext | void> | _better_fetch_fetch.RequestContext | void) | undefined; onResponse?: ((context: _better_fetch_fetch.ResponseContext) => Promise | Response | _better_fetch_fetch.ResponseContext | void) | undefined; onSuccess?: ((context: _better_fetch_fetch.SuccessContext) => Promise | void) | undefined; onError?: ((context: _better_fetch_fetch.ErrorContext) => Promise | void) | undefined; onRetry?: ((response: _better_fetch_fetch.ResponseContext) => Promise | void) | undefined; hookOptions?: { cloneResponse?: boolean; } | undefined; timeout?: number | undefined; customFetchImpl?: _better_fetch_fetch.FetchEsque | undefined; plugins?: _better_fetch_fetch.BetterFetchPlugin[] | undefined; baseURL?: string | undefined; throw?: boolean | undefined; auth?: ({ type: "Bearer"; token: string | Promise | (() => string | Promise | undefined) | undefined; } | { type: "Basic"; username: string | (() => string | undefined) | undefined; password: string | (() => string | undefined) | undefined; } | { type: "Custom"; prefix: string | (() => string | undefined) | undefined; value: string | (() => string | undefined) | undefined; }) | undefined; body?: (Partial<{ newPassword: string; token?: string | undefined; }> & Record) | undefined; query?: (Partial<{ token?: string | undefined; }> & Record) | undefined; params?: Record | undefined; duplex?: "full" | "half" | undefined; jsonParser?: ((text: string) => Promise | any) | undefined; retry?: _better_fetch_fetch.RetryOptions | undefined; retryAttempt?: number | undefined; output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined; errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined; disableValidation?: boolean | undefined; }>(data_0: better_auth.Prettify<{ newPassword: string; token?: string | undefined; } & { fetchOptions?: FetchOptions | undefined; }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{ status: boolean; }, { code?: string; message?: string; }, FetchOptions["throw"] extends true ? true : false>>; } & { verifyEmail: >(context: _better_fetch_fetch.RequestContext) => Promise<_better_fetch_fetch.RequestContext | void> | _better_fetch_fetch.RequestContext | void) | undefined; onResponse?: ((context: _better_fetch_fetch.ResponseContext) => Promise | Response | _better_fetch_fetch.ResponseContext | void) | undefined; onSuccess?: ((context: _better_fetch_fetch.SuccessContext) => Promise | void) | undefined; onError?: ((context: _better_fetch_fetch.ErrorContext) => Promise | void) | undefined; onRetry?: ((response: _better_fetch_fetch.ResponseContext) => Promise | void) | undefined; hookOptions?: { cloneResponse?: boolean; } | undefined; timeout?: number | undefined; customFetchImpl?: _better_fetch_fetch.FetchEsque | undefined; plugins?: _better_fetch_fetch.BetterFetchPlugin[] | undefined; baseURL?: string | undefined; throw?: boolean | undefined; auth?: ({ type: "Bearer"; token: string | Promise | (() => string | Promise | undefined) | undefined; } | { type: "Basic"; username: string | (() => string | undefined) | undefined; password: string | (() => string | undefined) | undefined; } | { type: "Custom"; prefix: string | (() => string | undefined) | undefined; value: string | (() => string | undefined) | undefined; }) | undefined; body?: undefined; query?: (Partial<{ token: string; callbackURL?: string | undefined; }> & Record) | undefined; params?: Record | undefined; duplex?: "full" | "half" | undefined; jsonParser?: ((text: string) => Promise | any) | undefined; retry?: _better_fetch_fetch.RetryOptions | undefined; retryAttempt?: number | undefined; output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined; errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined; disableValidation?: boolean | undefined; }>(data_0: better_auth.Prettify<{ query: { token: string; callbackURL?: string | undefined; }; fetchOptions?: FetchOptions | undefined; }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse, { code?: string; message?: string; }, FetchOptions["throw"] extends true ? true : false>>; } & { sendVerificationEmail: >(context: _better_fetch_fetch.RequestContext) => Promise<_better_fetch_fetch.RequestContext | void> | _better_fetch_fetch.RequestContext | void) | undefined; onResponse?: ((context: _better_fetch_fetch.ResponseContext) => Promise | Response | _better_fetch_fetch.ResponseContext | void) | undefined; onSuccess?: ((context: _better_fetch_fetch.SuccessContext) => Promise | void) | undefined; onError?: ((context: _better_fetch_fetch.ErrorContext) => Promise | void) | undefined; onRetry?: ((response: _better_fetch_fetch.ResponseContext) => Promise | void) | undefined; hookOptions?: { cloneResponse?: boolean; } | undefined; timeout?: number | undefined; customFetchImpl?: _better_fetch_fetch.FetchEsque | undefined; plugins?: _better_fetch_fetch.BetterFetchPlugin[] | undefined; baseURL?: string | undefined; throw?: boolean | undefined; auth?: ({ type: "Bearer"; token: string | Promise | (() => string | Promise | undefined) | undefined; } | { type: "Basic"; username: string | (() => string | undefined) | undefined; password: string | (() => string | undefined) | undefined; } | { type: "Custom"; prefix: string | (() => string | undefined) | undefined; value: string | (() => string | undefined) | undefined; }) | undefined; body?: (Partial<{ email: string; callbackURL?: string | undefined; }> & Record) | undefined; query?: (Partial> & Record) | undefined; params?: Record | undefined; duplex?: "full" | "half" | undefined; jsonParser?: ((text: string) => Promise | any) | undefined; retry?: _better_fetch_fetch.RetryOptions | undefined; retryAttempt?: number | undefined; output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined; errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined; disableValidation?: boolean | undefined; }>(data_0: better_auth.Prettify<{ email: string; callbackURL?: string | undefined; } & { fetchOptions?: FetchOptions | undefined; }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{ status: boolean; }, { code?: string; message?: string; }, FetchOptions["throw"] extends true ? true : false>>; } & { changeEmail: >(context: _better_fetch_fetch.RequestContext) => Promise<_better_fetch_fetch.RequestContext | void> | _better_fetch_fetch.RequestContext | void) | undefined; onResponse?: ((context: _better_fetch_fetch.ResponseContext) => Promise | Response | _better_fetch_fetch.ResponseContext | void) | undefined; onSuccess?: ((context: _better_fetch_fetch.SuccessContext) => Promise | void) | undefined; onError?: ((context: _better_fetch_fetch.ErrorContext) => Promise | void) | undefined; onRetry?: ((response: _better_fetch_fetch.ResponseContext) => Promise | void) | undefined; hookOptions?: { cloneResponse?: boolean; } | undefined; timeout?: number | undefined; customFetchImpl?: _better_fetch_fetch.FetchEsque | undefined; plugins?: _better_fetch_fetch.BetterFetchPlugin[] | undefined; baseURL?: string | undefined; throw?: boolean | undefined; auth?: ({ type: "Bearer"; token: string | Promise | (() => string | Promise | undefined) | undefined; } | { type: "Basic"; username: string | (() => string | undefined) | undefined; password: string | (() => string | undefined) | undefined; } | { type: "Custom"; prefix: string | (() => string | undefined) | undefined; value: string | (() => string | undefined) | undefined; }) | undefined; body?: (Partial<{ newEmail: string; callbackURL?: string | undefined; }> & Record) | undefined; query?: (Partial> & Record) | undefined; params?: Record | undefined; duplex?: "full" | "half" | undefined; jsonParser?: ((text: string) => Promise | any) | undefined; retry?: _better_fetch_fetch.RetryOptions | undefined; retryAttempt?: number | undefined; output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined; errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined; disableValidation?: boolean | undefined; }>(data_0: better_auth.Prettify<{ newEmail: string; callbackURL?: string | undefined; } & { fetchOptions?: FetchOptions | undefined; }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{ status: boolean; }, { code?: string; message?: string; }, FetchOptions["throw"] extends true ? true : false>>; } & { changePassword: >(context: _better_fetch_fetch.RequestContext) => Promise<_better_fetch_fetch.RequestContext | void> | _better_fetch_fetch.RequestContext | void) | undefined; onResponse?: ((context: _better_fetch_fetch.ResponseContext) => Promise | Response | _better_fetch_fetch.ResponseContext | void) | undefined; onSuccess?: ((context: _better_fetch_fetch.SuccessContext) => Promise | void) | undefined; onError?: ((context: _better_fetch_fetch.ErrorContext) => Promise | void) | undefined; onRetry?: ((response: _better_fetch_fetch.ResponseContext) => Promise | void) | undefined; hookOptions?: { cloneResponse?: boolean; } | undefined; timeout?: number | undefined; customFetchImpl?: _better_fetch_fetch.FetchEsque | undefined; plugins?: _better_fetch_fetch.BetterFetchPlugin[] | undefined; baseURL?: string | undefined; throw?: boolean | undefined; auth?: ({ type: "Bearer"; token: string | Promise | (() => string | Promise | undefined) | undefined; } | { type: "Basic"; username: string | (() => string | undefined) | undefined; password: string | (() => string | undefined) | undefined; } | { type: "Custom"; prefix: string | (() => string | undefined) | undefined; value: string | (() => string | undefined) | undefined; }) | undefined; body?: (Partial<{ newPassword: string; currentPassword: string; revokeOtherSessions?: boolean | undefined; }> & Record) | undefined; query?: (Partial> & Record) | undefined; params?: Record | undefined; duplex?: "full" | "half" | undefined; jsonParser?: ((text: string) => Promise | any) | undefined; retry?: _better_fetch_fetch.RetryOptions | undefined; retryAttempt?: number | undefined; output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined; errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined; disableValidation?: boolean | undefined; }>(data_0: better_auth.Prettify<{ newPassword: string; currentPassword: string; revokeOtherSessions?: boolean | undefined; } & { fetchOptions?: FetchOptions | undefined; }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{ token: string | null; user: { id: string; email: string; name: string; image: string | null | undefined; emailVerified: boolean; createdAt: Date; updatedAt: Date; }; }, { code?: string; message?: string; }, FetchOptions["throw"] extends true ? true : false>>; } & { deleteUser: >(context: _better_fetch_fetch.RequestContext) => Promise<_better_fetch_fetch.RequestContext | void> | _better_fetch_fetch.RequestContext | void) | undefined; onResponse?: ((context: _better_fetch_fetch.ResponseContext) => Promise | Response | _better_fetch_fetch.ResponseContext | void) | undefined; onSuccess?: ((context: _better_fetch_fetch.SuccessContext) => Promise | void) | undefined; onError?: ((context: _better_fetch_fetch.ErrorContext) => Promise | void) | undefined; onRetry?: ((response: _better_fetch_fetch.ResponseContext) => Promise | void) | undefined; hookOptions?: { cloneResponse?: boolean; } | undefined; timeout?: number | undefined; customFetchImpl?: _better_fetch_fetch.FetchEsque | undefined; plugins?: _better_fetch_fetch.BetterFetchPlugin[] | undefined; baseURL?: string | undefined; throw?: boolean | undefined; auth?: ({ type: "Bearer"; token: string | Promise | (() => string | Promise | undefined) | undefined; } | { type: "Basic"; username: string | (() => string | undefined) | undefined; password: string | (() => string | undefined) | undefined; } | { type: "Custom"; prefix: string | (() => string | undefined) | undefined; value: string | (() => string | undefined) | undefined; }) | undefined; body?: (Partial<{ callbackURL?: string | undefined; token?: string | undefined; password?: string | undefined; }> & Record) | undefined; query?: (Partial> & Record) | undefined; params?: Record | undefined; duplex?: "full" | "half" | undefined; jsonParser?: ((text: string) => Promise | any) | undefined; retry?: _better_fetch_fetch.RetryOptions | undefined; retryAttempt?: number | undefined; output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined; errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined; disableValidation?: boolean | undefined; }>(data_0?: better_auth.Prettify<{ callbackURL?: string | undefined; token?: string | undefined; password?: string | undefined; } & { fetchOptions?: FetchOptions | undefined; }> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{ success: boolean; message: string; }, { code?: string; message?: string; }, FetchOptions["throw"] extends true ? true : false>>; } & { resetPassword: { ":token": >(context: _better_fetch_fetch.RequestContext) => Promise<_better_fetch_fetch.RequestContext | void> | _better_fetch_fetch.RequestContext | void) | undefined; onResponse?: ((context: _better_fetch_fetch.ResponseContext) => Promise | Response | _better_fetch_fetch.ResponseContext | void) | undefined; onSuccess?: ((context: _better_fetch_fetch.SuccessContext) => Promise | void) | undefined; onError?: ((context: _better_fetch_fetch.ErrorContext) => Promise | void) | undefined; onRetry?: ((response: _better_fetch_fetch.ResponseContext) => Promise | void) | undefined; hookOptions?: { cloneResponse?: boolean; } | undefined; timeout?: number | undefined; customFetchImpl?: _better_fetch_fetch.FetchEsque | undefined; plugins?: _better_fetch_fetch.BetterFetchPlugin[] | undefined; baseURL?: string | undefined; throw?: boolean | undefined; auth?: ({ type: "Bearer"; token: string | Promise | (() => string | Promise | undefined) | undefined; } | { type: "Basic"; username: string | (() => string | undefined) | undefined; password: string | (() => string | undefined) | undefined; } | { type: "Custom"; prefix: string | (() => string | undefined) | undefined; value: string | (() => string | undefined) | undefined; }) | undefined; body?: undefined; query?: (Partial<{ callbackURL: string; }> & Record) | undefined; params?: { token: string; } | undefined; duplex?: "full" | "half" | undefined; jsonParser?: ((text: string) => Promise | any) | undefined; retry?: _better_fetch_fetch.RetryOptions | undefined; retryAttempt?: number | undefined; output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined; errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined; disableValidation?: boolean | undefined; }>(data_0: better_auth.Prettify<{ query: { callbackURL: string; }; fetchOptions?: FetchOptions | undefined; }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse>; }; } & { requestPasswordReset: >(context: _better_fetch_fetch.RequestContext) => Promise<_better_fetch_fetch.RequestContext | void> | _better_fetch_fetch.RequestContext | void) | undefined; onResponse?: ((context: _better_fetch_fetch.ResponseContext) => Promise | Response | _better_fetch_fetch.ResponseContext | void) | undefined; onSuccess?: ((context: _better_fetch_fetch.SuccessContext) => Promise | void) | undefined; onError?: ((context: _better_fetch_fetch.ErrorContext) => Promise | void) | undefined; onRetry?: ((response: _better_fetch_fetch.ResponseContext) => Promise | void) | undefined; hookOptions?: { cloneResponse?: boolean; } | undefined; timeout?: number | undefined; customFetchImpl?: _better_fetch_fetch.FetchEsque | undefined; plugins?: _better_fetch_fetch.BetterFetchPlugin[] | undefined; baseURL?: string | undefined; throw?: boolean | undefined; auth?: ({ type: "Bearer"; token: string | Promise | (() => string | Promise | undefined) | undefined; } | { type: "Basic"; username: string | (() => string | undefined) | undefined; password: string | (() => string | undefined) | undefined; } | { type: "Custom"; prefix: string | (() => string | undefined) | undefined; value: string | (() => string | undefined) | undefined; }) | undefined; body?: (Partial<{ email: string; redirectTo?: string | undefined; }> & Record) | undefined; query?: (Partial> & Record) | undefined; params?: Record | undefined; duplex?: "full" | "half" | undefined; jsonParser?: ((text: string) => Promise | any) | undefined; retry?: _better_fetch_fetch.RetryOptions | undefined; retryAttempt?: number | undefined; output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined; errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined; disableValidation?: boolean | undefined; }>(data_0: better_auth.Prettify<{ email: string; redirectTo?: string | undefined; } & { fetchOptions?: FetchOptions | undefined; }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{ status: boolean; }, { code?: string; message?: string; }, FetchOptions["throw"] extends true ? true : false>>; } & { resetPassword: { ":token": >(context: _better_fetch_fetch.RequestContext) => Promise<_better_fetch_fetch.RequestContext | void> | _better_fetch_fetch.RequestContext | void) | undefined; onResponse?: ((context: _better_fetch_fetch.ResponseContext) => Promise | Response | _better_fetch_fetch.ResponseContext | void) | undefined; onSuccess?: ((context: _better_fetch_fetch.SuccessContext) => Promise | void) | undefined; onError?: ((context: _better_fetch_fetch.ErrorContext) => Promise | void) | undefined; onRetry?: ((response: _better_fetch_fetch.ResponseContext) => Promise | void) | undefined; hookOptions?: { cloneResponse?: boolean; } | undefined; timeout?: number | undefined; customFetchImpl?: _better_fetch_fetch.FetchEsque | undefined; plugins?: _better_fetch_fetch.BetterFetchPlugin[] | undefined; baseURL?: string | undefined; throw?: boolean | undefined; auth?: ({ type: "Bearer"; token: string | Promise | (() => string | Promise | undefined) | undefined; } | { type: "Basic"; username: string | (() => string | undefined) | undefined; password: string | (() => string | undefined) | undefined; } | { type: "Custom"; prefix: string | (() => string | undefined) | undefined; value: string | (() => string | undefined) | undefined; }) | undefined; body?: undefined; query?: (Partial<{ callbackURL: string; }> & Record) | undefined; params?: { token: string; } | undefined; duplex?: "full" | "half" | undefined; jsonParser?: ((text: string) => Promise | any) | undefined; retry?: _better_fetch_fetch.RetryOptions | undefined; retryAttempt?: number | undefined; output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined; errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined; disableValidation?: boolean | undefined; }>(data_0: better_auth.Prettify<{ query: { callbackURL: string; }; fetchOptions?: FetchOptions | undefined; }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse>; }; } & { revokeSession: >(context: _better_fetch_fetch.RequestContext) => Promise<_better_fetch_fetch.RequestContext | void> | _better_fetch_fetch.RequestContext | void) | undefined; onResponse?: ((context: _better_fetch_fetch.ResponseContext) => Promise | Response | _better_fetch_fetch.ResponseContext | void) | undefined; onSuccess?: ((context: _better_fetch_fetch.SuccessContext) => Promise | void) | undefined; onError?: ((context: _better_fetch_fetch.ErrorContext) => Promise | void) | undefined; onRetry?: ((response: _better_fetch_fetch.ResponseContext) => Promise | void) | undefined; hookOptions?: { cloneResponse?: boolean; } | undefined; timeout?: number | undefined; customFetchImpl?: _better_fetch_fetch.FetchEsque | undefined; plugins?: _better_fetch_fetch.BetterFetchPlugin[] | undefined; baseURL?: string | undefined; throw?: boolean | undefined; auth?: ({ type: "Bearer"; token: string | Promise | (() => string | Promise | undefined) | undefined; } | { type: "Basic"; username: string | (() => string | undefined) | undefined; password: string | (() => string | undefined) | undefined; } | { type: "Custom"; prefix: string | (() => string | undefined) | undefined; value: string | (() => string | undefined) | undefined; }) | undefined; body?: (Partial<{ token: string; }> & Record) | undefined; query?: (Partial> & Record) | undefined; params?: Record | undefined; duplex?: "full" | "half" | undefined; jsonParser?: ((text: string) => Promise | any) | undefined; retry?: _better_fetch_fetch.RetryOptions | undefined; retryAttempt?: number | undefined; output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined; errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined; disableValidation?: boolean | undefined; }>(data_0: better_auth.Prettify<{ token: string; } & { fetchOptions?: FetchOptions | undefined; }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{ status: boolean; }, { code?: string; message?: string; }, FetchOptions["throw"] extends true ? true : false>>; } & { revokeSessions: >(context: _better_fetch_fetch.RequestContext) => Promise<_better_fetch_fetch.RequestContext | void> | _better_fetch_fetch.RequestContext | void) | undefined; onResponse?: ((context: _better_fetch_fetch.ResponseContext) => Promise | Response | _better_fetch_fetch.ResponseContext | void) | undefined; onSuccess?: ((context: _better_fetch_fetch.SuccessContext) => Promise | void) | undefined; onError?: ((context: _better_fetch_fetch.ErrorContext) => Promise | void) | undefined; onRetry?: ((response: _better_fetch_fetch.ResponseContext) => Promise | void) | undefined; hookOptions?: { cloneResponse?: boolean; } | undefined; timeout?: number | undefined; customFetchImpl?: _better_fetch_fetch.FetchEsque | undefined; plugins?: _better_fetch_fetch.BetterFetchPlugin[] | undefined; baseURL?: string | undefined; throw?: boolean | undefined; auth?: ({ type: "Bearer"; token: string | Promise | (() => string | Promise | undefined) | undefined; } | { type: "Basic"; username: string | (() => string | undefined) | undefined; password: string | (() => string | undefined) | undefined; } | { type: "Custom"; prefix: string | (() => string | undefined) | undefined; value: string | (() => string | undefined) | undefined; }) | undefined; body?: undefined; query?: (Partial> & Record) | undefined; params?: Record | undefined; duplex?: "full" | "half" | undefined; jsonParser?: ((text: string) => Promise | any) | undefined; retry?: _better_fetch_fetch.RetryOptions | undefined; retryAttempt?: number | undefined; output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined; errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined; disableValidation?: boolean | undefined; }>(data_0?: better_auth.Prettify<{ query?: Record | undefined; fetchOptions?: FetchOptions | undefined; }> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{ status: boolean; }, { code?: string; message?: string; }, FetchOptions["throw"] extends true ? true : false>>; } & { revokeOtherSessions: >(context: _better_fetch_fetch.RequestContext) => Promise<_better_fetch_fetch.RequestContext | void> | _better_fetch_fetch.RequestContext | void) | undefined; onResponse?: ((context: _better_fetch_fetch.ResponseContext) => Promise | Response | _better_fetch_fetch.ResponseContext | void) | undefined; onSuccess?: ((context: _better_fetch_fetch.SuccessContext) => Promise | void) | undefined; onError?: ((context: _better_fetch_fetch.ErrorContext) => Promise | void) | undefined; onRetry?: ((response: _better_fetch_fetch.ResponseContext) => Promise | void) | undefined; hookOptions?: { cloneResponse?: boolean; } | undefined; timeout?: number | undefined; customFetchImpl?: _better_fetch_fetch.FetchEsque | undefined; plugins?: _better_fetch_fetch.BetterFetchPlugin[] | undefined; baseURL?: string | undefined; throw?: boolean | undefined; auth?: ({ type: "Bearer"; token: string | Promise | (() => string | Promise | undefined) | undefined; } | { type: "Basic"; username: string | (() => string | undefined) | undefined; password: string | (() => string | undefined) | undefined; } | { type: "Custom"; prefix: string | (() => string | undefined) | undefined; value: string | (() => string | undefined) | undefined; }) | undefined; body?: undefined; query?: (Partial> & Record) | undefined; params?: Record | undefined; duplex?: "full" | "half" | undefined; jsonParser?: ((text: string) => Promise | any) | undefined; retry?: _better_fetch_fetch.RetryOptions | undefined; retryAttempt?: number | undefined; output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined; errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined; disableValidation?: boolean | undefined; }>(data_0?: better_auth.Prettify<{ query?: Record | undefined; fetchOptions?: FetchOptions | undefined; }> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{ status: boolean; }, { code?: string; message?: string; }, FetchOptions["throw"] extends true ? true : false>>; } & { linkSocial: >(context: _better_fetch_fetch.RequestContext) => Promise<_better_fetch_fetch.RequestContext | void> | _better_fetch_fetch.RequestContext | void) | undefined; onResponse?: ((context: _better_fetch_fetch.ResponseContext) => Promise | Response | _better_fetch_fetch.ResponseContext | void) | undefined; onSuccess?: ((context: _better_fetch_fetch.SuccessContext) => Promise | void) | undefined; onError?: ((context: _better_fetch_fetch.ErrorContext) => Promise | void) | undefined; onRetry?: ((response: _better_fetch_fetch.ResponseContext) => Promise | void) | undefined; hookOptions?: { cloneResponse?: boolean; } | undefined; timeout?: number | undefined; customFetchImpl?: _better_fetch_fetch.FetchEsque | undefined; plugins?: _better_fetch_fetch.BetterFetchPlugin[] | undefined; baseURL?: string | undefined; throw?: boolean | undefined; auth?: ({ type: "Bearer"; token: string | Promise | (() => string | Promise | undefined) | undefined; } | { type: "Basic"; username: string | (() => string | undefined) | undefined; password: string | (() => string | undefined) | undefined; } | { type: "Custom"; prefix: string | (() => string | undefined) | undefined; value: string | (() => string | undefined) | undefined; }) | undefined; body?: (Partial<{ provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "huggingface" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "vk" | "zoom" | (string & {}); callbackURL?: string | undefined; errorCallbackURL?: string | undefined; idToken?: { token: string; nonce?: string | undefined; accessToken?: string | undefined; refreshToken?: string | undefined; scopes?: string[] | undefined; } | undefined; scopes?: string[] | undefined; requestSignUp?: boolean | undefined; }> & Record) | undefined; query?: (Partial> & Record) | undefined; params?: Record | undefined; duplex?: "full" | "half" | undefined; jsonParser?: ((text: string) => Promise | any) | undefined; retry?: _better_fetch_fetch.RetryOptions | undefined; retryAttempt?: number | undefined; output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined; errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined; disableValidation?: boolean | undefined; }>(data_0: better_auth.Prettify<{ provider: "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "huggingface" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "vk" | "zoom" | (string & {}); callbackURL?: string | undefined; errorCallbackURL?: string | undefined; idToken?: { token: string; nonce?: string | undefined; accessToken?: string | undefined; refreshToken?: string | undefined; scopes?: string[] | undefined; } | undefined; scopes?: string[] | undefined; requestSignUp?: boolean | undefined; } & { fetchOptions?: FetchOptions | undefined; }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{ url: string; redirect: boolean; }, { code?: string; message?: string; }, FetchOptions["throw"] extends true ? true : false>>; } & { listAccounts: >(context: _better_fetch_fetch.RequestContext) => Promise<_better_fetch_fetch.RequestContext | void> | _better_fetch_fetch.RequestContext | void) | undefined; onResponse?: ((context: _better_fetch_fetch.ResponseContext) => Promise | Response | _better_fetch_fetch.ResponseContext | void) | undefined; onSuccess?: ((context: _better_fetch_fetch.SuccessContext) => Promise | void) | undefined; onError?: ((context: _better_fetch_fetch.ErrorContext) => Promise | void) | undefined; onRetry?: ((response: _better_fetch_fetch.ResponseContext) => Promise | void) | undefined; hookOptions?: { cloneResponse?: boolean; } | undefined; timeout?: number | undefined; customFetchImpl?: _better_fetch_fetch.FetchEsque | undefined; plugins?: _better_fetch_fetch.BetterFetchPlugin[] | undefined; baseURL?: string | undefined; throw?: boolean | undefined; auth?: ({ type: "Bearer"; token: string | Promise | (() => string | Promise | undefined) | undefined; } | { type: "Basic"; username: string | (() => string | undefined) | undefined; password: string | (() => string | undefined) | undefined; } | { type: "Custom"; prefix: string | (() => string | undefined) | undefined; value: string | (() => string | undefined) | undefined; }) | undefined; body?: undefined; query?: (Partial> & Record) | undefined; params?: Record | undefined; duplex?: "full" | "half" | undefined; jsonParser?: ((text: string) => Promise | any) | undefined; retry?: _better_fetch_fetch.RetryOptions | undefined; retryAttempt?: number | undefined; output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined; errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined; disableValidation?: boolean | undefined; }>(data_0?: better_auth.Prettify<{ query?: Record | undefined; fetchOptions?: FetchOptions | undefined; }> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{ id: string; provider: string; createdAt: Date; updatedAt: Date; accountId: string; scopes: string[]; }[], { code?: string; message?: string; }, FetchOptions["throw"] extends true ? true : false>>; } & { deleteUser: { callback: >(context: _better_fetch_fetch.RequestContext) => Promise<_better_fetch_fetch.RequestContext | void> | _better_fetch_fetch.RequestContext | void) | undefined; onResponse?: ((context: _better_fetch_fetch.ResponseContext) => Promise | Response | _better_fetch_fetch.ResponseContext | void) | undefined; onSuccess?: ((context: _better_fetch_fetch.SuccessContext) => Promise | void) | undefined; onError?: ((context: _better_fetch_fetch.ErrorContext) => Promise | void) | undefined; onRetry?: ((response: _better_fetch_fetch.ResponseContext) => Promise | void) | undefined; hookOptions?: { cloneResponse?: boolean; } | undefined; timeout?: number | undefined; customFetchImpl?: _better_fetch_fetch.FetchEsque | undefined; plugins?: _better_fetch_fetch.BetterFetchPlugin[] | undefined; baseURL?: string | undefined; throw?: boolean | undefined; auth?: ({ type: "Bearer"; token: string | Promise | (() => string | Promise | undefined) | undefined; } | { type: "Basic"; username: string | (() => string | undefined) | undefined; password: string | (() => string | undefined) | undefined; } | { type: "Custom"; prefix: string | (() => string | undefined) | undefined; value: string | (() => string | undefined) | undefined; }) | undefined; body?: undefined; query?: (Partial<{ token: string; callbackURL?: string | undefined; }> & Record) | undefined; params?: Record | undefined; duplex?: "full" | "half" | undefined; jsonParser?: ((text: string) => Promise | any) | undefined; retry?: _better_fetch_fetch.RetryOptions | undefined; retryAttempt?: number | undefined; output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined; errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined; disableValidation?: boolean | undefined; }>(data_0: better_auth.Prettify<{ query: { token: string; callbackURL?: string | undefined; }; fetchOptions?: FetchOptions | undefined; }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{ success: boolean; message: string; }, { code?: string; message?: string; }, FetchOptions["throw"] extends true ? true : false>>; }; } & { unlinkAccount: >(context: _better_fetch_fetch.RequestContext) => Promise<_better_fetch_fetch.RequestContext | void> | _better_fetch_fetch.RequestContext | void) | undefined; onResponse?: ((context: _better_fetch_fetch.ResponseContext) => Promise | Response | _better_fetch_fetch.ResponseContext | void) | undefined; onSuccess?: ((context: _better_fetch_fetch.SuccessContext) => Promise | void) | undefined; onError?: ((context: _better_fetch_fetch.ErrorContext) => Promise | void) | undefined; onRetry?: ((response: _better_fetch_fetch.ResponseContext) => Promise | void) | undefined; hookOptions?: { cloneResponse?: boolean; } | undefined; timeout?: number | undefined; customFetchImpl?: _better_fetch_fetch.FetchEsque | undefined; plugins?: _better_fetch_fetch.BetterFetchPlugin[] | undefined; baseURL?: string | undefined; throw?: boolean | undefined; auth?: ({ type: "Bearer"; token: string | Promise | (() => string | Promise | undefined) | undefined; } | { type: "Basic"; username: string | (() => string | undefined) | undefined; password: string | (() => string | undefined) | undefined; } | { type: "Custom"; prefix: string | (() => string | undefined) | undefined; value: string | (() => string | undefined) | undefined; }) | undefined; body?: (Partial<{ providerId: string; accountId?: string | undefined; }> & Record) | undefined; query?: (Partial> & Record) | undefined; params?: Record | undefined; duplex?: "full" | "half" | undefined; jsonParser?: ((text: string) => Promise | any) | undefined; retry?: _better_fetch_fetch.RetryOptions | undefined; retryAttempt?: number | undefined; output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined; errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined; disableValidation?: boolean | undefined; }>(data_0: better_auth.Prettify<{ providerId: string; accountId?: string | undefined; } & { fetchOptions?: FetchOptions | undefined; }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{ status: boolean; }, { code?: string; message?: string; }, FetchOptions["throw"] extends true ? true : false>>; } & { refreshToken: >(context: _better_fetch_fetch.RequestContext) => Promise<_better_fetch_fetch.RequestContext | void> | _better_fetch_fetch.RequestContext | void) | undefined; onResponse?: ((context: _better_fetch_fetch.ResponseContext) => Promise | Response | _better_fetch_fetch.ResponseContext | void) | undefined; onSuccess?: ((context: _better_fetch_fetch.SuccessContext) => Promise | void) | undefined; onError?: ((context: _better_fetch_fetch.ErrorContext) => Promise | void) | undefined; onRetry?: ((response: _better_fetch_fetch.ResponseContext) => Promise | void) | undefined; hookOptions?: { cloneResponse?: boolean; } | undefined; timeout?: number | undefined; customFetchImpl?: _better_fetch_fetch.FetchEsque | undefined; plugins?: _better_fetch_fetch.BetterFetchPlugin[] | undefined; baseURL?: string | undefined; throw?: boolean | undefined; auth?: ({ type: "Bearer"; token: string | Promise | (() => string | Promise | undefined) | undefined; } | { type: "Basic"; username: string | (() => string | undefined) | undefined; password: string | (() => string | undefined) | undefined; } | { type: "Custom"; prefix: string | (() => string | undefined) | undefined; value: string | (() => string | undefined) | undefined; }) | undefined; body?: (Partial<{ providerId: string; accountId?: string | undefined; userId?: string | undefined; }> & Record) | undefined; query?: (Partial> & Record) | undefined; params?: Record | undefined; duplex?: "full" | "half" | undefined; jsonParser?: ((text: string) => Promise | any) | undefined; retry?: _better_fetch_fetch.RetryOptions | undefined; retryAttempt?: number | undefined; output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined; errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined; disableValidation?: boolean | undefined; }>(data_0: better_auth.Prettify<{ providerId: string; accountId?: string | undefined; userId?: string | undefined; } & { fetchOptions?: FetchOptions | undefined; }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse>; } & { getAccessToken: >(context: _better_fetch_fetch.RequestContext) => Promise<_better_fetch_fetch.RequestContext | void> | _better_fetch_fetch.RequestContext | void) | undefined; onResponse?: ((context: _better_fetch_fetch.ResponseContext) => Promise | Response | _better_fetch_fetch.ResponseContext | void) | undefined; onSuccess?: ((context: _better_fetch_fetch.SuccessContext) => Promise | void) | undefined; onError?: ((context: _better_fetch_fetch.ErrorContext) => Promise | void) | undefined; onRetry?: ((response: _better_fetch_fetch.ResponseContext) => Promise | void) | undefined; hookOptions?: { cloneResponse?: boolean; } | undefined; timeout?: number | undefined; customFetchImpl?: _better_fetch_fetch.FetchEsque | undefined; plugins?: _better_fetch_fetch.BetterFetchPlugin[] | undefined; baseURL?: string | undefined; throw?: boolean | undefined; auth?: ({ type: "Bearer"; token: string | Promise | (() => string | Promise | undefined) | undefined; } | { type: "Basic"; username: string | (() => string | undefined) | undefined; password: string | (() => string | undefined) | undefined; } | { type: "Custom"; prefix: string | (() => string | undefined) | undefined; value: string | (() => string | undefined) | undefined; }) | undefined; body?: (Partial<{ providerId: string; accountId?: string | undefined; userId?: string | undefined; }> & Record) | undefined; query?: (Partial> & Record) | undefined; params?: Record | undefined; duplex?: "full" | "half" | undefined; jsonParser?: ((text: string) => Promise | any) | undefined; retry?: _better_fetch_fetch.RetryOptions | undefined; retryAttempt?: number | undefined; output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined; errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined; disableValidation?: boolean | undefined; }>(data_0: better_auth.Prettify<{ providerId: string; accountId?: string | undefined; userId?: string | undefined; } & { fetchOptions?: FetchOptions | undefined; }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{ accessToken: string | undefined; accessTokenExpiresAt: Date | undefined; scopes: string[]; idToken: string | undefined; }, { code?: string; message?: string; }, FetchOptions["throw"] extends true ? true : false>>; } & { accountInfo: >(context: _better_fetch_fetch.RequestContext) => Promise<_better_fetch_fetch.RequestContext | void> | _better_fetch_fetch.RequestContext | void) | undefined; onResponse?: ((context: _better_fetch_fetch.ResponseContext) => Promise | Response | _better_fetch_fetch.ResponseContext | void) | undefined; onSuccess?: ((context: _better_fetch_fetch.SuccessContext) => Promise | void) | undefined; onError?: ((context: _better_fetch_fetch.ErrorContext) => Promise | void) | undefined; onRetry?: ((response: _better_fetch_fetch.ResponseContext) => Promise | void) | undefined; hookOptions?: { cloneResponse?: boolean; } | undefined; timeout?: number | undefined; customFetchImpl?: _better_fetch_fetch.FetchEsque | undefined; plugins?: _better_fetch_fetch.BetterFetchPlugin[] | undefined; baseURL?: string | undefined; throw?: boolean | undefined; auth?: ({ type: "Bearer"; token: string | Promise | (() => string | Promise | undefined) | undefined; } | { type: "Basic"; username: string | (() => string | undefined) | undefined; password: string | (() => string | undefined) | undefined; } | { type: "Custom"; prefix: string | (() => string | undefined) | undefined; value: string | (() => string | undefined) | undefined; }) | undefined; body?: (Partial<{ accountId: string; }> & Record) | undefined; query?: (Partial> & Record) | undefined; params?: Record | undefined; duplex?: "full" | "half" | undefined; jsonParser?: ((text: string) => Promise | any) | undefined; retry?: _better_fetch_fetch.RetryOptions | undefined; retryAttempt?: number | undefined; output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined; errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined; disableValidation?: boolean | undefined; }>(data_0: better_auth.Prettify<{ accountId: string; } & { fetchOptions?: FetchOptions | undefined; }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{ user: { id: string; name?: string; email?: string | null; image?: string; emailVerified: boolean; }; data: Record; }, { code?: string; message?: string; }, FetchOptions["throw"] extends true ? true : false>>; } & { signUp: { email: >(context: _better_fetch_fetch.RequestContext) => Promise<_better_fetch_fetch.RequestContext | void> | _better_fetch_fetch.RequestContext | void) | undefined; onResponse?: ((context: _better_fetch_fetch.ResponseContext) => Promise | Response | _better_fetch_fetch.ResponseContext | void) | undefined; onSuccess?: ((context: _better_fetch_fetch.SuccessContext) => Promise | void) | undefined; onError?: ((context: _better_fetch_fetch.ErrorContext) => Promise | void) | undefined; onRetry?: ((response: _better_fetch_fetch.ResponseContext) => Promise | void) | undefined; hookOptions?: { cloneResponse?: boolean; } | undefined; timeout?: number | undefined; customFetchImpl?: _better_fetch_fetch.FetchEsque | undefined; plugins?: _better_fetch_fetch.BetterFetchPlugin[] | undefined; baseURL?: string | undefined; throw?: boolean | undefined; auth?: ({ type: "Bearer"; token: string | Promise | (() => string | Promise | undefined) | undefined; } | { type: "Basic"; username: string | (() => string | undefined) | undefined; password: string | (() => string | undefined) | undefined; } | { type: "Custom"; prefix: string | (() => string | undefined) | undefined; value: string | (() => string | undefined) | undefined; }) | undefined; body?: (Partial<{ name: string; email: string; password: string; callbackURL?: string; }> & Record) | undefined; query?: (Partial> & Record) | undefined; params?: Record | undefined; duplex?: "full" | "half" | undefined; jsonParser?: ((text: string) => Promise | any) | undefined; retry?: _better_fetch_fetch.RetryOptions | undefined; retryAttempt?: number | undefined; output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined; errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined; disableValidation?: boolean | undefined; }>(data_0: better_auth.Prettify<{ email: string; name: string; password: string; image?: string; callbackURL?: string; fetchOptions?: FetchOptions | undefined; }>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse, { code?: string; message?: string; }, FetchOptions["throw"] extends true ? true : false>>; }; } & { updateUser: >(context: _better_fetch_fetch.RequestContext) => Promise<_better_fetch_fetch.RequestContext | void> | _better_fetch_fetch.RequestContext | void) | undefined; onResponse?: ((context: _better_fetch_fetch.ResponseContext) => Promise | Response | _better_fetch_fetch.ResponseContext | void) | undefined; onSuccess?: ((context: _better_fetch_fetch.SuccessContext) => Promise | void) | undefined; onError?: ((context: _better_fetch_fetch.ErrorContext) => Promise | void) | undefined; onRetry?: ((response: _better_fetch_fetch.ResponseContext) => Promise | void) | undefined; hookOptions?: { cloneResponse?: boolean; } | undefined; timeout?: number | undefined; customFetchImpl?: _better_fetch_fetch.FetchEsque | undefined; plugins?: _better_fetch_fetch.BetterFetchPlugin[] | undefined; baseURL?: string | undefined; throw?: boolean | undefined; auth?: ({ type: "Bearer"; token: string | Promise | (() => string | Promise | undefined) | undefined; } | { type: "Basic"; username: string | (() => string | undefined) | undefined; password: string | (() => string | undefined) | undefined; } | { type: "Custom"; prefix: string | (() => string | undefined) | undefined; value: string | (() => string | undefined) | undefined; }) | undefined; body?: (Partial & { name?: string; image?: string; }> & Record) | undefined; query?: (Partial> & Record) | undefined; params?: Record | undefined; duplex?: "full" | "half" | undefined; jsonParser?: ((text: string) => Promise | any) | undefined; retry?: _better_fetch_fetch.RetryOptions | undefined; retryAttempt?: number | undefined; output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined; errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined; disableValidation?: boolean | undefined; }>(data_0?: better_auth.Prettify<{ image?: string | null; name?: string; fetchOptions?: FetchOptions | undefined; } & Partial<{}>> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse<{ status: boolean; }, { code?: string; message?: string; }, FetchOptions["throw"] extends true ? true : false>>; } & { listSessions: >(context: _better_fetch_fetch.RequestContext) => Promise<_better_fetch_fetch.RequestContext | void> | _better_fetch_fetch.RequestContext | void) | undefined; onResponse?: ((context: _better_fetch_fetch.ResponseContext) => Promise | Response | _better_fetch_fetch.ResponseContext | void) | undefined; onSuccess?: ((context: _better_fetch_fetch.SuccessContext) => Promise | void) | undefined; onError?: ((context: _better_fetch_fetch.ErrorContext) => Promise | void) | undefined; onRetry?: ((response: _better_fetch_fetch.ResponseContext) => Promise | void) | undefined; hookOptions?: { cloneResponse?: boolean; } | undefined; timeout?: number | undefined; customFetchImpl?: _better_fetch_fetch.FetchEsque | undefined; plugins?: _better_fetch_fetch.BetterFetchPlugin[] | undefined; baseURL?: string | undefined; throw?: boolean | undefined; auth?: ({ type: "Bearer"; token: string | Promise | (() => string | Promise | undefined) | undefined; } | { type: "Basic"; username: string | (() => string | undefined) | undefined; password: string | (() => string | undefined) | undefined; } | { type: "Custom"; prefix: string | (() => string | undefined) | undefined; value: string | (() => string | undefined) | undefined; }) | undefined; body?: undefined; query?: (Partial> & Record) | undefined; params?: Record | undefined; duplex?: "full" | "half" | undefined; jsonParser?: ((text: string) => Promise | any) | undefined; retry?: _better_fetch_fetch.RetryOptions | undefined; retryAttempt?: number | undefined; output?: (_better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File) | undefined; errorSchema?: _better_fetch_fetch.StandardSchemaV1 | undefined; disableValidation?: boolean | undefined; }>(data_0?: better_auth.Prettify<{ query?: Record | undefined; fetchOptions?: FetchOptions | undefined; }> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch.BetterFetchResponse[], { code?: string; message?: string; }, FetchOptions["throw"] extends true ? true : false>>; } & { useSession: () => { data: { user: { id: string; name: string; emailVerified: boolean; email: string; createdAt: Date; updatedAt: Date; image?: string | null | undefined | undefined; }; session: { id: string; token: string; userId: string; expiresAt: Date; createdAt: Date; updatedAt: Date; ipAddress?: string | null | undefined | undefined; userAgent?: string | null | undefined | undefined; }; } | null; isPending: boolean; error: _better_fetch_fetch.BetterFetchError | null; refetch: () => void; }; $Infer: { Session: { user: { id: string; name: string; emailVerified: boolean; email: string; createdAt: Date; updatedAt: Date; image?: string | null | undefined | undefined; }; session: { id: string; token: string; userId: string; expiresAt: Date; createdAt: Date; updatedAt: Date; ipAddress?: string | null | undefined | undefined; userAgent?: string | null | undefined | undefined; }; }; }; $fetch: _better_fetch_fetch.BetterFetch<{ plugins: (_better_fetch_fetch.BetterFetchPlugin | { id: string; name: string; hooks: { onSuccess(context: _better_fetch_fetch.SuccessContext): void; }; })[]; redirect?: RequestRedirect; method: string; headers?: (HeadersInit & (HeadersInit | { accept: "application/json" | "text/plain" | "application/octet-stream"; "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream"; authorization: "Bearer" | "Basic"; })) | undefined; cache?: RequestCache; credentials?: RequestCredentials; integrity?: string; keepalive?: boolean; mode?: RequestMode; priority?: RequestPriority; referrer?: string; referrerPolicy?: ReferrerPolicy; signal?: AbortSignal | null; window?: null; onRequest?: >(context: _better_fetch_fetch.RequestContext) => Promise<_better_fetch_fetch.RequestContext | void> | _better_fetch_fetch.RequestContext | void; onResponse?: (context: _better_fetch_fetch.ResponseContext) => Promise | Response | _better_fetch_fetch.ResponseContext | void; onSuccess?: ((context: _better_fetch_fetch.SuccessContext) => Promise | void) | undefined; onError?: (context: _better_fetch_fetch.ErrorContext) => Promise | void; onRetry?: (response: _better_fetch_fetch.ResponseContext) => Promise | void; hookOptions?: { cloneResponse?: boolean; }; timeout?: number; customFetchImpl: _better_fetch_fetch.FetchEsque; baseURL: string; throw?: boolean; auth?: { type: "Bearer"; token: string | Promise | (() => string | Promise | undefined) | undefined; } | { type: "Basic"; username: string | (() => string | undefined) | undefined; password: string | (() => string | undefined) | undefined; } | { type: "Custom"; prefix: string | (() => string | undefined) | undefined; value: string | (() => string | undefined) | undefined; }; body?: any; query?: any; params?: any; duplex?: "full" | "half"; jsonParser: (text: string) => Promise | any; retry?: _better_fetch_fetch.RetryOptions; retryAttempt?: number; output?: _better_fetch_fetch.StandardSchemaV1 | typeof Blob | typeof File; errorSchema?: _better_fetch_fetch.StandardSchemaV1; disableValidation?: boolean; }, unknown, unknown, {}>; $store: { notify: (signal?: Omit | "$sessionSignal") => void; listen: (signal: Omit | "$sessionSignal", listener: (value: boolean, oldValue?: boolean | undefined) => void) => void; atoms: Record>; }; $ERROR_CODES: { readonly INVALID_SESSION_TOKEN: "Invalid session token"; USER_NOT_FOUND: string; FAILED_TO_CREATE_USER: string; FAILED_TO_CREATE_SESSION: string; FAILED_TO_UPDATE_USER: string; FAILED_TO_GET_SESSION: string; INVALID_PASSWORD: string; INVALID_EMAIL: string; INVALID_EMAIL_OR_PASSWORD: string; SOCIAL_ACCOUNT_ALREADY_LINKED: string; PROVIDER_NOT_FOUND: string; INVALID_TOKEN: string; ID_TOKEN_NOT_SUPPORTED: string; FAILED_TO_GET_USER_INFO: string; USER_EMAIL_NOT_FOUND: string; EMAIL_NOT_VERIFIED: string; PASSWORD_TOO_SHORT: string; PASSWORD_TOO_LONG: string; USER_ALREADY_EXISTS: string; EMAIL_CAN_NOT_BE_UPDATED: string; CREDENTIAL_ACCOUNT_NOT_FOUND: string; SESSION_EXPIRED: string; FAILED_TO_UNLINK_LAST_ACCOUNT: string; ACCOUNT_NOT_FOUND: string; USER_ALREADY_HAS_PASSWORD: string; }; }) | null> & object; type PersistentSessionResult = { data: { session: Session; user: User; } | null; isPending: boolean; isRefetching: boolean; optimistic?: boolean; error: BetterFetchError["error"] | null; refetch: () => Promise; }; declare const $persistentSession: nanostores.WritableAtom; declare function subscribeDeviceSessions(): () => void; export { $authClient, $persistentSession, setActiveSession, subscribeDeviceSessions, useListDeviceSessions, useSession, useSubscribeDeviceSessions };