import * as react_jsx_runtime from 'react/jsx-runtime';
import * as react from 'react';
import { ReactNode } from 'react';
import * as _tanstack_react_query from '@tanstack/react-query';
import { AnyUseQueryOptions, QueryKey, QueryClient } from '@tanstack/react-query';
import * as better_auth_plugins_organization from 'better-auth/plugins/organization';
import * as better_auth_plugins_passkey from 'better-auth/plugins/passkey';
import * as better_auth_types from 'better-auth/types';
import * as better_auth_dist_shared_better_auth_CYegVoq1 from 'better-auth/dist/shared/better-auth.CYegVoq1';
import * as better_auth_react from 'better-auth/react';
import { BetterFetchOption, createAuthClient, BetterFetchResponse } from 'better-auth/react';
import * as better_auth_client_plugins from 'better-auth/client/plugins';
import * as better_auth_dist_shared_better_auth_Bzjh9zg_ from 'better-auth/dist/shared/better-auth.Bzjh9zg_';

type AuthQueryOptions = {
    queryOptions?: Partial<AnyUseQueryOptions>;
    sessionQueryOptions?: Partial<AnyUseQueryOptions>;
    tokenQueryOptions?: Partial<AnyUseQueryOptions>;
    sessionKey: QueryKey;
    tokenKey: QueryKey;
    listAccountsKey: QueryKey;
    listApiKeysKey: QueryKey;
    listSessionsKey: QueryKey;
    listDeviceSessionsKey: QueryKey;
    listPasskeysKey: QueryKey;
    optimistic: boolean;
    refetchOnMutate: boolean;
};
declare const defaultAuthQueryOptions: AuthQueryOptions;
declare const AuthQueryContext: react.Context<AuthQueryOptions>;
declare const AuthQueryProvider: ({ children, sessionQueryOptions, tokenQueryOptions, ...props }: {
    children: ReactNode;
} & Partial<AuthQueryOptions>) => react_jsx_runtime.JSX.Element;

type AuthMutationFn<TParams> = (params: TParams) => Promise<ThrowableResult | NonThrowableResult>;
declare function useAuthMutation<TAuthFn extends AuthMutationFn<any>>({ queryKey, mutationFn, optimisticData, options }: {
    queryKey: QueryKey;
    mutationFn: TAuthFn;
    optimisticData?(params: Omit<Parameters<TAuthFn>[0], "fetchOptions">, previousData: unknown): unknown;
    options?: Partial<AuthQueryOptions>;
}): {
    mutate: _tanstack_react_query.UseMutateFunction<NonThrowableResult | ThrowableResult, Error, Parameters<TAuthFn>[0], {
        previousData: {};
    }>;
    mutateAsync: {
        (params: Omit<Parameters<TAuthFn>[0], "fetchOptions"> & {
            fetchOptions?: {
                throw?: true;
            } | undefined;
        }): Promise<ThrowableResult>;
        (params: Omit<Parameters<TAuthFn>[0], "fetchOptions"> & {
            fetchOptions?: BetterFetchOption;
        }): Promise<NonThrowableResult>;
    };
    isPending: boolean;
    error: Error | null;
    data: undefined;
    variables: undefined;
    isError: false;
    isIdle: true;
    isSuccess: false;
    status: "idle";
    reset: () => void;
    context: {
        previousData: {};
    } | undefined;
    failureCount: number;
    failureReason: Error | null;
    isPaused: boolean;
    submittedAt: number;
} | {
    mutate: _tanstack_react_query.UseMutateFunction<NonThrowableResult | ThrowableResult, Error, Parameters<TAuthFn>[0], {
        previousData: {};
    }>;
    mutateAsync: {
        (params: Omit<Parameters<TAuthFn>[0], "fetchOptions"> & {
            fetchOptions?: {
                throw?: true;
            } | undefined;
        }): Promise<ThrowableResult>;
        (params: Omit<Parameters<TAuthFn>[0], "fetchOptions"> & {
            fetchOptions?: BetterFetchOption;
        }): Promise<NonThrowableResult>;
    };
    isPending: boolean;
    error: Error | null;
    data: undefined;
    variables: Parameters<TAuthFn>[0];
    isError: false;
    isIdle: false;
    isSuccess: false;
    status: "pending";
    reset: () => void;
    context: {
        previousData: {};
    } | undefined;
    failureCount: number;
    failureReason: Error | null;
    isPaused: boolean;
    submittedAt: number;
} | {
    mutate: _tanstack_react_query.UseMutateFunction<NonThrowableResult | ThrowableResult, Error, Parameters<TAuthFn>[0], {
        previousData: {};
    }>;
    mutateAsync: {
        (params: Omit<Parameters<TAuthFn>[0], "fetchOptions"> & {
            fetchOptions?: {
                throw?: true;
            } | undefined;
        }): Promise<ThrowableResult>;
        (params: Omit<Parameters<TAuthFn>[0], "fetchOptions"> & {
            fetchOptions?: BetterFetchOption;
        }): Promise<NonThrowableResult>;
    };
    isPending: boolean;
    error: Error | null;
    data: undefined;
    variables: Parameters<TAuthFn>[0];
    isError: true;
    isIdle: false;
    isSuccess: false;
    status: "error";
    reset: () => void;
    context: {
        previousData: {};
    } | undefined;
    failureCount: number;
    failureReason: Error | null;
    isPaused: boolean;
    submittedAt: number;
} | {
    mutate: _tanstack_react_query.UseMutateFunction<NonThrowableResult | ThrowableResult, Error, Parameters<TAuthFn>[0], {
        previousData: {};
    }>;
    mutateAsync: {
        (params: Omit<Parameters<TAuthFn>[0], "fetchOptions"> & {
            fetchOptions?: {
                throw?: true;
            } | undefined;
        }): Promise<ThrowableResult>;
        (params: Omit<Parameters<TAuthFn>[0], "fetchOptions"> & {
            fetchOptions?: BetterFetchOption;
        }): Promise<NonThrowableResult>;
    };
    isPending: boolean;
    error: Error | null;
    data: NonThrowableResult | ThrowableResult;
    variables: Parameters<TAuthFn>[0];
    isError: false;
    isIdle: false;
    isSuccess: true;
    status: "success";
    reset: () => void;
    context: {
        previousData: {};
    } | undefined;
    failureCount: number;
    failureReason: Error | null;
    isPaused: boolean;
    submittedAt: number;
};

type AnyAuthClient = Omit<ReturnType<typeof createAuthClient>, "signUp" | "getSession">;

type BetterFetchRequest<TData> = ({ fetchOptions }: {
    fetchOptions: BetterFetchOption;
}) => Promise<BetterFetchResponse<TData>>;

declare const authClient: {
    useListPasskeys: () => {
        data: better_auth_plugins_passkey.Passkey[] | null;
        error: null | better_auth_react.BetterFetchError;
        isPending: boolean;
        isRefetching: boolean;
        refetch: () => void;
    };
} & {} & {
    useActiveOrganization: () => {
        data: better_auth_dist_shared_better_auth_CYegVoq1.P<{
            id: string;
            name: string;
            createdAt: Date;
            slug: string;
            metadata?: any;
            logo?: string | null | undefined;
        } & {
            members: (better_auth_plugins_organization.Member & {
                user: {
                    id: string;
                    name: string;
                    email: string;
                    image: string | undefined;
                };
            })[];
            invitations: better_auth_plugins_organization.Invitation[];
        }> | null;
        error: null | better_auth_react.BetterFetchError;
        isPending: boolean;
        isRefetching: boolean;
        refetch: () => void;
    };
    useListOrganizations: () => {
        data: {
            id: string;
            name: string;
            createdAt: Date;
            slug: string;
            metadata?: any;
            logo?: string | null | undefined;
        }[] | null;
        error: null | better_auth_react.BetterFetchError;
        isPending: boolean;
        isRefetching: boolean;
        refetch: () => void;
    };
    useActiveMember: () => {
        data: {
            id: string;
            createdAt: Date;
            userId: string;
            organizationId: string;
            role: string;
            teamId?: string | undefined;
        } | null;
        error: null | better_auth_react.BetterFetchError;
        isPending: boolean;
        isRefetching: boolean;
        refetch: () => void;
    };
} & {
    signIn: {
        social: <FetchOptions extends {
            method?: string | undefined;
            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 | undefined;
            credentials?: RequestCredentials | undefined;
            integrity?: string | undefined;
            keepalive?: boolean | undefined;
            mode?: RequestMode | undefined;
            priority?: RequestPriority | undefined;
            redirect?: RequestRedirect | undefined;
            referrer?: string | undefined;
            referrerPolicy?: ReferrerPolicy | undefined;
            signal?: (AbortSignal | null) | undefined;
            window?: null | undefined;
            onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
            onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
            onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
            onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
            onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
            hookOptions?: {
                cloneResponse?: boolean;
            } | undefined;
            timeout?: number | undefined;
            customFetchImpl?: better_auth_react.FetchEsque | undefined;
            plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
            baseURL?: string | undefined;
            throw?: boolean | undefined;
            auth?: ({
                type: "Bearer";
                token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "vk" | "kick" | "zoom";
                scopes?: string[] | undefined;
                loginHint?: string | undefined;
                idToken?: {
                    token: string;
                    refreshToken?: string | undefined;
                    accessToken?: string | undefined;
                    expiresAt?: number | undefined;
                    nonce?: string | undefined;
                } | undefined;
                callbackURL?: string | undefined;
                requestSignUp?: boolean | undefined;
                errorCallbackURL?: string | undefined;
                newUserCallbackURL?: string | undefined;
                disableRedirect?: boolean | undefined;
            }> & Record<string, any>) | undefined;
            query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
            params?: Record<string, any> | undefined;
            duplex?: "full" | "half" | undefined;
            jsonParser?: ((text: string) => Promise<any> | any) | undefined;
            retry?: better_auth_react.RetryOptions | undefined;
            retryAttempt?: number | undefined;
            output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
            errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
            disableValidation?: boolean | undefined;
        }>(data_0: better_auth_dist_shared_better_auth_CYegVoq1.P<{
            provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "vk" | "kick" | "zoom";
            scopes?: string[] | undefined;
            loginHint?: string | undefined;
            idToken?: {
                token: string;
                refreshToken?: string | undefined;
                accessToken?: string | undefined;
                expiresAt?: number | undefined;
                nonce?: string | undefined;
            } | undefined;
            callbackURL?: string | undefined;
            requestSignUp?: boolean | undefined;
            errorCallbackURL?: string | undefined;
            newUserCallbackURL?: string | undefined;
            disableRedirect?: boolean | undefined;
        } & {
            fetchOptions?: FetchOptions | undefined;
        }>, data_1?: FetchOptions | undefined) => Promise<better_auth_react.BetterFetchResponse<NonNullable<{
            redirect: boolean;
            token: string;
            url: undefined;
            user: {
                id: string;
                email: string;
                name: string;
                image: string | null | undefined;
                emailVerified: boolean;
                createdAt: Date;
                updatedAt: Date;
            };
        } | {
            url: string;
            redirect: boolean;
        }>, {
            code?: string;
            message?: string;
        }, FetchOptions["throw"] extends true ? true : false>>;
    };
} & {
    getSession: <FetchOptions extends {
        method?: string | undefined;
        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 | undefined;
        credentials?: RequestCredentials | undefined;
        integrity?: string | undefined;
        keepalive?: boolean | undefined;
        mode?: RequestMode | undefined;
        priority?: RequestPriority | undefined;
        redirect?: RequestRedirect | undefined;
        referrer?: string | undefined;
        referrerPolicy?: ReferrerPolicy | undefined;
        signal?: (AbortSignal | null) | undefined;
        window?: null | undefined;
        onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
        onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
        onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
        onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
        onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
        hookOptions?: {
            cloneResponse?: boolean;
        } | undefined;
        timeout?: number | undefined;
        customFetchImpl?: better_auth_react.FetchEsque | undefined;
        plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
        baseURL?: string | undefined;
        throw?: boolean | undefined;
        auth?: ({
            type: "Bearer";
            token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<string, any>) | undefined;
        params?: Record<string, any> | undefined;
        duplex?: "full" | "half" | undefined;
        jsonParser?: ((text: string) => Promise<any> | any) | undefined;
        retry?: better_auth_react.RetryOptions | undefined;
        retryAttempt?: number | undefined;
        output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
        errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
        disableValidation?: boolean | undefined;
    }>(data_0?: better_auth_dist_shared_better_auth_CYegVoq1.P<{
        query?: {
            disableCookieCache?: string | boolean | undefined;
            disableRefresh?: string | boolean | undefined;
        } | undefined;
        fetchOptions?: FetchOptions | undefined;
    }> | undefined, data_1?: FetchOptions | undefined) => Promise<better_auth_react.BetterFetchResponse<{
        user: {
            id: string;
            name: string;
            email: string;
            emailVerified: boolean;
            createdAt: Date;
            updatedAt: Date;
            image?: string | null | undefined | undefined;
            isAnonymous?: boolean | null | undefined;
            username?: string | null | undefined;
            displayUsername?: string | null | undefined;
            twoFactorEnabled: boolean | null | undefined;
        };
        session: {
            id: string;
            createdAt: Date;
            updatedAt: Date;
            userId: string;
            expiresAt: Date;
            token: string;
            ipAddress?: string | null | undefined | undefined;
            userAgent?: string | null | undefined | undefined;
            activeOrganizationId?: string | null | undefined;
        };
    }, {
        code?: string;
        message?: string;
    }, FetchOptions["throw"] extends true ? true : false>>;
} & {
    signOut: <FetchOptions extends {
        method?: string | undefined;
        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 | undefined;
        credentials?: RequestCredentials | undefined;
        integrity?: string | undefined;
        keepalive?: boolean | undefined;
        mode?: RequestMode | undefined;
        priority?: RequestPriority | undefined;
        redirect?: RequestRedirect | undefined;
        referrer?: string | undefined;
        referrerPolicy?: ReferrerPolicy | undefined;
        signal?: (AbortSignal | null) | undefined;
        window?: null | undefined;
        onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
        onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
        onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
        onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
        onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
        hookOptions?: {
            cloneResponse?: boolean;
        } | undefined;
        timeout?: number | undefined;
        customFetchImpl?: better_auth_react.FetchEsque | undefined;
        plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
        baseURL?: string | undefined;
        throw?: boolean | undefined;
        auth?: ({
            type: "Bearer";
            token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<string, any>> & Record<string, any>) | undefined;
        params?: Record<string, any> | undefined;
        duplex?: "full" | "half" | undefined;
        jsonParser?: ((text: string) => Promise<any> | any) | undefined;
        retry?: better_auth_react.RetryOptions | undefined;
        retryAttempt?: number | undefined;
        output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
        errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
        disableValidation?: boolean | undefined;
    }>(data_0?: better_auth_dist_shared_better_auth_CYegVoq1.P<{
        query?: Record<string, any> | undefined;
        fetchOptions?: FetchOptions | undefined;
    }> | undefined, data_1?: FetchOptions | undefined) => Promise<better_auth_react.BetterFetchResponse<{
        success: boolean;
    }, {
        code?: string;
        message?: string;
    }, FetchOptions["throw"] extends true ? true : false>>;
} & {
    signIn: {
        email: <FetchOptions extends {
            method?: string | undefined;
            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 | undefined;
            credentials?: RequestCredentials | undefined;
            integrity?: string | undefined;
            keepalive?: boolean | undefined;
            mode?: RequestMode | undefined;
            priority?: RequestPriority | undefined;
            redirect?: RequestRedirect | undefined;
            referrer?: string | undefined;
            referrerPolicy?: ReferrerPolicy | undefined;
            signal?: (AbortSignal | null) | undefined;
            window?: null | undefined;
            onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
            onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
            onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
            onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
            onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
            hookOptions?: {
                cloneResponse?: boolean;
            } | undefined;
            timeout?: number | undefined;
            customFetchImpl?: better_auth_react.FetchEsque | undefined;
            plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
            baseURL?: string | undefined;
            throw?: boolean | undefined;
            auth?: ({
                type: "Bearer";
                token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<{
                password: string;
                email: string;
                callbackURL?: string | undefined;
                rememberMe?: boolean | undefined;
            }> & Record<string, any>) | undefined;
            query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
            params?: Record<string, any> | undefined;
            duplex?: "full" | "half" | undefined;
            jsonParser?: ((text: string) => Promise<any> | any) | undefined;
            retry?: better_auth_react.RetryOptions | undefined;
            retryAttempt?: number | undefined;
            output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
            errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
            disableValidation?: boolean | undefined;
        }>(data_0: better_auth_dist_shared_better_auth_CYegVoq1.P<{
            password: string;
            email: string;
            callbackURL?: string | undefined;
            rememberMe?: boolean | undefined;
        } & {
            fetchOptions?: FetchOptions | undefined;
        }>, data_1?: FetchOptions | undefined) => Promise<better_auth_react.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: <FetchOptions extends {
        method?: string | undefined;
        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 | undefined;
        credentials?: RequestCredentials | undefined;
        integrity?: string | undefined;
        keepalive?: boolean | undefined;
        mode?: RequestMode | undefined;
        priority?: RequestPriority | undefined;
        redirect?: RequestRedirect | undefined;
        referrer?: string | undefined;
        referrerPolicy?: ReferrerPolicy | undefined;
        signal?: (AbortSignal | null) | undefined;
        window?: null | undefined;
        onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
        onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
        onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
        onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
        onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
        hookOptions?: {
            cloneResponse?: boolean;
        } | undefined;
        timeout?: number | undefined;
        customFetchImpl?: better_auth_react.FetchEsque | undefined;
        plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
        baseURL?: string | undefined;
        throw?: boolean | undefined;
        auth?: ({
            type: "Bearer";
            token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<string, any>) | undefined;
        query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
        params?: Record<string, any> | undefined;
        duplex?: "full" | "half" | undefined;
        jsonParser?: ((text: string) => Promise<any> | any) | undefined;
        retry?: better_auth_react.RetryOptions | undefined;
        retryAttempt?: number | undefined;
        output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
        errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
        disableValidation?: boolean | undefined;
    }>(data_0: better_auth_dist_shared_better_auth_CYegVoq1.P<{
        email: string;
        redirectTo?: string | undefined;
    } & {
        fetchOptions?: FetchOptions | undefined;
    }>, data_1?: FetchOptions | undefined) => Promise<better_auth_react.BetterFetchResponse<{
        status: boolean;
    }, {
        code?: string;
        message?: string;
    }, FetchOptions["throw"] extends true ? true : false>>;
} & {
    resetPassword: <FetchOptions extends {
        method?: string | undefined;
        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 | undefined;
        credentials?: RequestCredentials | undefined;
        integrity?: string | undefined;
        keepalive?: boolean | undefined;
        mode?: RequestMode | undefined;
        priority?: RequestPriority | undefined;
        redirect?: RequestRedirect | undefined;
        referrer?: string | undefined;
        referrerPolicy?: ReferrerPolicy | undefined;
        signal?: (AbortSignal | null) | undefined;
        window?: null | undefined;
        onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
        onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
        onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
        onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
        onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
        hookOptions?: {
            cloneResponse?: boolean;
        } | undefined;
        timeout?: number | undefined;
        customFetchImpl?: better_auth_react.FetchEsque | undefined;
        plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
        baseURL?: string | undefined;
        throw?: boolean | undefined;
        auth?: ({
            type: "Bearer";
            token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<string, any>) | undefined;
        query?: (Partial<{
            token?: string | undefined;
        }> & Record<string, any>) | undefined;
        params?: Record<string, any> | undefined;
        duplex?: "full" | "half" | undefined;
        jsonParser?: ((text: string) => Promise<any> | any) | undefined;
        retry?: better_auth_react.RetryOptions | undefined;
        retryAttempt?: number | undefined;
        output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
        errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
        disableValidation?: boolean | undefined;
    }>(data_0: better_auth_dist_shared_better_auth_CYegVoq1.P<{
        newPassword: string;
        token?: string | undefined;
    } & {
        fetchOptions?: FetchOptions | undefined;
    }>, data_1?: FetchOptions | undefined) => Promise<better_auth_react.BetterFetchResponse<{
        status: boolean;
    }, {
        code?: string;
        message?: string;
    }, FetchOptions["throw"] extends true ? true : false>>;
} & {
    verifyEmail: <FetchOptions extends {
        method?: string | undefined;
        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 | undefined;
        credentials?: RequestCredentials | undefined;
        integrity?: string | undefined;
        keepalive?: boolean | undefined;
        mode?: RequestMode | undefined;
        priority?: RequestPriority | undefined;
        redirect?: RequestRedirect | undefined;
        referrer?: string | undefined;
        referrerPolicy?: ReferrerPolicy | undefined;
        signal?: (AbortSignal | null) | undefined;
        window?: null | undefined;
        onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
        onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
        onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
        onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
        onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
        hookOptions?: {
            cloneResponse?: boolean;
        } | undefined;
        timeout?: number | undefined;
        customFetchImpl?: better_auth_react.FetchEsque | undefined;
        plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
        baseURL?: string | undefined;
        throw?: boolean | undefined;
        auth?: ({
            type: "Bearer";
            token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<string, any>) | undefined;
        params?: Record<string, any> | undefined;
        duplex?: "full" | "half" | undefined;
        jsonParser?: ((text: string) => Promise<any> | any) | undefined;
        retry?: better_auth_react.RetryOptions | undefined;
        retryAttempt?: number | undefined;
        output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
        errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
        disableValidation?: boolean | undefined;
    }>(data_0: better_auth_dist_shared_better_auth_CYegVoq1.P<{
        query: {
            token: string;
            callbackURL?: string | undefined;
        };
        fetchOptions?: FetchOptions | undefined;
    }>, data_1?: FetchOptions | undefined) => Promise<better_auth_react.BetterFetchResponse<NonNullable<void | {
        status: boolean;
        user: {
            id: any;
            email: any;
            name: any;
            image: any;
            emailVerified: any;
            createdAt: any;
            updatedAt: any;
        };
    } | {
        status: boolean;
        user: null;
    }>, {
        code?: string;
        message?: string;
    }, FetchOptions["throw"] extends true ? true : false>>;
} & {
    sendVerificationEmail: <FetchOptions extends {
        method?: string | undefined;
        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 | undefined;
        credentials?: RequestCredentials | undefined;
        integrity?: string | undefined;
        keepalive?: boolean | undefined;
        mode?: RequestMode | undefined;
        priority?: RequestPriority | undefined;
        redirect?: RequestRedirect | undefined;
        referrer?: string | undefined;
        referrerPolicy?: ReferrerPolicy | undefined;
        signal?: (AbortSignal | null) | undefined;
        window?: null | undefined;
        onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
        onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
        onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
        onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
        onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
        hookOptions?: {
            cloneResponse?: boolean;
        } | undefined;
        timeout?: number | undefined;
        customFetchImpl?: better_auth_react.FetchEsque | undefined;
        plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
        baseURL?: string | undefined;
        throw?: boolean | undefined;
        auth?: ({
            type: "Bearer";
            token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<string, any>) | undefined;
        query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
        params?: Record<string, any> | undefined;
        duplex?: "full" | "half" | undefined;
        jsonParser?: ((text: string) => Promise<any> | any) | undefined;
        retry?: better_auth_react.RetryOptions | undefined;
        retryAttempt?: number | undefined;
        output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
        errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
        disableValidation?: boolean | undefined;
    }>(data_0: better_auth_dist_shared_better_auth_CYegVoq1.P<{
        email: string;
        callbackURL?: string | undefined;
    } & {
        fetchOptions?: FetchOptions | undefined;
    }>, data_1?: FetchOptions | undefined) => Promise<better_auth_react.BetterFetchResponse<{
        status: boolean;
    }, {
        code?: string;
        message?: string;
    }, FetchOptions["throw"] extends true ? true : false>>;
} & {
    changeEmail: <FetchOptions extends {
        method?: string | undefined;
        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 | undefined;
        credentials?: RequestCredentials | undefined;
        integrity?: string | undefined;
        keepalive?: boolean | undefined;
        mode?: RequestMode | undefined;
        priority?: RequestPriority | undefined;
        redirect?: RequestRedirect | undefined;
        referrer?: string | undefined;
        referrerPolicy?: ReferrerPolicy | undefined;
        signal?: (AbortSignal | null) | undefined;
        window?: null | undefined;
        onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
        onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
        onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
        onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
        onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
        hookOptions?: {
            cloneResponse?: boolean;
        } | undefined;
        timeout?: number | undefined;
        customFetchImpl?: better_auth_react.FetchEsque | undefined;
        plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
        baseURL?: string | undefined;
        throw?: boolean | undefined;
        auth?: ({
            type: "Bearer";
            token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<string, any>) | undefined;
        query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
        params?: Record<string, any> | undefined;
        duplex?: "full" | "half" | undefined;
        jsonParser?: ((text: string) => Promise<any> | any) | undefined;
        retry?: better_auth_react.RetryOptions | undefined;
        retryAttempt?: number | undefined;
        output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
        errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
        disableValidation?: boolean | undefined;
    }>(data_0: better_auth_dist_shared_better_auth_CYegVoq1.P<{
        newEmail: string;
        callbackURL?: string | undefined;
    } & {
        fetchOptions?: FetchOptions | undefined;
    }>, data_1?: FetchOptions | undefined) => Promise<better_auth_react.BetterFetchResponse<{
        status: boolean;
    }, {
        code?: string;
        message?: string;
    }, FetchOptions["throw"] extends true ? true : false>>;
} & {
    changePassword: <FetchOptions extends {
        method?: string | undefined;
        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 | undefined;
        credentials?: RequestCredentials | undefined;
        integrity?: string | undefined;
        keepalive?: boolean | undefined;
        mode?: RequestMode | undefined;
        priority?: RequestPriority | undefined;
        redirect?: RequestRedirect | undefined;
        referrer?: string | undefined;
        referrerPolicy?: ReferrerPolicy | undefined;
        signal?: (AbortSignal | null) | undefined;
        window?: null | undefined;
        onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
        onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
        onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
        onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
        onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
        hookOptions?: {
            cloneResponse?: boolean;
        } | undefined;
        timeout?: number | undefined;
        customFetchImpl?: better_auth_react.FetchEsque | undefined;
        plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
        baseURL?: string | undefined;
        throw?: boolean | undefined;
        auth?: ({
            type: "Bearer";
            token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<string, any>) | undefined;
        query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
        params?: Record<string, any> | undefined;
        duplex?: "full" | "half" | undefined;
        jsonParser?: ((text: string) => Promise<any> | any) | undefined;
        retry?: better_auth_react.RetryOptions | undefined;
        retryAttempt?: number | undefined;
        output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
        errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
        disableValidation?: boolean | undefined;
    }>(data_0: better_auth_dist_shared_better_auth_CYegVoq1.P<{
        newPassword: string;
        currentPassword: string;
        revokeOtherSessions?: boolean | undefined;
    } & {
        fetchOptions?: FetchOptions | undefined;
    }>, data_1?: FetchOptions | undefined) => Promise<better_auth_react.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: <FetchOptions extends {
        method?: string | undefined;
        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 | undefined;
        credentials?: RequestCredentials | undefined;
        integrity?: string | undefined;
        keepalive?: boolean | undefined;
        mode?: RequestMode | undefined;
        priority?: RequestPriority | undefined;
        redirect?: RequestRedirect | undefined;
        referrer?: string | undefined;
        referrerPolicy?: ReferrerPolicy | undefined;
        signal?: (AbortSignal | null) | undefined;
        window?: null | undefined;
        onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
        onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
        onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
        onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
        onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
        hookOptions?: {
            cloneResponse?: boolean;
        } | undefined;
        timeout?: number | undefined;
        customFetchImpl?: better_auth_react.FetchEsque | undefined;
        plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
        baseURL?: string | undefined;
        throw?: boolean | undefined;
        auth?: ({
            type: "Bearer";
            token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<{
            password?: string | undefined;
            token?: string | undefined;
            callbackURL?: string | undefined;
        }> & Record<string, any>) | undefined;
        query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
        params?: Record<string, any> | undefined;
        duplex?: "full" | "half" | undefined;
        jsonParser?: ((text: string) => Promise<any> | any) | undefined;
        retry?: better_auth_react.RetryOptions | undefined;
        retryAttempt?: number | undefined;
        output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
        errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
        disableValidation?: boolean | undefined;
    }>(data_0?: better_auth_dist_shared_better_auth_CYegVoq1.P<{
        password?: string | undefined;
        token?: string | undefined;
        callbackURL?: string | undefined;
    } & {
        fetchOptions?: FetchOptions | undefined;
    }> | undefined, data_1?: FetchOptions | undefined) => Promise<better_auth_react.BetterFetchResponse<{
        success: boolean;
        message: string;
    }, {
        code?: string;
        message?: string;
    }, FetchOptions["throw"] extends true ? true : false>>;
} & {
    resetPassword: {
        ":token": <FetchOptions extends {
            method?: string | undefined;
            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 | undefined;
            credentials?: RequestCredentials | undefined;
            integrity?: string | undefined;
            keepalive?: boolean | undefined;
            mode?: RequestMode | undefined;
            priority?: RequestPriority | undefined;
            redirect?: RequestRedirect | undefined;
            referrer?: string | undefined;
            referrerPolicy?: ReferrerPolicy | undefined;
            signal?: (AbortSignal | null) | undefined;
            window?: null | undefined;
            onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
            onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
            onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
            onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
            onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
            hookOptions?: {
                cloneResponse?: boolean;
            } | undefined;
            timeout?: number | undefined;
            customFetchImpl?: better_auth_react.FetchEsque | undefined;
            plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
            baseURL?: string | undefined;
            throw?: boolean | undefined;
            auth?: ({
                type: "Bearer";
                token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<string, any>) | undefined;
            params?: {
                token: string;
            } | undefined;
            duplex?: "full" | "half" | undefined;
            jsonParser?: ((text: string) => Promise<any> | any) | undefined;
            retry?: better_auth_react.RetryOptions | undefined;
            retryAttempt?: number | undefined;
            output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
            errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
            disableValidation?: boolean | undefined;
        }>(data_0: better_auth_dist_shared_better_auth_CYegVoq1.P<{
            query: {
                callbackURL: string;
            };
            fetchOptions?: FetchOptions | undefined;
        }>, data_1?: FetchOptions | undefined) => Promise<better_auth_react.BetterFetchResponse<never, {
            code?: string;
            message?: string;
        }, FetchOptions["throw"] extends true ? true : false>>;
    };
} & {
    revokeSession: <FetchOptions extends {
        method?: string | undefined;
        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 | undefined;
        credentials?: RequestCredentials | undefined;
        integrity?: string | undefined;
        keepalive?: boolean | undefined;
        mode?: RequestMode | undefined;
        priority?: RequestPriority | undefined;
        redirect?: RequestRedirect | undefined;
        referrer?: string | undefined;
        referrerPolicy?: ReferrerPolicy | undefined;
        signal?: (AbortSignal | null) | undefined;
        window?: null | undefined;
        onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
        onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
        onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
        onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
        onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
        hookOptions?: {
            cloneResponse?: boolean;
        } | undefined;
        timeout?: number | undefined;
        customFetchImpl?: better_auth_react.FetchEsque | undefined;
        plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
        baseURL?: string | undefined;
        throw?: boolean | undefined;
        auth?: ({
            type: "Bearer";
            token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<string, any>) | undefined;
        query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
        params?: Record<string, any> | undefined;
        duplex?: "full" | "half" | undefined;
        jsonParser?: ((text: string) => Promise<any> | any) | undefined;
        retry?: better_auth_react.RetryOptions | undefined;
        retryAttempt?: number | undefined;
        output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
        errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
        disableValidation?: boolean | undefined;
    }>(data_0: better_auth_dist_shared_better_auth_CYegVoq1.P<{
        token: string;
    } & {
        fetchOptions?: FetchOptions | undefined;
    }>, data_1?: FetchOptions | undefined) => Promise<better_auth_react.BetterFetchResponse<{
        status: boolean;
    }, {
        code?: string;
        message?: string;
    }, FetchOptions["throw"] extends true ? true : false>>;
} & {
    revokeSessions: <FetchOptions extends {
        method?: string | undefined;
        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 | undefined;
        credentials?: RequestCredentials | undefined;
        integrity?: string | undefined;
        keepalive?: boolean | undefined;
        mode?: RequestMode | undefined;
        priority?: RequestPriority | undefined;
        redirect?: RequestRedirect | undefined;
        referrer?: string | undefined;
        referrerPolicy?: ReferrerPolicy | undefined;
        signal?: (AbortSignal | null) | undefined;
        window?: null | undefined;
        onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
        onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
        onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
        onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
        onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
        hookOptions?: {
            cloneResponse?: boolean;
        } | undefined;
        timeout?: number | undefined;
        customFetchImpl?: better_auth_react.FetchEsque | undefined;
        plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
        baseURL?: string | undefined;
        throw?: boolean | undefined;
        auth?: ({
            type: "Bearer";
            token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<string, any>> & Record<string, any>) | undefined;
        params?: Record<string, any> | undefined;
        duplex?: "full" | "half" | undefined;
        jsonParser?: ((text: string) => Promise<any> | any) | undefined;
        retry?: better_auth_react.RetryOptions | undefined;
        retryAttempt?: number | undefined;
        output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
        errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
        disableValidation?: boolean | undefined;
    }>(data_0?: better_auth_dist_shared_better_auth_CYegVoq1.P<{
        query?: Record<string, any> | undefined;
        fetchOptions?: FetchOptions | undefined;
    }> | undefined, data_1?: FetchOptions | undefined) => Promise<better_auth_react.BetterFetchResponse<{
        status: boolean;
    }, {
        code?: string;
        message?: string;
    }, FetchOptions["throw"] extends true ? true : false>>;
} & {
    revokeOtherSessions: <FetchOptions extends {
        method?: string | undefined;
        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 | undefined;
        credentials?: RequestCredentials | undefined;
        integrity?: string | undefined;
        keepalive?: boolean | undefined;
        mode?: RequestMode | undefined;
        priority?: RequestPriority | undefined;
        redirect?: RequestRedirect | undefined;
        referrer?: string | undefined;
        referrerPolicy?: ReferrerPolicy | undefined;
        signal?: (AbortSignal | null) | undefined;
        window?: null | undefined;
        onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
        onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
        onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
        onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
        onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
        hookOptions?: {
            cloneResponse?: boolean;
        } | undefined;
        timeout?: number | undefined;
        customFetchImpl?: better_auth_react.FetchEsque | undefined;
        plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
        baseURL?: string | undefined;
        throw?: boolean | undefined;
        auth?: ({
            type: "Bearer";
            token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<string, any>> & Record<string, any>) | undefined;
        params?: Record<string, any> | undefined;
        duplex?: "full" | "half" | undefined;
        jsonParser?: ((text: string) => Promise<any> | any) | undefined;
        retry?: better_auth_react.RetryOptions | undefined;
        retryAttempt?: number | undefined;
        output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
        errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
        disableValidation?: boolean | undefined;
    }>(data_0?: better_auth_dist_shared_better_auth_CYegVoq1.P<{
        query?: Record<string, any> | undefined;
        fetchOptions?: FetchOptions | undefined;
    }> | undefined, data_1?: FetchOptions | undefined) => Promise<better_auth_react.BetterFetchResponse<{
        status: boolean;
    }, {
        code?: string;
        message?: string;
    }, FetchOptions["throw"] extends true ? true : false>>;
} & {
    linkSocial: <FetchOptions extends {
        method?: string | undefined;
        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 | undefined;
        credentials?: RequestCredentials | undefined;
        integrity?: string | undefined;
        keepalive?: boolean | undefined;
        mode?: RequestMode | undefined;
        priority?: RequestPriority | undefined;
        redirect?: RequestRedirect | undefined;
        referrer?: string | undefined;
        referrerPolicy?: ReferrerPolicy | undefined;
        signal?: (AbortSignal | null) | undefined;
        window?: null | undefined;
        onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
        onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
        onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
        onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
        onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
        hookOptions?: {
            cloneResponse?: boolean;
        } | undefined;
        timeout?: number | undefined;
        customFetchImpl?: better_auth_react.FetchEsque | undefined;
        plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
        baseURL?: string | undefined;
        throw?: boolean | undefined;
        auth?: ({
            type: "Bearer";
            token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "vk" | "kick" | "zoom";
            scopes?: string[] | undefined;
            callbackURL?: string | undefined;
        }> & Record<string, any>) | undefined;
        query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
        params?: Record<string, any> | undefined;
        duplex?: "full" | "half" | undefined;
        jsonParser?: ((text: string) => Promise<any> | any) | undefined;
        retry?: better_auth_react.RetryOptions | undefined;
        retryAttempt?: number | undefined;
        output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
        errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
        disableValidation?: boolean | undefined;
    }>(data_0: better_auth_dist_shared_better_auth_CYegVoq1.P<{
        provider: "apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "vk" | "kick" | "zoom";
        scopes?: string[] | undefined;
        callbackURL?: string | undefined;
    } & {
        fetchOptions?: FetchOptions | undefined;
    }>, data_1?: FetchOptions | undefined) => Promise<better_auth_react.BetterFetchResponse<{
        url: string;
        redirect: boolean;
    }, {
        code?: string;
        message?: string;
    }, FetchOptions["throw"] extends true ? true : false>>;
} & {
    listAccounts: <FetchOptions extends {
        method?: string | undefined;
        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 | undefined;
        credentials?: RequestCredentials | undefined;
        integrity?: string | undefined;
        keepalive?: boolean | undefined;
        mode?: RequestMode | undefined;
        priority?: RequestPriority | undefined;
        redirect?: RequestRedirect | undefined;
        referrer?: string | undefined;
        referrerPolicy?: ReferrerPolicy | undefined;
        signal?: (AbortSignal | null) | undefined;
        window?: null | undefined;
        onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
        onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
        onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
        onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
        onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
        hookOptions?: {
            cloneResponse?: boolean;
        } | undefined;
        timeout?: number | undefined;
        customFetchImpl?: better_auth_react.FetchEsque | undefined;
        plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
        baseURL?: string | undefined;
        throw?: boolean | undefined;
        auth?: ({
            type: "Bearer";
            token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<string, any>> & Record<string, any>) | undefined;
        params?: Record<string, any> | undefined;
        duplex?: "full" | "half" | undefined;
        jsonParser?: ((text: string) => Promise<any> | any) | undefined;
        retry?: better_auth_react.RetryOptions | undefined;
        retryAttempt?: number | undefined;
        output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
        errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
        disableValidation?: boolean | undefined;
    }>(data_0?: better_auth_dist_shared_better_auth_CYegVoq1.P<{
        query?: Record<string, any> | undefined;
        fetchOptions?: FetchOptions | undefined;
    }> | undefined, data_1?: FetchOptions | undefined) => Promise<better_auth_react.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: <FetchOptions extends {
            method?: string | undefined;
            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 | undefined;
            credentials?: RequestCredentials | undefined;
            integrity?: string | undefined;
            keepalive?: boolean | undefined;
            mode?: RequestMode | undefined;
            priority?: RequestPriority | undefined;
            redirect?: RequestRedirect | undefined;
            referrer?: string | undefined;
            referrerPolicy?: ReferrerPolicy | undefined;
            signal?: (AbortSignal | null) | undefined;
            window?: null | undefined;
            onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
            onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
            onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
            onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
            onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
            hookOptions?: {
                cloneResponse?: boolean;
            } | undefined;
            timeout?: number | undefined;
            customFetchImpl?: better_auth_react.FetchEsque | undefined;
            plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
            baseURL?: string | undefined;
            throw?: boolean | undefined;
            auth?: ({
                type: "Bearer";
                token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<string, any>) | undefined;
            params?: Record<string, any> | undefined;
            duplex?: "full" | "half" | undefined;
            jsonParser?: ((text: string) => Promise<any> | any) | undefined;
            retry?: better_auth_react.RetryOptions | undefined;
            retryAttempt?: number | undefined;
            output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
            errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
            disableValidation?: boolean | undefined;
        }>(data_0: better_auth_dist_shared_better_auth_CYegVoq1.P<{
            query: {
                token: string;
                callbackURL?: string | undefined;
            };
            fetchOptions?: FetchOptions | undefined;
        }>, data_1?: FetchOptions | undefined) => Promise<better_auth_react.BetterFetchResponse<{
            success: boolean;
            message: string;
        }, {
            code?: string;
            message?: string;
        }, FetchOptions["throw"] extends true ? true : false>>;
    };
} & {
    unlinkAccount: <FetchOptions extends {
        method?: string | undefined;
        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 | undefined;
        credentials?: RequestCredentials | undefined;
        integrity?: string | undefined;
        keepalive?: boolean | undefined;
        mode?: RequestMode | undefined;
        priority?: RequestPriority | undefined;
        redirect?: RequestRedirect | undefined;
        referrer?: string | undefined;
        referrerPolicy?: ReferrerPolicy | undefined;
        signal?: (AbortSignal | null) | undefined;
        window?: null | undefined;
        onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
        onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
        onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
        onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
        onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
        hookOptions?: {
            cloneResponse?: boolean;
        } | undefined;
        timeout?: number | undefined;
        customFetchImpl?: better_auth_react.FetchEsque | undefined;
        plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
        baseURL?: string | undefined;
        throw?: boolean | undefined;
        auth?: ({
            type: "Bearer";
            token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<string, any>) | undefined;
        query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
        params?: Record<string, any> | undefined;
        duplex?: "full" | "half" | undefined;
        jsonParser?: ((text: string) => Promise<any> | any) | undefined;
        retry?: better_auth_react.RetryOptions | undefined;
        retryAttempt?: number | undefined;
        output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
        errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
        disableValidation?: boolean | undefined;
    }>(data_0: better_auth_dist_shared_better_auth_CYegVoq1.P<{
        providerId: string;
        accountId?: string | undefined;
    } & {
        fetchOptions?: FetchOptions | undefined;
    }>, data_1?: FetchOptions | undefined) => Promise<better_auth_react.BetterFetchResponse<{
        status: boolean;
    }, {
        code?: string;
        message?: string;
    }, FetchOptions["throw"] extends true ? true : false>>;
} & {
    refreshToken: <FetchOptions extends {
        method?: string | undefined;
        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 | undefined;
        credentials?: RequestCredentials | undefined;
        integrity?: string | undefined;
        keepalive?: boolean | undefined;
        mode?: RequestMode | undefined;
        priority?: RequestPriority | undefined;
        redirect?: RequestRedirect | undefined;
        referrer?: string | undefined;
        referrerPolicy?: ReferrerPolicy | undefined;
        signal?: (AbortSignal | null) | undefined;
        window?: null | undefined;
        onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
        onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
        onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
        onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
        onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
        hookOptions?: {
            cloneResponse?: boolean;
        } | undefined;
        timeout?: number | undefined;
        customFetchImpl?: better_auth_react.FetchEsque | undefined;
        plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
        baseURL?: string | undefined;
        throw?: boolean | undefined;
        auth?: ({
            type: "Bearer";
            token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<string, any>) | undefined;
        query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
        params?: Record<string, any> | undefined;
        duplex?: "full" | "half" | undefined;
        jsonParser?: ((text: string) => Promise<any> | any) | undefined;
        retry?: better_auth_react.RetryOptions | undefined;
        retryAttempt?: number | undefined;
        output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
        errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
        disableValidation?: boolean | undefined;
    }>(data_0: better_auth_dist_shared_better_auth_CYegVoq1.P<{
        providerId: string;
        accountId?: string | undefined;
        userId?: string | undefined;
    } & {
        fetchOptions?: FetchOptions | undefined;
    }>, data_1?: FetchOptions | undefined) => Promise<better_auth_react.BetterFetchResponse<better_auth_dist_shared_better_auth_Bzjh9zg_.O, {
        code?: string;
        message?: string;
    }, FetchOptions["throw"] extends true ? true : false>>;
} & {
    getAccessToken: <FetchOptions extends {
        method?: string | undefined;
        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 | undefined;
        credentials?: RequestCredentials | undefined;
        integrity?: string | undefined;
        keepalive?: boolean | undefined;
        mode?: RequestMode | undefined;
        priority?: RequestPriority | undefined;
        redirect?: RequestRedirect | undefined;
        referrer?: string | undefined;
        referrerPolicy?: ReferrerPolicy | undefined;
        signal?: (AbortSignal | null) | undefined;
        window?: null | undefined;
        onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
        onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
        onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
        onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
        onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
        hookOptions?: {
            cloneResponse?: boolean;
        } | undefined;
        timeout?: number | undefined;
        customFetchImpl?: better_auth_react.FetchEsque | undefined;
        plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
        baseURL?: string | undefined;
        throw?: boolean | undefined;
        auth?: ({
            type: "Bearer";
            token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<string, any>) | undefined;
        query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
        params?: Record<string, any> | undefined;
        duplex?: "full" | "half" | undefined;
        jsonParser?: ((text: string) => Promise<any> | any) | undefined;
        retry?: better_auth_react.RetryOptions | undefined;
        retryAttempt?: number | undefined;
        output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
        errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
        disableValidation?: boolean | undefined;
    }>(data_0: better_auth_dist_shared_better_auth_CYegVoq1.P<{
        providerId: string;
        accountId?: string | undefined;
        userId?: string | undefined;
    } & {
        fetchOptions?: FetchOptions | undefined;
    }>, data_1?: FetchOptions | undefined) => Promise<better_auth_react.BetterFetchResponse<{
        accessToken: string | undefined;
        accessTokenExpiresAt: Date | undefined;
        scopes: string[];
        idToken: string | undefined;
    }, {
        code?: string;
        message?: string;
    }, FetchOptions["throw"] extends true ? true : false>>;
} & {
    signUp: {
        email: <FetchOptions extends {
            method?: string | undefined;
            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 | undefined;
            credentials?: RequestCredentials | undefined;
            integrity?: string | undefined;
            keepalive?: boolean | undefined;
            mode?: RequestMode | undefined;
            priority?: RequestPriority | undefined;
            redirect?: RequestRedirect | undefined;
            referrer?: string | undefined;
            referrerPolicy?: ReferrerPolicy | undefined;
            signal?: (AbortSignal | null) | undefined;
            window?: null | undefined;
            onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
            onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
            onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
            onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
            onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
            hookOptions?: {
                cloneResponse?: boolean;
            } | undefined;
            timeout?: number | undefined;
            customFetchImpl?: better_auth_react.FetchEsque | undefined;
            plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
            baseURL?: string | undefined;
            throw?: boolean | undefined;
            auth?: ({
                type: "Bearer";
                token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<string, any>) | undefined;
            query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
            params?: Record<string, any> | undefined;
            duplex?: "full" | "half" | undefined;
            jsonParser?: ((text: string) => Promise<any> | any) | undefined;
            retry?: better_auth_react.RetryOptions | undefined;
            retryAttempt?: number | undefined;
            output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
            errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
            disableValidation?: boolean | undefined;
        }>(data_0: better_auth_dist_shared_better_auth_CYegVoq1.P<{
            email: string;
            name: string;
            password: string;
            image?: string;
            callbackURL?: string;
            fetchOptions?: FetchOptions | undefined;
        } & {} & {
            isAnonymous?: boolean | null | undefined;
        } & {} & {
            username?: string | null | undefined;
            displayUsername?: string | null | undefined;
        } & {} & {}>, data_1?: FetchOptions | undefined) => Promise<better_auth_react.BetterFetchResponse<NonNullable<{
            token: null;
            user: {
                id: string;
                email: string;
                name: string;
                image: string | null | undefined;
                emailVerified: boolean;
                createdAt: Date;
                updatedAt: Date;
            };
        } | {
            token: string;
            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>>;
    };
} & {
    updateUser: <FetchOptions extends {
        method?: string | undefined;
        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 | undefined;
        credentials?: RequestCredentials | undefined;
        integrity?: string | undefined;
        keepalive?: boolean | undefined;
        mode?: RequestMode | undefined;
        priority?: RequestPriority | undefined;
        redirect?: RequestRedirect | undefined;
        referrer?: string | undefined;
        referrerPolicy?: ReferrerPolicy | undefined;
        signal?: (AbortSignal | null) | undefined;
        window?: null | undefined;
        onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
        onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
        onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
        onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
        onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
        hookOptions?: {
            cloneResponse?: boolean;
        } | undefined;
        timeout?: number | undefined;
        customFetchImpl?: better_auth_react.FetchEsque | undefined;
        plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
        baseURL?: string | undefined;
        throw?: boolean | undefined;
        auth?: ({
            type: "Bearer";
            token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<Partial<{}> & {
            name?: string;
            image?: string;
        }> & Record<string, any>) | undefined;
        query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
        params?: Record<string, any> | undefined;
        duplex?: "full" | "half" | undefined;
        jsonParser?: ((text: string) => Promise<any> | any) | undefined;
        retry?: better_auth_react.RetryOptions | undefined;
        retryAttempt?: number | undefined;
        output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
        errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
        disableValidation?: boolean | undefined;
    }>(data_0?: better_auth_dist_shared_better_auth_CYegVoq1.P<{
        image?: string | null;
        name?: string;
        fetchOptions?: FetchOptions | undefined;
    } & Partial<{} & {
        isAnonymous?: boolean | null | undefined;
    } & {} & {
        username?: string | null | undefined;
        displayUsername?: string | null | undefined;
    } & {} & {}>> | undefined, data_1?: FetchOptions | undefined) => Promise<better_auth_react.BetterFetchResponse<{
        status: boolean;
    }, {
        code?: string;
        message?: string;
    }, FetchOptions["throw"] extends true ? true : false>>;
} & {
    listSessions: <FetchOptions extends {
        method?: string | undefined;
        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 | undefined;
        credentials?: RequestCredentials | undefined;
        integrity?: string | undefined;
        keepalive?: boolean | undefined;
        mode?: RequestMode | undefined;
        priority?: RequestPriority | undefined;
        redirect?: RequestRedirect | undefined;
        referrer?: string | undefined;
        referrerPolicy?: ReferrerPolicy | undefined;
        signal?: (AbortSignal | null) | undefined;
        window?: null | undefined;
        onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
        onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
        onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
        onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
        onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
        hookOptions?: {
            cloneResponse?: boolean;
        } | undefined;
        timeout?: number | undefined;
        customFetchImpl?: better_auth_react.FetchEsque | undefined;
        plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
        baseURL?: string | undefined;
        throw?: boolean | undefined;
        auth?: ({
            type: "Bearer";
            token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<string, any>> & Record<string, any>) | undefined;
        params?: Record<string, any> | undefined;
        duplex?: "full" | "half" | undefined;
        jsonParser?: ((text: string) => Promise<any> | any) | undefined;
        retry?: better_auth_react.RetryOptions | undefined;
        retryAttempt?: number | undefined;
        output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
        errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
        disableValidation?: boolean | undefined;
    }>(data_0?: better_auth_dist_shared_better_auth_CYegVoq1.P<{
        query?: Record<string, any> | undefined;
        fetchOptions?: FetchOptions | undefined;
    }> | undefined, data_1?: FetchOptions | undefined) => Promise<better_auth_react.BetterFetchResponse<better_auth_dist_shared_better_auth_CYegVoq1.P<{
        id: string;
        createdAt: Date;
        updatedAt: Date;
        userId: string;
        expiresAt: Date;
        token: string;
        ipAddress?: string | null | undefined | undefined;
        userAgent?: string | null | undefined | undefined;
    }>[], {
        code?: string;
        message?: string;
    }, FetchOptions["throw"] extends true ? true : false>>;
} & {
    apiKey: {
        create: <FetchOptions extends {
            method?: string | undefined;
            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 | undefined;
            credentials?: RequestCredentials | undefined;
            integrity?: string | undefined;
            keepalive?: boolean | undefined;
            mode?: RequestMode | undefined;
            priority?: RequestPriority | undefined;
            redirect?: RequestRedirect | undefined;
            referrer?: string | undefined;
            referrerPolicy?: ReferrerPolicy | undefined;
            signal?: (AbortSignal | null) | undefined;
            window?: null | undefined;
            onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
            onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
            onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
            onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
            onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
            hookOptions?: {
                cloneResponse?: boolean;
            } | undefined;
            timeout?: number | undefined;
            customFetchImpl?: better_auth_react.FetchEsque | undefined;
            plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
            baseURL?: string | undefined;
            throw?: boolean | undefined;
            auth?: ({
                type: "Bearer";
                token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<{
                metadata?: any;
                name?: string | undefined;
                userId?: string | undefined;
                prefix?: string | undefined;
                expiresIn?: number | null | undefined;
                permissions?: Record<string, string[]> | undefined;
                rateLimitMax?: number | undefined;
                refillInterval?: number | undefined;
                refillAmount?: number | undefined;
                rateLimitEnabled?: boolean | undefined;
                rateLimitTimeWindow?: number | undefined;
                remaining?: number | null | undefined;
            }> & Record<string, any>) | undefined;
            query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
            params?: Record<string, any> | undefined;
            duplex?: "full" | "half" | undefined;
            jsonParser?: ((text: string) => Promise<any> | any) | undefined;
            retry?: better_auth_react.RetryOptions | undefined;
            retryAttempt?: number | undefined;
            output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
            errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
            disableValidation?: boolean | undefined;
        }>(data_0?: better_auth_dist_shared_better_auth_CYegVoq1.P<{
            metadata?: any;
            name?: string | undefined;
            userId?: string | undefined;
            prefix?: string | undefined;
            expiresIn?: number | null | undefined;
            permissions?: Record<string, string[]> | undefined;
            rateLimitMax?: number | undefined;
            refillInterval?: number | undefined;
            refillAmount?: number | undefined;
            rateLimitEnabled?: boolean | undefined;
            rateLimitTimeWindow?: number | undefined;
            remaining?: number | null | undefined;
        } & {
            fetchOptions?: FetchOptions | undefined;
        }> | undefined, data_1?: FetchOptions | undefined) => Promise<better_auth_react.BetterFetchResponse<{
            key: string;
            metadata: any;
            permissions: any;
            id: string;
            name: string | null;
            start: string | null;
            prefix: string | null;
            userId: string;
            refillInterval: number | null;
            refillAmount: number | null;
            lastRefillAt: Date | null;
            enabled: boolean;
            rateLimitEnabled: boolean;
            rateLimitTimeWindow: number | null;
            rateLimitMax: number | null;
            requestCount: number;
            remaining: number | null;
            lastRequest: Date | null;
            expiresAt: Date | null;
            createdAt: Date;
            updatedAt: Date;
        }, {
            code?: string;
            message?: string;
        }, FetchOptions["throw"] extends true ? true : false>>;
    };
} & {
    apiKey: {
        get: <FetchOptions extends {
            method?: string | undefined;
            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 | undefined;
            credentials?: RequestCredentials | undefined;
            integrity?: string | undefined;
            keepalive?: boolean | undefined;
            mode?: RequestMode | undefined;
            priority?: RequestPriority | undefined;
            redirect?: RequestRedirect | undefined;
            referrer?: string | undefined;
            referrerPolicy?: ReferrerPolicy | undefined;
            signal?: (AbortSignal | null) | undefined;
            window?: null | undefined;
            onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
            onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
            onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
            onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
            onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
            hookOptions?: {
                cloneResponse?: boolean;
            } | undefined;
            timeout?: number | undefined;
            customFetchImpl?: better_auth_react.FetchEsque | undefined;
            plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
            baseURL?: string | undefined;
            throw?: boolean | undefined;
            auth?: ({
                type: "Bearer";
                token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<{
                id: string;
            }> & Record<string, any>) | undefined;
            params?: Record<string, any> | undefined;
            duplex?: "full" | "half" | undefined;
            jsonParser?: ((text: string) => Promise<any> | any) | undefined;
            retry?: better_auth_react.RetryOptions | undefined;
            retryAttempt?: number | undefined;
            output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
            errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
            disableValidation?: boolean | undefined;
        }>(data_0: better_auth_dist_shared_better_auth_CYegVoq1.P<{
            query: {
                id: string;
            };
            fetchOptions?: FetchOptions | undefined;
        }>, data_1?: FetchOptions | undefined) => Promise<better_auth_react.BetterFetchResponse<{
            permissions: {
                [key: string]: string[];
            } | null;
            id: string;
            name: string | null;
            start: string | null;
            prefix: string | null;
            userId: string;
            refillInterval: number | null;
            refillAmount: number | null;
            lastRefillAt: Date | null;
            enabled: boolean;
            rateLimitEnabled: boolean;
            rateLimitTimeWindow: number | null;
            rateLimitMax: number | null;
            requestCount: number;
            remaining: number | null;
            lastRequest: Date | null;
            expiresAt: Date | null;
            createdAt: Date;
            updatedAt: Date;
            metadata: Record<string, any> | null;
        }, {
            code?: string;
            message?: string;
        }, FetchOptions["throw"] extends true ? true : false>>;
    };
} & {
    apiKey: {
        update: <FetchOptions extends {
            method?: string | undefined;
            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 | undefined;
            credentials?: RequestCredentials | undefined;
            integrity?: string | undefined;
            keepalive?: boolean | undefined;
            mode?: RequestMode | undefined;
            priority?: RequestPriority | undefined;
            redirect?: RequestRedirect | undefined;
            referrer?: string | undefined;
            referrerPolicy?: ReferrerPolicy | undefined;
            signal?: (AbortSignal | null) | undefined;
            window?: null | undefined;
            onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
            onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
            onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
            onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
            onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
            hookOptions?: {
                cloneResponse?: boolean;
            } | undefined;
            timeout?: number | undefined;
            customFetchImpl?: better_auth_react.FetchEsque | undefined;
            plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
            baseURL?: string | undefined;
            throw?: boolean | undefined;
            auth?: ({
                type: "Bearer";
                token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<{
                keyId: string;
                metadata?: any;
                name?: string | undefined;
                userId?: string | undefined;
                enabled?: boolean | undefined;
                expiresIn?: number | null | undefined;
                permissions?: Record<string, string[]> | null | undefined;
                rateLimitMax?: number | undefined;
                refillInterval?: number | undefined;
                refillAmount?: number | undefined;
                rateLimitEnabled?: boolean | undefined;
                rateLimitTimeWindow?: number | undefined;
                remaining?: number | undefined;
            }> & Record<string, any>) | undefined;
            query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
            params?: Record<string, any> | undefined;
            duplex?: "full" | "half" | undefined;
            jsonParser?: ((text: string) => Promise<any> | any) | undefined;
            retry?: better_auth_react.RetryOptions | undefined;
            retryAttempt?: number | undefined;
            output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
            errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
            disableValidation?: boolean | undefined;
        }>(data_0: better_auth_dist_shared_better_auth_CYegVoq1.P<{
            keyId: string;
            metadata?: any;
            name?: string | undefined;
            userId?: string | undefined;
            enabled?: boolean | undefined;
            expiresIn?: number | null | undefined;
            permissions?: Record<string, string[]> | null | undefined;
            rateLimitMax?: number | undefined;
            refillInterval?: number | undefined;
            refillAmount?: number | undefined;
            rateLimitEnabled?: boolean | undefined;
            rateLimitTimeWindow?: number | undefined;
            remaining?: number | undefined;
        } & {
            fetchOptions?: FetchOptions | undefined;
        }>, data_1?: FetchOptions | undefined) => Promise<better_auth_react.BetterFetchResponse<{
            permissions: {
                [key: string]: string[];
            } | null;
            id: string;
            name: string | null;
            start: string | null;
            prefix: string | null;
            userId: string;
            refillInterval: number | null;
            refillAmount: number | null;
            lastRefillAt: Date | null;
            enabled: boolean;
            rateLimitEnabled: boolean;
            rateLimitTimeWindow: number | null;
            rateLimitMax: number | null;
            requestCount: number;
            remaining: number | null;
            lastRequest: Date | null;
            expiresAt: Date | null;
            createdAt: Date;
            updatedAt: Date;
            metadata: Record<string, any> | null;
        }, {
            code?: string;
            message?: string;
        }, FetchOptions["throw"] extends true ? true : false>>;
    };
} & {
    apiKey: {
        delete: <FetchOptions extends {
            method?: string | undefined;
            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 | undefined;
            credentials?: RequestCredentials | undefined;
            integrity?: string | undefined;
            keepalive?: boolean | undefined;
            mode?: RequestMode | undefined;
            priority?: RequestPriority | undefined;
            redirect?: RequestRedirect | undefined;
            referrer?: string | undefined;
            referrerPolicy?: ReferrerPolicy | undefined;
            signal?: (AbortSignal | null) | undefined;
            window?: null | undefined;
            onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
            onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
            onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
            onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
            onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
            hookOptions?: {
                cloneResponse?: boolean;
            } | undefined;
            timeout?: number | undefined;
            customFetchImpl?: better_auth_react.FetchEsque | undefined;
            plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
            baseURL?: string | undefined;
            throw?: boolean | undefined;
            auth?: ({
                type: "Bearer";
                token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<{
                keyId: string;
            }> & Record<string, any>) | undefined;
            query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
            params?: Record<string, any> | undefined;
            duplex?: "full" | "half" | undefined;
            jsonParser?: ((text: string) => Promise<any> | any) | undefined;
            retry?: better_auth_react.RetryOptions | undefined;
            retryAttempt?: number | undefined;
            output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
            errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
            disableValidation?: boolean | undefined;
        }>(data_0: better_auth_dist_shared_better_auth_CYegVoq1.P<{
            keyId: string;
        } & {
            fetchOptions?: FetchOptions | undefined;
        }>, data_1?: FetchOptions | undefined) => Promise<better_auth_react.BetterFetchResponse<{
            success: boolean;
        }, {
            code?: string;
            message?: string;
        }, FetchOptions["throw"] extends true ? true : false>>;
    };
} & {
    apiKey: {
        list: <FetchOptions extends {
            method?: string | undefined;
            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 | undefined;
            credentials?: RequestCredentials | undefined;
            integrity?: string | undefined;
            keepalive?: boolean | undefined;
            mode?: RequestMode | undefined;
            priority?: RequestPriority | undefined;
            redirect?: RequestRedirect | undefined;
            referrer?: string | undefined;
            referrerPolicy?: ReferrerPolicy | undefined;
            signal?: (AbortSignal | null) | undefined;
            window?: null | undefined;
            onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
            onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
            onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
            onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
            onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
            hookOptions?: {
                cloneResponse?: boolean;
            } | undefined;
            timeout?: number | undefined;
            customFetchImpl?: better_auth_react.FetchEsque | undefined;
            plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
            baseURL?: string | undefined;
            throw?: boolean | undefined;
            auth?: ({
                type: "Bearer";
                token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<string, any>> & Record<string, any>) | undefined;
            params?: Record<string, any> | undefined;
            duplex?: "full" | "half" | undefined;
            jsonParser?: ((text: string) => Promise<any> | any) | undefined;
            retry?: better_auth_react.RetryOptions | undefined;
            retryAttempt?: number | undefined;
            output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
            errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
            disableValidation?: boolean | undefined;
        }>(data_0?: better_auth_dist_shared_better_auth_CYegVoq1.P<{
            query?: Record<string, any> | undefined;
            fetchOptions?: FetchOptions | undefined;
        }> | undefined, data_1?: FetchOptions | undefined) => Promise<better_auth_react.BetterFetchResponse<{
            permissions: {
                [key: string]: string[];
            } | null;
            id: string;
            name: string | null;
            start: string | null;
            prefix: string | null;
            userId: string;
            refillInterval: number | null;
            refillAmount: number | null;
            lastRefillAt: Date | null;
            enabled: boolean;
            rateLimitEnabled: boolean;
            rateLimitTimeWindow: number | null;
            rateLimitMax: number | null;
            requestCount: number;
            remaining: number | null;
            lastRequest: Date | null;
            expiresAt: Date | null;
            createdAt: Date;
            updatedAt: Date;
            metadata: Record<string, any> | null;
        }[], {
            code?: string;
            message?: string;
        }, FetchOptions["throw"] extends true ? true : false>>;
    };
} & {
    multiSession: {
        listDeviceSessions: <FetchOptions extends {
            method?: string | undefined;
            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 | undefined;
            credentials?: RequestCredentials | undefined;
            integrity?: string | undefined;
            keepalive?: boolean | undefined;
            mode?: RequestMode | undefined;
            priority?: RequestPriority | undefined;
            redirect?: RequestRedirect | undefined;
            referrer?: string | undefined;
            referrerPolicy?: ReferrerPolicy | undefined;
            signal?: (AbortSignal | null) | undefined;
            window?: null | undefined;
            onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
            onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
            onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
            onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
            onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
            hookOptions?: {
                cloneResponse?: boolean;
            } | undefined;
            timeout?: number | undefined;
            customFetchImpl?: better_auth_react.FetchEsque | undefined;
            plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
            baseURL?: string | undefined;
            throw?: boolean | undefined;
            auth?: ({
                type: "Bearer";
                token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<string, any>> & Record<string, any>) | undefined;
            params?: Record<string, any> | undefined;
            duplex?: "full" | "half" | undefined;
            jsonParser?: ((text: string) => Promise<any> | any) | undefined;
            retry?: better_auth_react.RetryOptions | undefined;
            retryAttempt?: number | undefined;
            output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
            errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
            disableValidation?: boolean | undefined;
        }>(data_0?: better_auth_dist_shared_better_auth_CYegVoq1.P<{
            query?: Record<string, any> | undefined;
            fetchOptions?: FetchOptions | undefined;
        }> | undefined, data_1?: FetchOptions | undefined) => Promise<better_auth_react.BetterFetchResponse<{
            session: better_auth_types.Session;
            user: better_auth_types.User;
        }[], {
            code?: string;
            message?: string;
        }, FetchOptions["throw"] extends true ? true : false>>;
    };
} & {
    multiSession: {
        setActive: <FetchOptions extends {
            method?: string | undefined;
            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 | undefined;
            credentials?: RequestCredentials | undefined;
            integrity?: string | undefined;
            keepalive?: boolean | undefined;
            mode?: RequestMode | undefined;
            priority?: RequestPriority | undefined;
            redirect?: RequestRedirect | undefined;
            referrer?: string | undefined;
            referrerPolicy?: ReferrerPolicy | undefined;
            signal?: (AbortSignal | null) | undefined;
            window?: null | undefined;
            onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
            onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
            onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
            onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
            onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
            hookOptions?: {
                cloneResponse?: boolean;
            } | undefined;
            timeout?: number | undefined;
            customFetchImpl?: better_auth_react.FetchEsque | undefined;
            plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
            baseURL?: string | undefined;
            throw?: boolean | undefined;
            auth?: ({
                type: "Bearer";
                token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<string, any>) | undefined;
            query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
            params?: Record<string, any> | undefined;
            duplex?: "full" | "half" | undefined;
            jsonParser?: ((text: string) => Promise<any> | any) | undefined;
            retry?: better_auth_react.RetryOptions | undefined;
            retryAttempt?: number | undefined;
            output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
            errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
            disableValidation?: boolean | undefined;
        }>(data_0: better_auth_dist_shared_better_auth_CYegVoq1.P<{
            sessionToken: string;
        } & {
            fetchOptions?: FetchOptions | undefined;
        }>, data_1?: FetchOptions | undefined) => Promise<better_auth_react.BetterFetchResponse<{
            session: better_auth_types.Session & Record<string, any>;
            user: better_auth_types.User & Record<string, any>;
        }, {
            code?: string;
            message?: string;
        }, FetchOptions["throw"] extends true ? true : false>>;
    };
} & {
    multiSession: {
        revoke: <FetchOptions extends {
            method?: string | undefined;
            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 | undefined;
            credentials?: RequestCredentials | undefined;
            integrity?: string | undefined;
            keepalive?: boolean | undefined;
            mode?: RequestMode | undefined;
            priority?: RequestPriority | undefined;
            redirect?: RequestRedirect | undefined;
            referrer?: string | undefined;
            referrerPolicy?: ReferrerPolicy | undefined;
            signal?: (AbortSignal | null) | undefined;
            window?: null | undefined;
            onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
            onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
            onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
            onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
            onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
            hookOptions?: {
                cloneResponse?: boolean;
            } | undefined;
            timeout?: number | undefined;
            customFetchImpl?: better_auth_react.FetchEsque | undefined;
            plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
            baseURL?: string | undefined;
            throw?: boolean | undefined;
            auth?: ({
                type: "Bearer";
                token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<string, any>) | undefined;
            query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
            params?: Record<string, any> | undefined;
            duplex?: "full" | "half" | undefined;
            jsonParser?: ((text: string) => Promise<any> | any) | undefined;
            retry?: better_auth_react.RetryOptions | undefined;
            retryAttempt?: number | undefined;
            output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
            errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
            disableValidation?: boolean | undefined;
        }>(data_0: better_auth_dist_shared_better_auth_CYegVoq1.P<{
            sessionToken: string;
        } & {
            fetchOptions?: FetchOptions | undefined;
        }>, data_1?: FetchOptions | undefined) => Promise<better_auth_react.BetterFetchResponse<{
            status: boolean;
        }, {
            code?: string;
            message?: string;
        }, FetchOptions["throw"] extends true ? true : false>>;
    };
} & {
    passkey: {
        generateRegisterOptions: <FetchOptions extends {
            method?: string | undefined;
            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 | undefined;
            credentials?: RequestCredentials | undefined;
            integrity?: string | undefined;
            keepalive?: boolean | undefined;
            mode?: RequestMode | undefined;
            priority?: RequestPriority | undefined;
            redirect?: RequestRedirect | undefined;
            referrer?: string | undefined;
            referrerPolicy?: ReferrerPolicy | undefined;
            signal?: (AbortSignal | null) | undefined;
            window?: null | undefined;
            onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
            onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
            onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
            onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
            onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
            hookOptions?: {
                cloneResponse?: boolean;
            } | undefined;
            timeout?: number | undefined;
            customFetchImpl?: better_auth_react.FetchEsque | undefined;
            plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
            baseURL?: string | undefined;
            throw?: boolean | undefined;
            auth?: ({
                type: "Bearer";
                token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<{
                authenticatorAttachment?: "platform" | "cross-platform" | undefined;
            }> & Record<string, any>) | undefined;
            params?: Record<string, any> | undefined;
            duplex?: "full" | "half" | undefined;
            jsonParser?: ((text: string) => Promise<any> | any) | undefined;
            retry?: better_auth_react.RetryOptions | undefined;
            retryAttempt?: number | undefined;
            output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
            errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
            disableValidation?: boolean | undefined;
        }>(data_0?: better_auth_dist_shared_better_auth_CYegVoq1.P<{
            query?: {
                authenticatorAttachment?: "platform" | "cross-platform" | undefined;
            } | undefined;
            fetchOptions?: FetchOptions | undefined;
        }> | undefined, data_1?: FetchOptions | undefined) => Promise<better_auth_react.BetterFetchResponse<better_auth_client_plugins.PublicKeyCredentialCreationOptionsJSON, {
            code?: string;
            message?: string;
        }, FetchOptions["throw"] extends true ? true : false>>;
    };
} & {
    passkey: {
        generateAuthenticateOptions: <FetchOptions extends {
            method?: string | undefined;
            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 | undefined;
            credentials?: RequestCredentials | undefined;
            integrity?: string | undefined;
            keepalive?: boolean | undefined;
            mode?: RequestMode | undefined;
            priority?: RequestPriority | undefined;
            redirect?: RequestRedirect | undefined;
            referrer?: string | undefined;
            referrerPolicy?: ReferrerPolicy | undefined;
            signal?: (AbortSignal | null) | undefined;
            window?: null | undefined;
            onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
            onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
            onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
            onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
            onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
            hookOptions?: {
                cloneResponse?: boolean;
            } | undefined;
            timeout?: number | undefined;
            customFetchImpl?: better_auth_react.FetchEsque | undefined;
            plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
            baseURL?: string | undefined;
            throw?: boolean | undefined;
            auth?: ({
                type: "Bearer";
                token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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 | undefined;
            }> & Record<string, any>) | undefined;
            query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
            params?: Record<string, any> | undefined;
            duplex?: "full" | "half" | undefined;
            jsonParser?: ((text: string) => Promise<any> | any) | undefined;
            retry?: better_auth_react.RetryOptions | undefined;
            retryAttempt?: number | undefined;
            output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
            errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
            disableValidation?: boolean | undefined;
        }>(data_0?: better_auth_dist_shared_better_auth_CYegVoq1.P<{
            query?: Record<string, any> | undefined;
            fetchOptions?: FetchOptions | undefined;
        }> | undefined, data_1?: FetchOptions | undefined) => Promise<better_auth_react.BetterFetchResponse<better_auth_client_plugins.PublicKeyCredentialRequestOptionsJSON, {
            code?: string;
            message?: string;
        }, FetchOptions["throw"] extends true ? true : false>>;
    };
} & {
    passkey: {
        verifyRegistration: <FetchOptions extends {
            method?: string | undefined;
            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 | undefined;
            credentials?: RequestCredentials | undefined;
            integrity?: string | undefined;
            keepalive?: boolean | undefined;
            mode?: RequestMode | undefined;
            priority?: RequestPriority | undefined;
            redirect?: RequestRedirect | undefined;
            referrer?: string | undefined;
            referrerPolicy?: ReferrerPolicy | undefined;
            signal?: (AbortSignal | null) | undefined;
            window?: null | undefined;
            onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
            onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
            onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
            onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
            onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
            hookOptions?: {
                cloneResponse?: boolean;
            } | undefined;
            timeout?: number | undefined;
            customFetchImpl?: better_auth_react.FetchEsque | undefined;
            plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
            baseURL?: string | undefined;
            throw?: boolean | undefined;
            auth?: ({
                type: "Bearer";
                token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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 | undefined;
                response?: any;
            }> & Record<string, any>) | undefined;
            query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
            params?: Record<string, any> | undefined;
            duplex?: "full" | "half" | undefined;
            jsonParser?: ((text: string) => Promise<any> | any) | undefined;
            retry?: better_auth_react.RetryOptions | undefined;
            retryAttempt?: number | undefined;
            output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
            errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
            disableValidation?: boolean | undefined;
        }>(data_0?: better_auth_dist_shared_better_auth_CYegVoq1.P<{
            name?: string | undefined;
            response?: any;
        } & {
            fetchOptions?: FetchOptions | undefined;
        }> | undefined, data_1?: FetchOptions | undefined) => Promise<better_auth_react.BetterFetchResponse<better_auth_plugins_passkey.Passkey, {
            code?: string;
            message?: string;
        }, FetchOptions["throw"] extends true ? true : false>>;
    };
} & {
    passkey: {
        verifyAuthentication: <FetchOptions extends {
            method?: string | undefined;
            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 | undefined;
            credentials?: RequestCredentials | undefined;
            integrity?: string | undefined;
            keepalive?: boolean | undefined;
            mode?: RequestMode | undefined;
            priority?: RequestPriority | undefined;
            redirect?: RequestRedirect | undefined;
            referrer?: string | undefined;
            referrerPolicy?: ReferrerPolicy | undefined;
            signal?: (AbortSignal | null) | undefined;
            window?: null | undefined;
            onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
            onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
            onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
            onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
            onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
            hookOptions?: {
                cloneResponse?: boolean;
            } | undefined;
            timeout?: number | undefined;
            customFetchImpl?: better_auth_react.FetchEsque | undefined;
            plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
            baseURL?: string | undefined;
            throw?: boolean | undefined;
            auth?: ({
                type: "Bearer";
                token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<{
                response: better_auth_client_plugins.AuthenticationResponseJSON;
            }> & Record<string, any>) | undefined;
            query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
            params?: Record<string, any> | undefined;
            duplex?: "full" | "half" | undefined;
            jsonParser?: ((text: string) => Promise<any> | any) | undefined;
            retry?: better_auth_react.RetryOptions | undefined;
            retryAttempt?: number | undefined;
            output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
            errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
            disableValidation?: boolean | undefined;
        }>(data_0: better_auth_dist_shared_better_auth_CYegVoq1.P<{
            response: better_auth_client_plugins.AuthenticationResponseJSON;
        } & {
            fetchOptions?: FetchOptions | undefined;
        }>, data_1?: FetchOptions | undefined) => Promise<better_auth_react.BetterFetchResponse<{
            session: {
                id: string;
                createdAt: Date;
                updatedAt: Date;
                userId: string;
                expiresAt: Date;
                token: string;
                ipAddress?: string | null | undefined;
                userAgent?: string | null | undefined;
            };
        }, {
            code?: string;
            message?: string;
        }, FetchOptions["throw"] extends true ? true : false>>;
    };
} & {
    passkey: {
        listUserPasskeys: <FetchOptions extends {
            method?: string | undefined;
            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 | undefined;
            credentials?: RequestCredentials | undefined;
            integrity?: string | undefined;
            keepalive?: boolean | undefined;
            mode?: RequestMode | undefined;
            priority?: RequestPriority | undefined;
            redirect?: RequestRedirect | undefined;
            referrer?: string | undefined;
            referrerPolicy?: ReferrerPolicy | undefined;
            signal?: (AbortSignal | null) | undefined;
            window?: null | undefined;
            onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
            onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
            onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
            onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
            onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
            hookOptions?: {
                cloneResponse?: boolean;
            } | undefined;
            timeout?: number | undefined;
            customFetchImpl?: better_auth_react.FetchEsque | undefined;
            plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
            baseURL?: string | undefined;
            throw?: boolean | undefined;
            auth?: ({
                type: "Bearer";
                token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<string, any>> & Record<string, any>) | undefined;
            params?: Record<string, any> | undefined;
            duplex?: "full" | "half" | undefined;
            jsonParser?: ((text: string) => Promise<any> | any) | undefined;
            retry?: better_auth_react.RetryOptions | undefined;
            retryAttempt?: number | undefined;
            output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
            errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
            disableValidation?: boolean | undefined;
        }>(data_0?: better_auth_dist_shared_better_auth_CYegVoq1.P<{
            query?: Record<string, any> | undefined;
            fetchOptions?: FetchOptions | undefined;
        }> | undefined, data_1?: FetchOptions | undefined) => Promise<better_auth_react.BetterFetchResponse<better_auth_plugins_passkey.Passkey[], {
            code?: string;
            message?: string;
        }, FetchOptions["throw"] extends true ? true : false>>;
    };
} & {
    passkey: {
        deletePasskey: <FetchOptions extends {
            method?: string | undefined;
            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 | undefined;
            credentials?: RequestCredentials | undefined;
            integrity?: string | undefined;
            keepalive?: boolean | undefined;
            mode?: RequestMode | undefined;
            priority?: RequestPriority | undefined;
            redirect?: RequestRedirect | undefined;
            referrer?: string | undefined;
            referrerPolicy?: ReferrerPolicy | undefined;
            signal?: (AbortSignal | null) | undefined;
            window?: null | undefined;
            onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
            onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
            onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
            onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
            onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
            hookOptions?: {
                cloneResponse?: boolean;
            } | undefined;
            timeout?: number | undefined;
            customFetchImpl?: better_auth_react.FetchEsque | undefined;
            plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
            baseURL?: string | undefined;
            throw?: boolean | undefined;
            auth?: ({
                type: "Bearer";
                token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<{
                id: string;
            }> & Record<string, any>) | undefined;
            query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
            params?: Record<string, any> | undefined;
            duplex?: "full" | "half" | undefined;
            jsonParser?: ((text: string) => Promise<any> | any) | undefined;
            retry?: better_auth_react.RetryOptions | undefined;
            retryAttempt?: number | undefined;
            output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
            errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
            disableValidation?: boolean | undefined;
        }>(data_0: better_auth_dist_shared_better_auth_CYegVoq1.P<{
            id: string;
        } & {
            fetchOptions?: FetchOptions | undefined;
        }>, data_1?: FetchOptions | undefined) => Promise<better_auth_react.BetterFetchResponse<never, {
            code?: string;
            message?: string;
        }, FetchOptions["throw"] extends true ? true : false>>;
    };
} & {
    passkey: {
        updatePasskey: <FetchOptions extends {
            method?: string | undefined;
            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 | undefined;
            credentials?: RequestCredentials | undefined;
            integrity?: string | undefined;
            keepalive?: boolean | undefined;
            mode?: RequestMode | undefined;
            priority?: RequestPriority | undefined;
            redirect?: RequestRedirect | undefined;
            referrer?: string | undefined;
            referrerPolicy?: ReferrerPolicy | undefined;
            signal?: (AbortSignal | null) | undefined;
            window?: null | undefined;
            onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
            onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
            onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
            onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
            onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
            hookOptions?: {
                cloneResponse?: boolean;
            } | undefined;
            timeout?: number | undefined;
            customFetchImpl?: better_auth_react.FetchEsque | undefined;
            plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
            baseURL?: string | undefined;
            throw?: boolean | undefined;
            auth?: ({
                type: "Bearer";
                token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<{
                id: string;
                name: string;
            }> & Record<string, any>) | undefined;
            query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
            params?: Record<string, any> | undefined;
            duplex?: "full" | "half" | undefined;
            jsonParser?: ((text: string) => Promise<any> | any) | undefined;
            retry?: better_auth_react.RetryOptions | undefined;
            retryAttempt?: number | undefined;
            output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
            errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
            disableValidation?: boolean | undefined;
        }>(data_0: better_auth_dist_shared_better_auth_CYegVoq1.P<{
            id: string;
            name: string;
        } & {
            fetchOptions?: FetchOptions | undefined;
        }>, data_1?: FetchOptions | undefined) => Promise<better_auth_react.BetterFetchResponse<{
            passkey: better_auth_plugins_passkey.Passkey;
        }, {
            code?: string;
            message?: string;
        }, FetchOptions["throw"] extends true ? true : false>>;
    };
} & {
    signIn: {
        oauth2: <FetchOptions extends {
            method?: string | undefined;
            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 | undefined;
            credentials?: RequestCredentials | undefined;
            integrity?: string | undefined;
            keepalive?: boolean | undefined;
            mode?: RequestMode | undefined;
            priority?: RequestPriority | undefined;
            redirect?: RequestRedirect | undefined;
            referrer?: string | undefined;
            referrerPolicy?: ReferrerPolicy | undefined;
            signal?: (AbortSignal | null) | undefined;
            window?: null | undefined;
            onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
            onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
            onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
            onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
            onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
            hookOptions?: {
                cloneResponse?: boolean;
            } | undefined;
            timeout?: number | undefined;
            customFetchImpl?: better_auth_react.FetchEsque | undefined;
            plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
            baseURL?: string | undefined;
            throw?: boolean | undefined;
            auth?: ({
                type: "Bearer";
                token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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;
                scopes?: string[] | undefined;
                callbackURL?: string | undefined;
                requestSignUp?: boolean | undefined;
                errorCallbackURL?: string | undefined;
                newUserCallbackURL?: string | undefined;
                disableRedirect?: boolean | undefined;
            }> & Record<string, any>) | undefined;
            query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
            params?: Record<string, any> | undefined;
            duplex?: "full" | "half" | undefined;
            jsonParser?: ((text: string) => Promise<any> | any) | undefined;
            retry?: better_auth_react.RetryOptions | undefined;
            retryAttempt?: number | undefined;
            output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
            errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
            disableValidation?: boolean | undefined;
        }>(data_0: better_auth_dist_shared_better_auth_CYegVoq1.P<{
            providerId: string;
            scopes?: string[] | undefined;
            callbackURL?: string | undefined;
            requestSignUp?: boolean | undefined;
            errorCallbackURL?: string | undefined;
            newUserCallbackURL?: string | undefined;
            disableRedirect?: boolean | undefined;
        } & {
            fetchOptions?: FetchOptions | undefined;
        }>, data_1?: FetchOptions | undefined) => Promise<better_auth_react.BetterFetchResponse<{
            url: string;
            redirect: boolean;
        }, {
            code?: string;
            message?: string;
        }, FetchOptions["throw"] extends true ? true : false>>;
    };
} & {
    oauth2: {
        callback: {
            ":providerid": <FetchOptions extends {
                method?: string | undefined;
                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 | undefined;
                credentials?: RequestCredentials | undefined;
                integrity?: string | undefined;
                keepalive?: boolean | undefined;
                mode?: RequestMode | undefined;
                priority?: RequestPriority | undefined;
                redirect?: RequestRedirect | undefined;
                referrer?: string | undefined;
                referrerPolicy?: ReferrerPolicy | undefined;
                signal?: (AbortSignal | null) | undefined;
                window?: null | undefined;
                onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
                onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
                onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
                onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
                onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
                hookOptions?: {
                    cloneResponse?: boolean;
                } | undefined;
                timeout?: number | undefined;
                customFetchImpl?: better_auth_react.FetchEsque | undefined;
                plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
                baseURL?: string | undefined;
                throw?: boolean | undefined;
                auth?: ({
                    type: "Bearer";
                    token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<{
                    state?: string | undefined;
                    code?: string | undefined;
                    error?: string | undefined;
                    error_description?: string | undefined;
                }> & Record<string, any>) | undefined;
                params?: {
                    providerId: string;
                } | undefined;
                duplex?: "full" | "half" | undefined;
                jsonParser?: ((text: string) => Promise<any> | any) | undefined;
                retry?: better_auth_react.RetryOptions | undefined;
                retryAttempt?: number | undefined;
                output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
                errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
                disableValidation?: boolean | undefined;
            }>(data_0: better_auth_dist_shared_better_auth_CYegVoq1.P<{
                query: {
                    state?: string | undefined;
                    code?: string | undefined;
                    error?: string | undefined;
                    error_description?: string | undefined;
                };
                fetchOptions?: FetchOptions | undefined;
            }>, data_1?: FetchOptions | undefined) => Promise<better_auth_react.BetterFetchResponse<NonNullable<void>, {
                code?: string;
                message?: string;
            }, FetchOptions["throw"] extends true ? true : false>>;
        };
    };
} & {
    oauth2: {
        link: <FetchOptions extends {
            method?: string | undefined;
            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 | undefined;
            credentials?: RequestCredentials | undefined;
            integrity?: string | undefined;
            keepalive?: boolean | undefined;
            mode?: RequestMode | undefined;
            priority?: RequestPriority | undefined;
            redirect?: RequestRedirect | undefined;
            referrer?: string | undefined;
            referrerPolicy?: ReferrerPolicy | undefined;
            signal?: (AbortSignal | null) | undefined;
            window?: null | undefined;
            onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
            onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
            onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
            onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
            onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
            hookOptions?: {
                cloneResponse?: boolean;
            } | undefined;
            timeout?: number | undefined;
            customFetchImpl?: better_auth_react.FetchEsque | undefined;
            plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
            baseURL?: string | undefined;
            throw?: boolean | undefined;
            auth?: ({
                type: "Bearer";
                token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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;
                callbackURL: string;
            }> & Record<string, any>) | undefined;
            query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
            params?: Record<string, any> | undefined;
            duplex?: "full" | "half" | undefined;
            jsonParser?: ((text: string) => Promise<any> | any) | undefined;
            retry?: better_auth_react.RetryOptions | undefined;
            retryAttempt?: number | undefined;
            output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
            errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
            disableValidation?: boolean | undefined;
        }>(data_0: better_auth_dist_shared_better_auth_CYegVoq1.P<{
            providerId: string;
            callbackURL: string;
        } & {
            fetchOptions?: FetchOptions | undefined;
        }>, data_1?: FetchOptions | undefined) => Promise<better_auth_react.BetterFetchResponse<{
            url: string;
            redirect: boolean;
        }, {
            code?: string;
            message?: string;
        }, FetchOptions["throw"] extends true ? true : false>>;
    };
} & {
    signIn: {
        anonymous: <FetchOptions extends {
            method?: string | undefined;
            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 | undefined;
            credentials?: RequestCredentials | undefined;
            integrity?: string | undefined;
            keepalive?: boolean | undefined;
            mode?: RequestMode | undefined;
            priority?: RequestPriority | undefined;
            redirect?: RequestRedirect | undefined;
            referrer?: string | undefined;
            referrerPolicy?: ReferrerPolicy | undefined;
            signal?: (AbortSignal | null) | undefined;
            window?: null | undefined;
            onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
            onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
            onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
            onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
            onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
            hookOptions?: {
                cloneResponse?: boolean;
            } | undefined;
            timeout?: number | undefined;
            customFetchImpl?: better_auth_react.FetchEsque | undefined;
            plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
            baseURL?: string | undefined;
            throw?: boolean | undefined;
            auth?: ({
                type: "Bearer";
                token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<string, any>> & Record<string, any>) | undefined;
            params?: Record<string, any> | undefined;
            duplex?: "full" | "half" | undefined;
            jsonParser?: ((text: string) => Promise<any> | any) | undefined;
            retry?: better_auth_react.RetryOptions | undefined;
            retryAttempt?: number | undefined;
            output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
            errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
            disableValidation?: boolean | undefined;
        }>(data_0?: better_auth_dist_shared_better_auth_CYegVoq1.P<{
            query?: Record<string, any> | undefined;
            fetchOptions?: FetchOptions | undefined;
        }> | undefined, data_1?: FetchOptions | undefined) => Promise<better_auth_react.BetterFetchResponse<{
            token: string;
            user: {
                id: string;
                email: string;
                emailVerified: boolean;
                name: string;
                createdAt: Date;
                updatedAt: Date;
            };
        }, {
            code?: string;
            message?: string;
        }, FetchOptions["throw"] extends true ? true : false>>;
    };
} & {
    signIn: {
        username: <FetchOptions extends {
            method?: string | undefined;
            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 | undefined;
            credentials?: RequestCredentials | undefined;
            integrity?: string | undefined;
            keepalive?: boolean | undefined;
            mode?: RequestMode | undefined;
            priority?: RequestPriority | undefined;
            redirect?: RequestRedirect | undefined;
            referrer?: string | undefined;
            referrerPolicy?: ReferrerPolicy | undefined;
            signal?: (AbortSignal | null) | undefined;
            window?: null | undefined;
            onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
            onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
            onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
            onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
            onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
            hookOptions?: {
                cloneResponse?: boolean;
            } | undefined;
            timeout?: number | undefined;
            customFetchImpl?: better_auth_react.FetchEsque | undefined;
            plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
            baseURL?: string | undefined;
            throw?: boolean | undefined;
            auth?: ({
                type: "Bearer";
                token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<{
                password: string;
                username: string;
                rememberMe?: boolean | undefined;
            }> & Record<string, any>) | undefined;
            query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
            params?: Record<string, any> | undefined;
            duplex?: "full" | "half" | undefined;
            jsonParser?: ((text: string) => Promise<any> | any) | undefined;
            retry?: better_auth_react.RetryOptions | undefined;
            retryAttempt?: number | undefined;
            output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
            errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
            disableValidation?: boolean | undefined;
        }>(data_0: better_auth_dist_shared_better_auth_CYegVoq1.P<{
            password: string;
            username: string;
            rememberMe?: boolean | undefined;
        } & {
            fetchOptions?: FetchOptions | undefined;
        }>, data_1?: FetchOptions | undefined) => Promise<better_auth_react.BetterFetchResponse<{
            token: string;
            user: {
                id: string;
                email: string;
                emailVerified: boolean;
                username: string;
                name: string;
                image: string | null | undefined;
                createdAt: Date;
                updatedAt: Date;
            };
        }, {
            code?: string;
            message?: string;
        }, FetchOptions["throw"] extends true ? true : false>>;
    };
} & {
    signIn: {
        magicLink: <FetchOptions extends {
            method?: string | undefined;
            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 | undefined;
            credentials?: RequestCredentials | undefined;
            integrity?: string | undefined;
            keepalive?: boolean | undefined;
            mode?: RequestMode | undefined;
            priority?: RequestPriority | undefined;
            redirect?: RequestRedirect | undefined;
            referrer?: string | undefined;
            referrerPolicy?: ReferrerPolicy | undefined;
            signal?: (AbortSignal | null) | undefined;
            window?: null | undefined;
            onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
            onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
            onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
            onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
            onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
            hookOptions?: {
                cloneResponse?: boolean;
            } | undefined;
            timeout?: number | undefined;
            customFetchImpl?: better_auth_react.FetchEsque | undefined;
            plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
            baseURL?: string | undefined;
            throw?: boolean | undefined;
            auth?: ({
                type: "Bearer";
                token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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;
                name?: string | undefined;
                callbackURL?: string | undefined;
            }> & Record<string, any>) | undefined;
            query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
            params?: Record<string, any> | undefined;
            duplex?: "full" | "half" | undefined;
            jsonParser?: ((text: string) => Promise<any> | any) | undefined;
            retry?: better_auth_react.RetryOptions | undefined;
            retryAttempt?: number | undefined;
            output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
            errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
            disableValidation?: boolean | undefined;
        }>(data_0: better_auth_dist_shared_better_auth_CYegVoq1.P<{
            email: string;
            name?: string | undefined;
            callbackURL?: string | undefined;
        } & {
            fetchOptions?: FetchOptions | undefined;
        }>, data_1?: FetchOptions | undefined) => Promise<better_auth_react.BetterFetchResponse<{
            status: boolean;
        }, {
            code?: string;
            message?: string;
        }, FetchOptions["throw"] extends true ? true : false>>;
    };
} & {
    magicLink: {
        verify: <FetchOptions extends {
            method?: string | undefined;
            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 | undefined;
            credentials?: RequestCredentials | undefined;
            integrity?: string | undefined;
            keepalive?: boolean | undefined;
            mode?: RequestMode | undefined;
            priority?: RequestPriority | undefined;
            redirect?: RequestRedirect | undefined;
            referrer?: string | undefined;
            referrerPolicy?: ReferrerPolicy | undefined;
            signal?: (AbortSignal | null) | undefined;
            window?: null | undefined;
            onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
            onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
            onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
            onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
            onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
            hookOptions?: {
                cloneResponse?: boolean;
            } | undefined;
            timeout?: number | undefined;
            customFetchImpl?: better_auth_react.FetchEsque | undefined;
            plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
            baseURL?: string | undefined;
            throw?: boolean | undefined;
            auth?: ({
                type: "Bearer";
                token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<string, any>) | undefined;
            params?: Record<string, any> | undefined;
            duplex?: "full" | "half" | undefined;
            jsonParser?: ((text: string) => Promise<any> | any) | undefined;
            retry?: better_auth_react.RetryOptions | undefined;
            retryAttempt?: number | undefined;
            output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
            errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
            disableValidation?: boolean | undefined;
        }>(data_0: better_auth_dist_shared_better_auth_CYegVoq1.P<{
            query: {
                token: string;
                callbackURL?: string | undefined;
            };
            fetchOptions?: FetchOptions | undefined;
        }>, data_1?: FetchOptions | undefined) => Promise<better_auth_react.BetterFetchResponse<{
            token: string;
            user: {
                id: string;
                email: string;
                emailVerified: boolean;
                name: string;
                image: string | null | undefined;
                createdAt: Date;
                updatedAt: Date;
            };
        }, {
            code?: string;
            message?: string;
        }, FetchOptions["throw"] extends true ? true : false>>;
    };
} & {
    emailOtp: {
        sendVerificationOtp: <FetchOptions extends {
            method?: string | undefined;
            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 | undefined;
            credentials?: RequestCredentials | undefined;
            integrity?: string | undefined;
            keepalive?: boolean | undefined;
            mode?: RequestMode | undefined;
            priority?: RequestPriority | undefined;
            redirect?: RequestRedirect | undefined;
            referrer?: string | undefined;
            referrerPolicy?: ReferrerPolicy | undefined;
            signal?: (AbortSignal | null) | undefined;
            window?: null | undefined;
            onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
            onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
            onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
            onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
            onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
            hookOptions?: {
                cloneResponse?: boolean;
            } | undefined;
            timeout?: number | undefined;
            customFetchImpl?: better_auth_react.FetchEsque | undefined;
            plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
            baseURL?: string | undefined;
            throw?: boolean | undefined;
            auth?: ({
                type: "Bearer";
                token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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;
                type: "sign-in" | "forget-password" | "email-verification";
            }> & Record<string, any>) | undefined;
            query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
            params?: Record<string, any> | undefined;
            duplex?: "full" | "half" | undefined;
            jsonParser?: ((text: string) => Promise<any> | any) | undefined;
            retry?: better_auth_react.RetryOptions | undefined;
            retryAttempt?: number | undefined;
            output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
            errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
            disableValidation?: boolean | undefined;
        }>(data_0: better_auth_dist_shared_better_auth_CYegVoq1.P<{
            email: string;
            type: "sign-in" | "forget-password" | "email-verification";
        } & {
            fetchOptions?: FetchOptions | undefined;
        }>, data_1?: FetchOptions | undefined) => Promise<better_auth_react.BetterFetchResponse<{
            success: boolean;
        }, {
            code?: string;
            message?: string;
        }, FetchOptions["throw"] extends true ? true : false>>;
    };
} & {
    emailOtp: {
        verifyEmail: <FetchOptions extends {
            method?: string | undefined;
            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 | undefined;
            credentials?: RequestCredentials | undefined;
            integrity?: string | undefined;
            keepalive?: boolean | undefined;
            mode?: RequestMode | undefined;
            priority?: RequestPriority | undefined;
            redirect?: RequestRedirect | undefined;
            referrer?: string | undefined;
            referrerPolicy?: ReferrerPolicy | undefined;
            signal?: (AbortSignal | null) | undefined;
            window?: null | undefined;
            onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
            onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
            onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
            onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
            onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
            hookOptions?: {
                cloneResponse?: boolean;
            } | undefined;
            timeout?: number | undefined;
            customFetchImpl?: better_auth_react.FetchEsque | undefined;
            plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
            baseURL?: string | undefined;
            throw?: boolean | undefined;
            auth?: ({
                type: "Bearer";
                token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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;
                otp: string;
            }> & Record<string, any>) | undefined;
            query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
            params?: Record<string, any> | undefined;
            duplex?: "full" | "half" | undefined;
            jsonParser?: ((text: string) => Promise<any> | any) | undefined;
            retry?: better_auth_react.RetryOptions | undefined;
            retryAttempt?: number | undefined;
            output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
            errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
            disableValidation?: boolean | undefined;
        }>(data_0: better_auth_dist_shared_better_auth_CYegVoq1.P<{
            email: string;
            otp: string;
        } & {
            fetchOptions?: FetchOptions | undefined;
        }>, data_1?: FetchOptions | undefined) => Promise<better_auth_react.BetterFetchResponse<NonNullable<{
            status: boolean;
            token: string;
            user: {
                id: any;
                email: any;
                emailVerified: any;
                name: any;
                image: any;
                createdAt: any;
                updatedAt: any;
            };
        } | {
            status: boolean;
            token: null;
            user: {
                id: any;
                email: any;
                emailVerified: any;
                name: any;
                image: any;
                createdAt: any;
                updatedAt: any;
            };
        }>, {
            code?: string;
            message?: string;
        }, FetchOptions["throw"] extends true ? true : false>>;
    };
} & {
    signIn: {
        emailOtp: <FetchOptions extends {
            method?: string | undefined;
            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 | undefined;
            credentials?: RequestCredentials | undefined;
            integrity?: string | undefined;
            keepalive?: boolean | undefined;
            mode?: RequestMode | undefined;
            priority?: RequestPriority | undefined;
            redirect?: RequestRedirect | undefined;
            referrer?: string | undefined;
            referrerPolicy?: ReferrerPolicy | undefined;
            signal?: (AbortSignal | null) | undefined;
            window?: null | undefined;
            onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
            onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
            onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
            onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
            onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
            hookOptions?: {
                cloneResponse?: boolean;
            } | undefined;
            timeout?: number | undefined;
            customFetchImpl?: better_auth_react.FetchEsque | undefined;
            plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
            baseURL?: string | undefined;
            throw?: boolean | undefined;
            auth?: ({
                type: "Bearer";
                token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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;
                otp: string;
            }> & Record<string, any>) | undefined;
            query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
            params?: Record<string, any> | undefined;
            duplex?: "full" | "half" | undefined;
            jsonParser?: ((text: string) => Promise<any> | any) | undefined;
            retry?: better_auth_react.RetryOptions | undefined;
            retryAttempt?: number | undefined;
            output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
            errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
            disableValidation?: boolean | undefined;
        }>(data_0: better_auth_dist_shared_better_auth_CYegVoq1.P<{
            email: string;
            otp: string;
        } & {
            fetchOptions?: FetchOptions | undefined;
        }>, data_1?: FetchOptions | undefined) => Promise<better_auth_react.BetterFetchResponse<{
            token: string;
            user: {
                id: string;
                email: string;
                emailVerified: boolean;
                name: string;
                image: string | null | undefined;
                createdAt: Date;
                updatedAt: Date;
            };
        }, {
            code?: string;
            message?: string;
        }, FetchOptions["throw"] extends true ? true : false>>;
    };
} & {
    forgetPassword: {
        emailOtp: <FetchOptions extends {
            method?: string | undefined;
            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 | undefined;
            credentials?: RequestCredentials | undefined;
            integrity?: string | undefined;
            keepalive?: boolean | undefined;
            mode?: RequestMode | undefined;
            priority?: RequestPriority | undefined;
            redirect?: RequestRedirect | undefined;
            referrer?: string | undefined;
            referrerPolicy?: ReferrerPolicy | undefined;
            signal?: (AbortSignal | null) | undefined;
            window?: null | undefined;
            onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
            onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
            onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
            onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
            onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
            hookOptions?: {
                cloneResponse?: boolean;
            } | undefined;
            timeout?: number | undefined;
            customFetchImpl?: better_auth_react.FetchEsque | undefined;
            plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
            baseURL?: string | undefined;
            throw?: boolean | undefined;
            auth?: ({
                type: "Bearer";
                token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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;
            }> & Record<string, any>) | undefined;
            query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
            params?: Record<string, any> | undefined;
            duplex?: "full" | "half" | undefined;
            jsonParser?: ((text: string) => Promise<any> | any) | undefined;
            retry?: better_auth_react.RetryOptions | undefined;
            retryAttempt?: number | undefined;
            output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
            errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
            disableValidation?: boolean | undefined;
        }>(data_0: better_auth_dist_shared_better_auth_CYegVoq1.P<{
            email: string;
        } & {
            fetchOptions?: FetchOptions | undefined;
        }>, data_1?: FetchOptions | undefined) => Promise<better_auth_react.BetterFetchResponse<{
            success: boolean;
        }, {
            code?: string;
            message?: string;
        }, FetchOptions["throw"] extends true ? true : false>>;
    };
} & {
    emailOtp: {
        resetPassword: <FetchOptions extends {
            method?: string | undefined;
            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 | undefined;
            credentials?: RequestCredentials | undefined;
            integrity?: string | undefined;
            keepalive?: boolean | undefined;
            mode?: RequestMode | undefined;
            priority?: RequestPriority | undefined;
            redirect?: RequestRedirect | undefined;
            referrer?: string | undefined;
            referrerPolicy?: ReferrerPolicy | undefined;
            signal?: (AbortSignal | null) | undefined;
            window?: null | undefined;
            onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
            onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
            onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
            onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
            onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
            hookOptions?: {
                cloneResponse?: boolean;
            } | undefined;
            timeout?: number | undefined;
            customFetchImpl?: better_auth_react.FetchEsque | undefined;
            plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
            baseURL?: string | undefined;
            throw?: boolean | undefined;
            auth?: ({
                type: "Bearer";
                token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<{
                password: string;
                email: string;
                otp: string;
            }> & Record<string, any>) | undefined;
            query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
            params?: Record<string, any> | undefined;
            duplex?: "full" | "half" | undefined;
            jsonParser?: ((text: string) => Promise<any> | any) | undefined;
            retry?: better_auth_react.RetryOptions | undefined;
            retryAttempt?: number | undefined;
            output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
            errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
            disableValidation?: boolean | undefined;
        }>(data_0: better_auth_dist_shared_better_auth_CYegVoq1.P<{
            password: string;
            email: string;
            otp: string;
        } & {
            fetchOptions?: FetchOptions | undefined;
        }>, data_1?: FetchOptions | undefined) => Promise<better_auth_react.BetterFetchResponse<{
            success: boolean;
        }, {
            code?: string;
            message?: string;
        }, FetchOptions["throw"] extends true ? true : false>>;
    };
} & {
    twoFactor: {
        enable: <FetchOptions extends {
            method?: string | undefined;
            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 | undefined;
            credentials?: RequestCredentials | undefined;
            integrity?: string | undefined;
            keepalive?: boolean | undefined;
            mode?: RequestMode | undefined;
            priority?: RequestPriority | undefined;
            redirect?: RequestRedirect | undefined;
            referrer?: string | undefined;
            referrerPolicy?: ReferrerPolicy | undefined;
            signal?: (AbortSignal | null) | undefined;
            window?: null | undefined;
            onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
            onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
            onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
            onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
            onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
            hookOptions?: {
                cloneResponse?: boolean;
            } | undefined;
            timeout?: number | undefined;
            customFetchImpl?: better_auth_react.FetchEsque | undefined;
            plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
            baseURL?: string | undefined;
            throw?: boolean | undefined;
            auth?: ({
                type: "Bearer";
                token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<{
                password: string;
                issuer?: string | undefined;
            }> & Record<string, any>) | undefined;
            query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
            params?: Record<string, any> | undefined;
            duplex?: "full" | "half" | undefined;
            jsonParser?: ((text: string) => Promise<any> | any) | undefined;
            retry?: better_auth_react.RetryOptions | undefined;
            retryAttempt?: number | undefined;
            output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
            errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
            disableValidation?: boolean | undefined;
        }>(data_0: better_auth_dist_shared_better_auth_CYegVoq1.P<{
            password: string;
            issuer?: string | undefined;
        } & {
            fetchOptions?: FetchOptions | undefined;
        }>, data_1?: FetchOptions | undefined) => Promise<better_auth_react.BetterFetchResponse<{
            totpURI: string;
            backupCodes: string[];
        }, {
            code?: string;
            message?: string;
        }, FetchOptions["throw"] extends true ? true : false>>;
    };
} & {
    twoFactor: {
        disable: <FetchOptions extends {
            method?: string | undefined;
            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 | undefined;
            credentials?: RequestCredentials | undefined;
            integrity?: string | undefined;
            keepalive?: boolean | undefined;
            mode?: RequestMode | undefined;
            priority?: RequestPriority | undefined;
            redirect?: RequestRedirect | undefined;
            referrer?: string | undefined;
            referrerPolicy?: ReferrerPolicy | undefined;
            signal?: (AbortSignal | null) | undefined;
            window?: null | undefined;
            onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
            onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
            onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
            onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
            onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
            hookOptions?: {
                cloneResponse?: boolean;
            } | undefined;
            timeout?: number | undefined;
            customFetchImpl?: better_auth_react.FetchEsque | undefined;
            plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
            baseURL?: string | undefined;
            throw?: boolean | undefined;
            auth?: ({
                type: "Bearer";
                token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<{
                password: string;
            }> & Record<string, any>) | undefined;
            query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
            params?: Record<string, any> | undefined;
            duplex?: "full" | "half" | undefined;
            jsonParser?: ((text: string) => Promise<any> | any) | undefined;
            retry?: better_auth_react.RetryOptions | undefined;
            retryAttempt?: number | undefined;
            output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
            errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
            disableValidation?: boolean | undefined;
        }>(data_0: better_auth_dist_shared_better_auth_CYegVoq1.P<{
            password: string;
        } & {
            fetchOptions?: FetchOptions | undefined;
        }>, data_1?: FetchOptions | undefined) => Promise<better_auth_react.BetterFetchResponse<{
            status: boolean;
        }, {
            code?: string;
            message?: string;
        }, FetchOptions["throw"] extends true ? true : false>>;
    };
} & {
    twoFactor: {
        verifyBackupCode: <FetchOptions extends {
            method?: string | undefined;
            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 | undefined;
            credentials?: RequestCredentials | undefined;
            integrity?: string | undefined;
            keepalive?: boolean | undefined;
            mode?: RequestMode | undefined;
            priority?: RequestPriority | undefined;
            redirect?: RequestRedirect | undefined;
            referrer?: string | undefined;
            referrerPolicy?: ReferrerPolicy | undefined;
            signal?: (AbortSignal | null) | undefined;
            window?: null | undefined;
            onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
            onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
            onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
            onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
            onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
            hookOptions?: {
                cloneResponse?: boolean;
            } | undefined;
            timeout?: number | undefined;
            customFetchImpl?: better_auth_react.FetchEsque | undefined;
            plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
            baseURL?: string | undefined;
            throw?: boolean | undefined;
            auth?: ({
                type: "Bearer";
                token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<{
                code: string;
                trustDevice?: boolean | undefined;
                disableSession?: boolean | undefined;
            }> & Record<string, any>) | undefined;
            query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
            params?: Record<string, any> | undefined;
            duplex?: "full" | "half" | undefined;
            jsonParser?: ((text: string) => Promise<any> | any) | undefined;
            retry?: better_auth_react.RetryOptions | undefined;
            retryAttempt?: number | undefined;
            output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
            errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
            disableValidation?: boolean | undefined;
        }>(data_0: better_auth_dist_shared_better_auth_CYegVoq1.P<{
            code: string;
            trustDevice?: boolean | undefined;
            disableSession?: boolean | undefined;
        } & {
            fetchOptions?: FetchOptions | undefined;
        }>, data_1?: FetchOptions | undefined) => Promise<better_auth_react.BetterFetchResponse<{
            token: string | undefined;
            user: {
                id: string;
                email: string;
                emailVerified: boolean;
                name: string;
                image: string | null | undefined;
                createdAt: Date;
                updatedAt: Date;
            };
        }, {
            code?: string;
            message?: string;
        }, FetchOptions["throw"] extends true ? true : false>>;
    };
} & {
    twoFactor: {
        generateBackupCodes: <FetchOptions extends {
            method?: string | undefined;
            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 | undefined;
            credentials?: RequestCredentials | undefined;
            integrity?: string | undefined;
            keepalive?: boolean | undefined;
            mode?: RequestMode | undefined;
            priority?: RequestPriority | undefined;
            redirect?: RequestRedirect | undefined;
            referrer?: string | undefined;
            referrerPolicy?: ReferrerPolicy | undefined;
            signal?: (AbortSignal | null) | undefined;
            window?: null | undefined;
            onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
            onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
            onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
            onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
            onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
            hookOptions?: {
                cloneResponse?: boolean;
            } | undefined;
            timeout?: number | undefined;
            customFetchImpl?: better_auth_react.FetchEsque | undefined;
            plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
            baseURL?: string | undefined;
            throw?: boolean | undefined;
            auth?: ({
                type: "Bearer";
                token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<{
                password: string;
            }> & Record<string, any>) | undefined;
            query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
            params?: Record<string, any> | undefined;
            duplex?: "full" | "half" | undefined;
            jsonParser?: ((text: string) => Promise<any> | any) | undefined;
            retry?: better_auth_react.RetryOptions | undefined;
            retryAttempt?: number | undefined;
            output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
            errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
            disableValidation?: boolean | undefined;
        }>(data_0: better_auth_dist_shared_better_auth_CYegVoq1.P<{
            password: string;
        } & {
            fetchOptions?: FetchOptions | undefined;
        }>, data_1?: FetchOptions | undefined) => Promise<better_auth_react.BetterFetchResponse<{
            status: boolean;
            backupCodes: string[];
        }, {
            code?: string;
            message?: string;
        }, FetchOptions["throw"] extends true ? true : false>>;
    };
} & {
    twoFactor: {
        sendOtp: <FetchOptions extends {
            method?: string | undefined;
            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 | undefined;
            credentials?: RequestCredentials | undefined;
            integrity?: string | undefined;
            keepalive?: boolean | undefined;
            mode?: RequestMode | undefined;
            priority?: RequestPriority | undefined;
            redirect?: RequestRedirect | undefined;
            referrer?: string | undefined;
            referrerPolicy?: ReferrerPolicy | undefined;
            signal?: (AbortSignal | null) | undefined;
            window?: null | undefined;
            onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
            onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
            onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
            onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
            onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
            hookOptions?: {
                cloneResponse?: boolean;
            } | undefined;
            timeout?: number | undefined;
            customFetchImpl?: better_auth_react.FetchEsque | undefined;
            plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
            baseURL?: string | undefined;
            throw?: boolean | undefined;
            auth?: ({
                type: "Bearer";
                token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<{
                trustDevice?: boolean | undefined;
            }> & Record<string, any>) | undefined;
            query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
            params?: Record<string, any> | undefined;
            duplex?: "full" | "half" | undefined;
            jsonParser?: ((text: string) => Promise<any> | any) | undefined;
            retry?: better_auth_react.RetryOptions | undefined;
            retryAttempt?: number | undefined;
            output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
            errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
            disableValidation?: boolean | undefined;
        }>(data_0?: better_auth_dist_shared_better_auth_CYegVoq1.P<{
            query?: Record<string, any> | undefined;
            fetchOptions?: FetchOptions | undefined;
        }> | undefined, data_1?: FetchOptions | undefined) => Promise<better_auth_react.BetterFetchResponse<{
            status: boolean;
        }, {
            code?: string;
            message?: string;
        }, FetchOptions["throw"] extends true ? true : false>>;
    };
} & {
    twoFactor: {
        verifyOtp: <FetchOptions extends {
            method?: string | undefined;
            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 | undefined;
            credentials?: RequestCredentials | undefined;
            integrity?: string | undefined;
            keepalive?: boolean | undefined;
            mode?: RequestMode | undefined;
            priority?: RequestPriority | undefined;
            redirect?: RequestRedirect | undefined;
            referrer?: string | undefined;
            referrerPolicy?: ReferrerPolicy | undefined;
            signal?: (AbortSignal | null) | undefined;
            window?: null | undefined;
            onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
            onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
            onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
            onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
            onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
            hookOptions?: {
                cloneResponse?: boolean;
            } | undefined;
            timeout?: number | undefined;
            customFetchImpl?: better_auth_react.FetchEsque | undefined;
            plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
            baseURL?: string | undefined;
            throw?: boolean | undefined;
            auth?: ({
                type: "Bearer";
                token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<{
                code: string;
                trustDevice?: boolean | undefined;
            }> & Record<string, any>) | undefined;
            query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
            params?: Record<string, any> | undefined;
            duplex?: "full" | "half" | undefined;
            jsonParser?: ((text: string) => Promise<any> | any) | undefined;
            retry?: better_auth_react.RetryOptions | undefined;
            retryAttempt?: number | undefined;
            output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
            errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
            disableValidation?: boolean | undefined;
        }>(data_0: better_auth_dist_shared_better_auth_CYegVoq1.P<{
            code: string;
            trustDevice?: boolean | undefined;
        } & {
            fetchOptions?: FetchOptions | undefined;
        }>, data_1?: FetchOptions | undefined) => Promise<better_auth_react.BetterFetchResponse<{
            token: string;
            user: {
                id: any;
                email: any;
                emailVerified: any;
                name: any;
                image: any;
                createdAt: any;
                updatedAt: any;
            };
        }, {
            code?: string;
            message?: string;
        }, FetchOptions["throw"] extends true ? true : false>>;
    };
} & {
    twoFactor: {
        getTotpUri: <FetchOptions extends {
            method?: string | undefined;
            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 | undefined;
            credentials?: RequestCredentials | undefined;
            integrity?: string | undefined;
            keepalive?: boolean | undefined;
            mode?: RequestMode | undefined;
            priority?: RequestPriority | undefined;
            redirect?: RequestRedirect | undefined;
            referrer?: string | undefined;
            referrerPolicy?: ReferrerPolicy | undefined;
            signal?: (AbortSignal | null) | undefined;
            window?: null | undefined;
            onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
            onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
            onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
            onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
            onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
            hookOptions?: {
                cloneResponse?: boolean;
            } | undefined;
            timeout?: number | undefined;
            customFetchImpl?: better_auth_react.FetchEsque | undefined;
            plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
            baseURL?: string | undefined;
            throw?: boolean | undefined;
            auth?: ({
                type: "Bearer";
                token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<{
                password: string;
            }> & Record<string, any>) | undefined;
            query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
            params?: Record<string, any> | undefined;
            duplex?: "full" | "half" | undefined;
            jsonParser?: ((text: string) => Promise<any> | any) | undefined;
            retry?: better_auth_react.RetryOptions | undefined;
            retryAttempt?: number | undefined;
            output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
            errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
            disableValidation?: boolean | undefined;
        }>(data_0: better_auth_dist_shared_better_auth_CYegVoq1.P<{
            password: string;
        } & {
            fetchOptions?: FetchOptions | undefined;
        }>, data_1?: FetchOptions | undefined) => Promise<better_auth_react.BetterFetchResponse<{
            totpURI: string;
        }, {
            code?: string;
            message?: string;
        }, FetchOptions["throw"] extends true ? true : false>>;
    };
} & {
    twoFactor: {
        verifyTotp: <FetchOptions extends {
            method?: string | undefined;
            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 | undefined;
            credentials?: RequestCredentials | undefined;
            integrity?: string | undefined;
            keepalive?: boolean | undefined;
            mode?: RequestMode | undefined;
            priority?: RequestPriority | undefined;
            redirect?: RequestRedirect | undefined;
            referrer?: string | undefined;
            referrerPolicy?: ReferrerPolicy | undefined;
            signal?: (AbortSignal | null) | undefined;
            window?: null | undefined;
            onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
            onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
            onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
            onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
            onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
            hookOptions?: {
                cloneResponse?: boolean;
            } | undefined;
            timeout?: number | undefined;
            customFetchImpl?: better_auth_react.FetchEsque | undefined;
            plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
            baseURL?: string | undefined;
            throw?: boolean | undefined;
            auth?: ({
                type: "Bearer";
                token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<{
                code: string;
                trustDevice?: boolean | undefined;
            }> & Record<string, any>) | undefined;
            query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
            params?: Record<string, any> | undefined;
            duplex?: "full" | "half" | undefined;
            jsonParser?: ((text: string) => Promise<any> | any) | undefined;
            retry?: better_auth_react.RetryOptions | undefined;
            retryAttempt?: number | undefined;
            output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
            errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
            disableValidation?: boolean | undefined;
        }>(data_0: better_auth_dist_shared_better_auth_CYegVoq1.P<{
            code: string;
            trustDevice?: boolean | undefined;
        } & {
            fetchOptions?: FetchOptions | undefined;
        }>, data_1?: FetchOptions | undefined) => Promise<better_auth_react.BetterFetchResponse<{
            token: string;
            user: {
                id: string;
                email: string;
                emailVerified: boolean;
                name: string;
                image: string | null | undefined;
                createdAt: Date;
                updatedAt: Date;
            };
        }, {
            code?: string;
            message?: string;
        }, FetchOptions["throw"] extends true ? true : false>>;
    };
} & {
    organization: {
        create: <FetchOptions extends {
            method?: string | undefined;
            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 | undefined;
            credentials?: RequestCredentials | undefined;
            integrity?: string | undefined;
            keepalive?: boolean | undefined;
            mode?: RequestMode | undefined;
            priority?: RequestPriority | undefined;
            redirect?: RequestRedirect | undefined;
            referrer?: string | undefined;
            referrerPolicy?: ReferrerPolicy | undefined;
            signal?: (AbortSignal | null) | undefined;
            window?: null | undefined;
            onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
            onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
            onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
            onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
            onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
            hookOptions?: {
                cloneResponse?: boolean;
            } | undefined;
            timeout?: number | undefined;
            customFetchImpl?: better_auth_react.FetchEsque | undefined;
            plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
            baseURL?: string | undefined;
            throw?: boolean | undefined;
            auth?: ({
                type: "Bearer";
                token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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;
                slug: string;
                metadata?: Record<string, any> | undefined;
                userId?: string | undefined;
                logo?: string | undefined;
                keepCurrentActiveOrganization?: boolean | undefined;
            }> & Record<string, any>) | undefined;
            query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
            params?: Record<string, any> | undefined;
            duplex?: "full" | "half" | undefined;
            jsonParser?: ((text: string) => Promise<any> | any) | undefined;
            retry?: better_auth_react.RetryOptions | undefined;
            retryAttempt?: number | undefined;
            output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
            errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
            disableValidation?: boolean | undefined;
        }>(data_0: better_auth_dist_shared_better_auth_CYegVoq1.P<{
            name: string;
            slug: string;
            metadata?: Record<string, any> | undefined;
            userId?: string | undefined;
            logo?: string | undefined;
            keepCurrentActiveOrganization?: boolean | undefined;
        } & {
            fetchOptions?: FetchOptions | undefined;
        }>, data_1?: FetchOptions | undefined) => Promise<better_auth_react.BetterFetchResponse<{
            metadata: Record<string, any> | undefined;
            members: {
                id: string;
                createdAt: Date;
                userId: string;
                organizationId: string;
                role: string;
                teamId?: string | undefined;
            }[];
            id: string;
            name: string;
            createdAt: Date;
            slug: string;
            logo?: string | null | undefined;
        }, {
            code?: string;
            message?: string;
        }, FetchOptions["throw"] extends true ? true : false>>;
    };
} & {
    organization: {
        update: <FetchOptions extends {
            method?: string | undefined;
            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 | undefined;
            credentials?: RequestCredentials | undefined;
            integrity?: string | undefined;
            keepalive?: boolean | undefined;
            mode?: RequestMode | undefined;
            priority?: RequestPriority | undefined;
            redirect?: RequestRedirect | undefined;
            referrer?: string | undefined;
            referrerPolicy?: ReferrerPolicy | undefined;
            signal?: (AbortSignal | null) | undefined;
            window?: null | undefined;
            onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
            onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
            onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
            onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
            onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
            hookOptions?: {
                cloneResponse?: boolean;
            } | undefined;
            timeout?: number | undefined;
            customFetchImpl?: better_auth_react.FetchEsque | undefined;
            plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
            baseURL?: string | undefined;
            throw?: boolean | undefined;
            auth?: ({
                type: "Bearer";
                token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<{
                data: {
                    metadata?: Record<string, any> | undefined;
                    name?: string | undefined;
                    slug?: string | undefined;
                    logo?: string | undefined;
                };
                organizationId?: string | undefined;
            }> & Record<string, any>) | undefined;
            query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
            params?: Record<string, any> | undefined;
            duplex?: "full" | "half" | undefined;
            jsonParser?: ((text: string) => Promise<any> | any) | undefined;
            retry?: better_auth_react.RetryOptions | undefined;
            retryAttempt?: number | undefined;
            output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
            errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
            disableValidation?: boolean | undefined;
        }>(data_0: better_auth_dist_shared_better_auth_CYegVoq1.P<{
            data: {
                metadata?: Record<string, any> | undefined;
                name?: string | undefined;
                slug?: string | undefined;
                logo?: string | undefined;
            };
            organizationId?: string | undefined;
        } & {
            fetchOptions?: FetchOptions | undefined;
        }>, data_1?: FetchOptions | undefined) => Promise<better_auth_react.BetterFetchResponse<{
            metadata: Record<string, any> | undefined;
            id: string;
            name: string;
            createdAt: Date;
            slug: string;
            logo?: string | null | undefined;
        }, {
            code?: string;
            message?: string;
        }, FetchOptions["throw"] extends true ? true : false>>;
    };
} & {
    organization: {
        delete: <FetchOptions extends {
            method?: string | undefined;
            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 | undefined;
            credentials?: RequestCredentials | undefined;
            integrity?: string | undefined;
            keepalive?: boolean | undefined;
            mode?: RequestMode | undefined;
            priority?: RequestPriority | undefined;
            redirect?: RequestRedirect | undefined;
            referrer?: string | undefined;
            referrerPolicy?: ReferrerPolicy | undefined;
            signal?: (AbortSignal | null) | undefined;
            window?: null | undefined;
            onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
            onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
            onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
            onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
            onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
            hookOptions?: {
                cloneResponse?: boolean;
            } | undefined;
            timeout?: number | undefined;
            customFetchImpl?: better_auth_react.FetchEsque | undefined;
            plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
            baseURL?: string | undefined;
            throw?: boolean | undefined;
            auth?: ({
                type: "Bearer";
                token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<{
                organizationId: string;
            }> & Record<string, any>) | undefined;
            query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
            params?: Record<string, any> | undefined;
            duplex?: "full" | "half" | undefined;
            jsonParser?: ((text: string) => Promise<any> | any) | undefined;
            retry?: better_auth_react.RetryOptions | undefined;
            retryAttempt?: number | undefined;
            output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
            errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
            disableValidation?: boolean | undefined;
        }>(data_0: better_auth_dist_shared_better_auth_CYegVoq1.P<{
            organizationId: string;
        } & {
            fetchOptions?: FetchOptions | undefined;
        }>, data_1?: FetchOptions | undefined) => Promise<better_auth_react.BetterFetchResponse<{
            id: string;
            name: string;
            createdAt: Date;
            slug: string;
            metadata?: any;
            logo?: string | null | undefined;
        }, {
            code?: string;
            message?: string;
        }, FetchOptions["throw"] extends true ? true : false>>;
    };
} & {
    organization: {
        setActive: <FetchOptions extends {
            method?: string | undefined;
            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 | undefined;
            credentials?: RequestCredentials | undefined;
            integrity?: string | undefined;
            keepalive?: boolean | undefined;
            mode?: RequestMode | undefined;
            priority?: RequestPriority | undefined;
            redirect?: RequestRedirect | undefined;
            referrer?: string | undefined;
            referrerPolicy?: ReferrerPolicy | undefined;
            signal?: (AbortSignal | null) | undefined;
            window?: null | undefined;
            onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
            onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
            onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
            onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
            onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
            hookOptions?: {
                cloneResponse?: boolean;
            } | undefined;
            timeout?: number | undefined;
            customFetchImpl?: better_auth_react.FetchEsque | undefined;
            plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
            baseURL?: string | undefined;
            throw?: boolean | undefined;
            auth?: ({
                type: "Bearer";
                token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<{
                organizationId?: string | null | undefined;
                organizationSlug?: string | undefined;
            }> & Record<string, any>) | undefined;
            query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
            params?: Record<string, any> | undefined;
            duplex?: "full" | "half" | undefined;
            jsonParser?: ((text: string) => Promise<any> | any) | undefined;
            retry?: better_auth_react.RetryOptions | undefined;
            retryAttempt?: number | undefined;
            output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
            errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
            disableValidation?: boolean | undefined;
        }>(data_0?: better_auth_dist_shared_better_auth_CYegVoq1.P<{
            organizationId?: string | null | undefined;
            organizationSlug?: string | undefined;
        } & {
            fetchOptions?: FetchOptions | undefined;
        }> | undefined, data_1?: FetchOptions | undefined) => Promise<better_auth_react.BetterFetchResponse<{
            members: {
                id: string;
                organizationId: string;
                role: "member" | "admin" | "owner";
                createdAt: Date;
                userId: string;
                user: {
                    email: string;
                    name: string;
                    image?: string;
                };
            }[];
            invitations: {
                id: string;
                organizationId: string;
                email: string;
                role: "member" | "admin" | "owner";
                status: better_auth_plugins_organization.InvitationStatus;
                inviterId: string;
                expiresAt: Date;
            }[];
        } & {
            id: string;
            name: string;
            createdAt: Date;
            slug: string;
            metadata?: any;
            logo?: string | null | undefined;
        }, {
            code?: string;
            message?: string;
        }, FetchOptions["throw"] extends true ? true : false>>;
    };
} & {
    organization: {
        getFullOrganization: <FetchOptions extends {
            method?: string | undefined;
            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 | undefined;
            credentials?: RequestCredentials | undefined;
            integrity?: string | undefined;
            keepalive?: boolean | undefined;
            mode?: RequestMode | undefined;
            priority?: RequestPriority | undefined;
            redirect?: RequestRedirect | undefined;
            referrer?: string | undefined;
            referrerPolicy?: ReferrerPolicy | undefined;
            signal?: (AbortSignal | null) | undefined;
            window?: null | undefined;
            onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
            onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
            onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
            onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
            onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
            hookOptions?: {
                cloneResponse?: boolean;
            } | undefined;
            timeout?: number | undefined;
            customFetchImpl?: better_auth_react.FetchEsque | undefined;
            plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
            baseURL?: string | undefined;
            throw?: boolean | undefined;
            auth?: ({
                type: "Bearer";
                token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<{
                organizationId?: string | undefined;
                organizationSlug?: string | undefined;
            }> & Record<string, any>) | undefined;
            params?: Record<string, any> | undefined;
            duplex?: "full" | "half" | undefined;
            jsonParser?: ((text: string) => Promise<any> | any) | undefined;
            retry?: better_auth_react.RetryOptions | undefined;
            retryAttempt?: number | undefined;
            output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
            errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
            disableValidation?: boolean | undefined;
        }>(data_0?: better_auth_dist_shared_better_auth_CYegVoq1.P<{
            query?: {
                organizationId?: string | undefined;
                organizationSlug?: string | undefined;
            } | undefined;
            fetchOptions?: FetchOptions | undefined;
        }> | undefined, data_1?: FetchOptions | undefined) => Promise<better_auth_react.BetterFetchResponse<{
            members: {
                id: string;
                organizationId: string;
                role: "member" | "admin" | "owner";
                createdAt: Date;
                userId: string;
                user: {
                    email: string;
                    name: string;
                    image?: string;
                };
            }[];
            invitations: {
                id: string;
                organizationId: string;
                email: string;
                role: "member" | "admin" | "owner";
                status: better_auth_plugins_organization.InvitationStatus;
                inviterId: string;
                expiresAt: Date;
            }[];
        } & {
            id: string;
            name: string;
            createdAt: Date;
            slug: string;
            metadata?: any;
            logo?: string | null | undefined;
        }, {
            code?: string;
            message?: string;
        }, FetchOptions["throw"] extends true ? true : false>>;
    };
} & {
    organization: {
        list: <FetchOptions extends {
            method?: string | undefined;
            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 | undefined;
            credentials?: RequestCredentials | undefined;
            integrity?: string | undefined;
            keepalive?: boolean | undefined;
            mode?: RequestMode | undefined;
            priority?: RequestPriority | undefined;
            redirect?: RequestRedirect | undefined;
            referrer?: string | undefined;
            referrerPolicy?: ReferrerPolicy | undefined;
            signal?: (AbortSignal | null) | undefined;
            window?: null | undefined;
            onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
            onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
            onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
            onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
            onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
            hookOptions?: {
                cloneResponse?: boolean;
            } | undefined;
            timeout?: number | undefined;
            customFetchImpl?: better_auth_react.FetchEsque | undefined;
            plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
            baseURL?: string | undefined;
            throw?: boolean | undefined;
            auth?: ({
                type: "Bearer";
                token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<string, any>> & Record<string, any>) | undefined;
            params?: Record<string, any> | undefined;
            duplex?: "full" | "half" | undefined;
            jsonParser?: ((text: string) => Promise<any> | any) | undefined;
            retry?: better_auth_react.RetryOptions | undefined;
            retryAttempt?: number | undefined;
            output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
            errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
            disableValidation?: boolean | undefined;
        }>(data_0?: better_auth_dist_shared_better_auth_CYegVoq1.P<{
            query?: Record<string, any> | undefined;
            fetchOptions?: FetchOptions | undefined;
        }> | undefined, data_1?: FetchOptions | undefined) => Promise<better_auth_react.BetterFetchResponse<{
            id: string;
            name: string;
            createdAt: Date;
            slug: string;
            metadata?: any;
            logo?: string | null | undefined;
        }[], {
            code?: string;
            message?: string;
        }, FetchOptions["throw"] extends true ? true : false>>;
    };
} & {
    organization: {
        inviteMember: <FetchOptions extends {
            method?: string | undefined;
            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 | undefined;
            credentials?: RequestCredentials | undefined;
            integrity?: string | undefined;
            keepalive?: boolean | undefined;
            mode?: RequestMode | undefined;
            priority?: RequestPriority | undefined;
            redirect?: RequestRedirect | undefined;
            referrer?: string | undefined;
            referrerPolicy?: ReferrerPolicy | undefined;
            signal?: (AbortSignal | null) | undefined;
            window?: null | undefined;
            onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
            onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
            onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
            onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
            onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
            hookOptions?: {
                cloneResponse?: boolean;
            } | undefined;
            timeout?: number | undefined;
            customFetchImpl?: better_auth_react.FetchEsque | undefined;
            plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
            baseURL?: string | undefined;
            throw?: boolean | undefined;
            auth?: ({
                type: "Bearer";
                token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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;
                role: "member" | "admin" | "owner" | ("member" | "admin" | "owner")[];
                organizationId?: string;
                resend?: boolean;
            }> & Record<string, any>) | undefined;
            query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
            params?: Record<string, any> | undefined;
            duplex?: "full" | "half" | undefined;
            jsonParser?: ((text: string) => Promise<any> | any) | undefined;
            retry?: better_auth_react.RetryOptions | undefined;
            retryAttempt?: number | undefined;
            output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
            errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
            disableValidation?: boolean | undefined;
        }>(data_0: better_auth_dist_shared_better_auth_CYegVoq1.P<{
            email: string;
            role: "member" | "admin" | "owner" | ("member" | "admin" | "owner")[];
            organizationId?: string;
            resend?: boolean;
        } & {
            fetchOptions?: FetchOptions | undefined;
        }>, data_1?: FetchOptions | undefined) => Promise<better_auth_react.BetterFetchResponse<{
            id: string;
            email: string;
            status: "pending" | "accepted" | "rejected" | "canceled";
            expiresAt: Date;
            organizationId: string;
            role: string;
            inviterId: string;
            teamId?: string | undefined;
        }, {
            code?: string;
            message?: string;
        }, FetchOptions["throw"] extends true ? true : false>>;
    };
} & {
    organization: {
        cancelInvitation: <FetchOptions extends {
            method?: string | undefined;
            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 | undefined;
            credentials?: RequestCredentials | undefined;
            integrity?: string | undefined;
            keepalive?: boolean | undefined;
            mode?: RequestMode | undefined;
            priority?: RequestPriority | undefined;
            redirect?: RequestRedirect | undefined;
            referrer?: string | undefined;
            referrerPolicy?: ReferrerPolicy | undefined;
            signal?: (AbortSignal | null) | undefined;
            window?: null | undefined;
            onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
            onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
            onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
            onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
            onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
            hookOptions?: {
                cloneResponse?: boolean;
            } | undefined;
            timeout?: number | undefined;
            customFetchImpl?: better_auth_react.FetchEsque | undefined;
            plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
            baseURL?: string | undefined;
            throw?: boolean | undefined;
            auth?: ({
                type: "Bearer";
                token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<{
                invitationId: string;
            }> & Record<string, any>) | undefined;
            query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
            params?: Record<string, any> | undefined;
            duplex?: "full" | "half" | undefined;
            jsonParser?: ((text: string) => Promise<any> | any) | undefined;
            retry?: better_auth_react.RetryOptions | undefined;
            retryAttempt?: number | undefined;
            output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
            errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
            disableValidation?: boolean | undefined;
        }>(data_0: better_auth_dist_shared_better_auth_CYegVoq1.P<{
            invitationId: string;
        } & {
            fetchOptions?: FetchOptions | undefined;
        }>, data_1?: FetchOptions | undefined) => Promise<better_auth_react.BetterFetchResponse<{
            id: string;
            email: string;
            status: "pending" | "accepted" | "rejected" | "canceled";
            expiresAt: Date;
            organizationId: string;
            role: string;
            inviterId: string;
            teamId?: string | undefined;
        }, {
            code?: string;
            message?: string;
        }, FetchOptions["throw"] extends true ? true : false>>;
    };
} & {
    organization: {
        acceptInvitation: <FetchOptions extends {
            method?: string | undefined;
            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 | undefined;
            credentials?: RequestCredentials | undefined;
            integrity?: string | undefined;
            keepalive?: boolean | undefined;
            mode?: RequestMode | undefined;
            priority?: RequestPriority | undefined;
            redirect?: RequestRedirect | undefined;
            referrer?: string | undefined;
            referrerPolicy?: ReferrerPolicy | undefined;
            signal?: (AbortSignal | null) | undefined;
            window?: null | undefined;
            onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
            onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
            onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
            onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
            onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
            hookOptions?: {
                cloneResponse?: boolean;
            } | undefined;
            timeout?: number | undefined;
            customFetchImpl?: better_auth_react.FetchEsque | undefined;
            plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
            baseURL?: string | undefined;
            throw?: boolean | undefined;
            auth?: ({
                type: "Bearer";
                token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<{
                invitationId: string;
            }> & Record<string, any>) | undefined;
            query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
            params?: Record<string, any> | undefined;
            duplex?: "full" | "half" | undefined;
            jsonParser?: ((text: string) => Promise<any> | any) | undefined;
            retry?: better_auth_react.RetryOptions | undefined;
            retryAttempt?: number | undefined;
            output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
            errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
            disableValidation?: boolean | undefined;
        }>(data_0: better_auth_dist_shared_better_auth_CYegVoq1.P<{
            invitationId: string;
        } & {
            fetchOptions?: FetchOptions | undefined;
        }>, data_1?: FetchOptions | undefined) => Promise<better_auth_react.BetterFetchResponse<{
            invitation: {
                id: string;
                email: string;
                status: "pending" | "accepted" | "rejected" | "canceled";
                expiresAt: Date;
                organizationId: string;
                role: string;
                inviterId: string;
                teamId?: string | undefined;
            };
            member: {
                id: string;
                createdAt: Date;
                userId: string;
                organizationId: string;
                role: string;
                teamId?: string | undefined;
            };
        }, {
            code?: string;
            message?: string;
        }, FetchOptions["throw"] extends true ? true : false>>;
    };
} & {
    organization: {
        getInvitation: <FetchOptions extends {
            method?: string | undefined;
            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 | undefined;
            credentials?: RequestCredentials | undefined;
            integrity?: string | undefined;
            keepalive?: boolean | undefined;
            mode?: RequestMode | undefined;
            priority?: RequestPriority | undefined;
            redirect?: RequestRedirect | undefined;
            referrer?: string | undefined;
            referrerPolicy?: ReferrerPolicy | undefined;
            signal?: (AbortSignal | null) | undefined;
            window?: null | undefined;
            onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
            onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
            onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
            onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
            onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
            hookOptions?: {
                cloneResponse?: boolean;
            } | undefined;
            timeout?: number | undefined;
            customFetchImpl?: better_auth_react.FetchEsque | undefined;
            plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
            baseURL?: string | undefined;
            throw?: boolean | undefined;
            auth?: ({
                type: "Bearer";
                token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<{
                id: string;
            }> & Record<string, any>) | undefined;
            params?: Record<string, any> | undefined;
            duplex?: "full" | "half" | undefined;
            jsonParser?: ((text: string) => Promise<any> | any) | undefined;
            retry?: better_auth_react.RetryOptions | undefined;
            retryAttempt?: number | undefined;
            output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
            errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
            disableValidation?: boolean | undefined;
        }>(data_0: better_auth_dist_shared_better_auth_CYegVoq1.P<{
            query: {
                id: string;
            };
            fetchOptions?: FetchOptions | undefined;
        }>, data_1?: FetchOptions | undefined) => Promise<better_auth_react.BetterFetchResponse<{
            organizationName: string;
            organizationSlug: string;
            inviterEmail: string;
            id: string;
            email: string;
            status: "pending" | "accepted" | "rejected" | "canceled";
            expiresAt: Date;
            organizationId: string;
            role: string;
            inviterId: string;
            teamId?: string | undefined;
        }, {
            code?: string;
            message?: string;
        }, FetchOptions["throw"] extends true ? true : false>>;
    };
} & {
    organization: {
        rejectInvitation: <FetchOptions extends {
            method?: string | undefined;
            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 | undefined;
            credentials?: RequestCredentials | undefined;
            integrity?: string | undefined;
            keepalive?: boolean | undefined;
            mode?: RequestMode | undefined;
            priority?: RequestPriority | undefined;
            redirect?: RequestRedirect | undefined;
            referrer?: string | undefined;
            referrerPolicy?: ReferrerPolicy | undefined;
            signal?: (AbortSignal | null) | undefined;
            window?: null | undefined;
            onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
            onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
            onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
            onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
            onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
            hookOptions?: {
                cloneResponse?: boolean;
            } | undefined;
            timeout?: number | undefined;
            customFetchImpl?: better_auth_react.FetchEsque | undefined;
            plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
            baseURL?: string | undefined;
            throw?: boolean | undefined;
            auth?: ({
                type: "Bearer";
                token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<{
                invitationId: string;
            }> & Record<string, any>) | undefined;
            query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
            params?: Record<string, any> | undefined;
            duplex?: "full" | "half" | undefined;
            jsonParser?: ((text: string) => Promise<any> | any) | undefined;
            retry?: better_auth_react.RetryOptions | undefined;
            retryAttempt?: number | undefined;
            output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
            errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
            disableValidation?: boolean | undefined;
        }>(data_0: better_auth_dist_shared_better_auth_CYegVoq1.P<{
            invitationId: string;
        } & {
            fetchOptions?: FetchOptions | undefined;
        }>, data_1?: FetchOptions | undefined) => Promise<better_auth_react.BetterFetchResponse<{
            invitation: {
                id: string;
                email: string;
                status: "pending" | "accepted" | "rejected" | "canceled";
                expiresAt: Date;
                organizationId: string;
                role: string;
                inviterId: string;
                teamId?: string | undefined;
            } | null;
            member: null;
        }, {
            code?: string;
            message?: string;
        }, FetchOptions["throw"] extends true ? true : false>>;
    };
} & {
    organization: {
        checkSlug: <FetchOptions extends {
            method?: string | undefined;
            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 | undefined;
            credentials?: RequestCredentials | undefined;
            integrity?: string | undefined;
            keepalive?: boolean | undefined;
            mode?: RequestMode | undefined;
            priority?: RequestPriority | undefined;
            redirect?: RequestRedirect | undefined;
            referrer?: string | undefined;
            referrerPolicy?: ReferrerPolicy | undefined;
            signal?: (AbortSignal | null) | undefined;
            window?: null | undefined;
            onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
            onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
            onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
            onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
            onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
            hookOptions?: {
                cloneResponse?: boolean;
            } | undefined;
            timeout?: number | undefined;
            customFetchImpl?: better_auth_react.FetchEsque | undefined;
            plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
            baseURL?: string | undefined;
            throw?: boolean | undefined;
            auth?: ({
                type: "Bearer";
                token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<{
                slug: string;
            }> & Record<string, any>) | undefined;
            query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
            params?: Record<string, any> | undefined;
            duplex?: "full" | "half" | undefined;
            jsonParser?: ((text: string) => Promise<any> | any) | undefined;
            retry?: better_auth_react.RetryOptions | undefined;
            retryAttempt?: number | undefined;
            output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
            errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
            disableValidation?: boolean | undefined;
        }>(data_0: better_auth_dist_shared_better_auth_CYegVoq1.P<{
            slug: string;
        } & {
            fetchOptions?: FetchOptions | undefined;
        }>, data_1?: FetchOptions | undefined) => Promise<better_auth_react.BetterFetchResponse<{
            status: boolean;
        }, {
            code?: string;
            message?: string;
        }, FetchOptions["throw"] extends true ? true : false>>;
    };
} & {
    organization: {
        removeMember: <FetchOptions extends {
            method?: string | undefined;
            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 | undefined;
            credentials?: RequestCredentials | undefined;
            integrity?: string | undefined;
            keepalive?: boolean | undefined;
            mode?: RequestMode | undefined;
            priority?: RequestPriority | undefined;
            redirect?: RequestRedirect | undefined;
            referrer?: string | undefined;
            referrerPolicy?: ReferrerPolicy | undefined;
            signal?: (AbortSignal | null) | undefined;
            window?: null | undefined;
            onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
            onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
            onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
            onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
            onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
            hookOptions?: {
                cloneResponse?: boolean;
            } | undefined;
            timeout?: number | undefined;
            customFetchImpl?: better_auth_react.FetchEsque | undefined;
            plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
            baseURL?: string | undefined;
            throw?: boolean | undefined;
            auth?: ({
                type: "Bearer";
                token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<{
                memberIdOrEmail: string;
                organizationId?: string | undefined;
            }> & Record<string, any>) | undefined;
            query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
            params?: Record<string, any> | undefined;
            duplex?: "full" | "half" | undefined;
            jsonParser?: ((text: string) => Promise<any> | any) | undefined;
            retry?: better_auth_react.RetryOptions | undefined;
            retryAttempt?: number | undefined;
            output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
            errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
            disableValidation?: boolean | undefined;
        }>(data_0: better_auth_dist_shared_better_auth_CYegVoq1.P<{
            memberIdOrEmail: string;
            organizationId?: string | undefined;
        } & {
            fetchOptions?: FetchOptions | undefined;
        }>, data_1?: FetchOptions | undefined) => Promise<better_auth_react.BetterFetchResponse<{
            member: {
                id: string;
                createdAt: Date;
                userId: string;
                organizationId: string;
                role: string;
                teamId?: string | undefined;
            };
        }, {
            code?: string;
            message?: string;
        }, FetchOptions["throw"] extends true ? true : false>>;
    };
} & {
    organization: {
        updateMemberRole: <FetchOptions extends {
            method?: string | undefined;
            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 | undefined;
            credentials?: RequestCredentials | undefined;
            integrity?: string | undefined;
            keepalive?: boolean | undefined;
            mode?: RequestMode | undefined;
            priority?: RequestPriority | undefined;
            redirect?: RequestRedirect | undefined;
            referrer?: string | undefined;
            referrerPolicy?: ReferrerPolicy | undefined;
            signal?: (AbortSignal | null) | undefined;
            window?: null | undefined;
            onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
            onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
            onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
            onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
            onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
            hookOptions?: {
                cloneResponse?: boolean;
            } | undefined;
            timeout?: number | undefined;
            customFetchImpl?: better_auth_react.FetchEsque | undefined;
            plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
            baseURL?: string | undefined;
            throw?: boolean | undefined;
            auth?: ({
                type: "Bearer";
                token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<{
                role: "member" | "admin" | "owner" | ("member" | "admin" | "owner")[];
                memberId: string;
                organizationId?: string;
            }> & Record<string, any>) | undefined;
            query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
            params?: Record<string, any> | undefined;
            duplex?: "full" | "half" | undefined;
            jsonParser?: ((text: string) => Promise<any> | any) | undefined;
            retry?: better_auth_react.RetryOptions | undefined;
            retryAttempt?: number | undefined;
            output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
            errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
            disableValidation?: boolean | undefined;
        }>(data_0: better_auth_dist_shared_better_auth_CYegVoq1.P<{
            role: "member" | "admin" | "owner" | ("member" | "admin" | "owner")[];
            memberId: string;
            organizationId?: string;
        } & {
            fetchOptions?: FetchOptions | undefined;
        }>, data_1?: FetchOptions | undefined) => Promise<better_auth_react.BetterFetchResponse<{
            id: string;
            createdAt: Date;
            userId: string;
            organizationId: string;
            role: string;
            teamId?: string | undefined;
        }, {
            code?: string;
            message?: string;
        }, FetchOptions["throw"] extends true ? true : false>>;
    };
} & {
    organization: {
        getActiveMember: <FetchOptions extends {
            method?: string | undefined;
            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 | undefined;
            credentials?: RequestCredentials | undefined;
            integrity?: string | undefined;
            keepalive?: boolean | undefined;
            mode?: RequestMode | undefined;
            priority?: RequestPriority | undefined;
            redirect?: RequestRedirect | undefined;
            referrer?: string | undefined;
            referrerPolicy?: ReferrerPolicy | undefined;
            signal?: (AbortSignal | null) | undefined;
            window?: null | undefined;
            onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
            onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
            onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
            onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
            onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
            hookOptions?: {
                cloneResponse?: boolean;
            } | undefined;
            timeout?: number | undefined;
            customFetchImpl?: better_auth_react.FetchEsque | undefined;
            plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
            baseURL?: string | undefined;
            throw?: boolean | undefined;
            auth?: ({
                type: "Bearer";
                token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<string, any>> & Record<string, any>) | undefined;
            params?: Record<string, any> | undefined;
            duplex?: "full" | "half" | undefined;
            jsonParser?: ((text: string) => Promise<any> | any) | undefined;
            retry?: better_auth_react.RetryOptions | undefined;
            retryAttempt?: number | undefined;
            output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
            errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
            disableValidation?: boolean | undefined;
        }>(data_0?: better_auth_dist_shared_better_auth_CYegVoq1.P<{
            query?: Record<string, any> | undefined;
            fetchOptions?: FetchOptions | undefined;
        }> | undefined, data_1?: FetchOptions | undefined) => Promise<better_auth_react.BetterFetchResponse<{
            user: {
                id: string;
                name: string;
                email: string;
                image: string | null | undefined;
            };
            id: string;
            createdAt: Date;
            userId: string;
            organizationId: string;
            role: string;
            teamId?: string | undefined;
        }, {
            code?: string;
            message?: string;
        }, FetchOptions["throw"] extends true ? true : false>>;
    };
} & {
    organization: {
        leave: <FetchOptions extends {
            method?: string | undefined;
            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 | undefined;
            credentials?: RequestCredentials | undefined;
            integrity?: string | undefined;
            keepalive?: boolean | undefined;
            mode?: RequestMode | undefined;
            priority?: RequestPriority | undefined;
            redirect?: RequestRedirect | undefined;
            referrer?: string | undefined;
            referrerPolicy?: ReferrerPolicy | undefined;
            signal?: (AbortSignal | null) | undefined;
            window?: null | undefined;
            onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
            onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
            onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
            onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
            onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
            hookOptions?: {
                cloneResponse?: boolean;
            } | undefined;
            timeout?: number | undefined;
            customFetchImpl?: better_auth_react.FetchEsque | undefined;
            plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
            baseURL?: string | undefined;
            throw?: boolean | undefined;
            auth?: ({
                type: "Bearer";
                token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<{
                organizationId: string;
            }> & Record<string, any>) | undefined;
            query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
            params?: Record<string, any> | undefined;
            duplex?: "full" | "half" | undefined;
            jsonParser?: ((text: string) => Promise<any> | any) | undefined;
            retry?: better_auth_react.RetryOptions | undefined;
            retryAttempt?: number | undefined;
            output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
            errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
            disableValidation?: boolean | undefined;
        }>(data_0: better_auth_dist_shared_better_auth_CYegVoq1.P<{
            organizationId: string;
        } & {
            fetchOptions?: FetchOptions | undefined;
        }>, data_1?: FetchOptions | undefined) => Promise<better_auth_react.BetterFetchResponse<{
            user: {
                id: string;
                name: string;
                email: string;
                image: string | null | undefined;
            };
            id: string;
            createdAt: Date;
            userId: string;
            organizationId: string;
            role: string;
            teamId?: string | undefined;
        }, {
            code?: string;
            message?: string;
        }, FetchOptions["throw"] extends true ? true : false>>;
    };
} & {
    organization: {
        listInvitations: <FetchOptions extends {
            method?: string | undefined;
            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 | undefined;
            credentials?: RequestCredentials | undefined;
            integrity?: string | undefined;
            keepalive?: boolean | undefined;
            mode?: RequestMode | undefined;
            priority?: RequestPriority | undefined;
            redirect?: RequestRedirect | undefined;
            referrer?: string | undefined;
            referrerPolicy?: ReferrerPolicy | undefined;
            signal?: (AbortSignal | null) | undefined;
            window?: null | undefined;
            onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
            onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
            onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
            onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
            onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
            hookOptions?: {
                cloneResponse?: boolean;
            } | undefined;
            timeout?: number | undefined;
            customFetchImpl?: better_auth_react.FetchEsque | undefined;
            plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
            baseURL?: string | undefined;
            throw?: boolean | undefined;
            auth?: ({
                type: "Bearer";
                token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<{
                organizationId?: string | undefined;
            }> & Record<string, any>) | undefined;
            params?: Record<string, any> | undefined;
            duplex?: "full" | "half" | undefined;
            jsonParser?: ((text: string) => Promise<any> | any) | undefined;
            retry?: better_auth_react.RetryOptions | undefined;
            retryAttempt?: number | undefined;
            output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
            errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
            disableValidation?: boolean | undefined;
        }>(data_0?: better_auth_dist_shared_better_auth_CYegVoq1.P<{
            query?: {
                organizationId?: string | undefined;
            } | undefined;
            fetchOptions?: FetchOptions | undefined;
        }> | undefined, data_1?: FetchOptions | undefined) => Promise<better_auth_react.BetterFetchResponse<{
            id: string;
            email: string;
            status: "pending" | "accepted" | "rejected" | "canceled";
            expiresAt: Date;
            organizationId: string;
            role: string;
            inviterId: string;
            teamId?: string | undefined;
        }[], {
            code?: string;
            message?: string;
        }, FetchOptions["throw"] extends true ? true : false>>;
    };
} & {
    organization: {
        hasPermission: <FetchOptions extends {
            method?: string | undefined;
            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 | undefined;
            credentials?: RequestCredentials | undefined;
            integrity?: string | undefined;
            keepalive?: boolean | undefined;
            mode?: RequestMode | undefined;
            priority?: RequestPriority | undefined;
            redirect?: RequestRedirect | undefined;
            referrer?: string | undefined;
            referrerPolicy?: ReferrerPolicy | undefined;
            signal?: (AbortSignal | null) | undefined;
            window?: null | undefined;
            onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
            onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
            onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
            onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
            onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
            hookOptions?: {
                cloneResponse?: boolean;
            } | undefined;
            timeout?: number | undefined;
            customFetchImpl?: better_auth_react.FetchEsque | undefined;
            plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
            baseURL?: string | undefined;
            throw?: boolean | undefined;
            auth?: ({
                type: "Bearer";
                token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<({
                permission: {
                    readonly organization?: ("delete" | "update")[] | undefined;
                    readonly member?: ("delete" | "update" | "create")[] | undefined;
                    readonly invitation?: ("create" | "cancel")[] | undefined;
                    readonly team?: ("delete" | "update" | "create")[] | undefined;
                };
                permissions?: never;
            } | {
                permissions: {
                    readonly organization?: ("delete" | "update")[] | undefined;
                    readonly member?: ("delete" | "update" | "create")[] | undefined;
                    readonly invitation?: ("create" | "cancel")[] | undefined;
                    readonly team?: ("delete" | "update" | "create")[] | undefined;
                };
                permission?: never;
            }) & {
                organizationId?: string;
            }> & Record<string, any>) | undefined;
            query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
            params?: Record<string, any> | undefined;
            duplex?: "full" | "half" | undefined;
            jsonParser?: ((text: string) => Promise<any> | any) | undefined;
            retry?: better_auth_react.RetryOptions | undefined;
            retryAttempt?: number | undefined;
            output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
            errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
            disableValidation?: boolean | undefined;
        }>(data_0: better_auth_dist_shared_better_auth_CYegVoq1.P<(({
            permission: {
                readonly organization?: ("delete" | "update")[] | undefined;
                readonly member?: ("delete" | "update" | "create")[] | undefined;
                readonly invitation?: ("create" | "cancel")[] | undefined;
                readonly team?: ("delete" | "update" | "create")[] | undefined;
            };
            permissions?: never;
        } | {
            permissions: {
                readonly organization?: ("delete" | "update")[] | undefined;
                readonly member?: ("delete" | "update" | "create")[] | undefined;
                readonly invitation?: ("create" | "cancel")[] | undefined;
                readonly team?: ("delete" | "update" | "create")[] | undefined;
            };
            permission?: never;
        }) & {
            organizationId?: string;
        }) & {
            fetchOptions?: FetchOptions | undefined;
        }>, data_1?: FetchOptions | undefined) => Promise<better_auth_react.BetterFetchResponse<{
            error: null;
            success: boolean;
        }, {
            code?: string;
            message?: string;
        }, FetchOptions["throw"] extends true ? true : false>>;
    };
} & {
    signIn: {
        passkey: (opts?: {
            autoFill?: boolean;
            email?: string;
            fetchOptions?: better_auth_react.BetterFetchOption;
        }, options?: better_auth_react.BetterFetchOption) => Promise<{
            data: null;
            error: {
                message?: string | undefined;
                status: number;
                statusText: string;
            };
        } | undefined>;
    };
    passkey: {
        addPasskey: (opts?: {
            fetchOptions?: better_auth_react.BetterFetchOption;
            name?: string;
            authenticatorAttachment?: "platform" | "cross-platform";
            useAutoRegister?: boolean;
        }, fetchOpts?: better_auth_react.BetterFetchOption) => Promise<{
            data: null;
            error: {
                message?: string | undefined;
                status: number;
                statusText: string;
            };
        } | undefined>;
    };
    $Infer: {
        Passkey: better_auth_plugins_passkey.Passkey;
    };
} & {
    oneTap: (opts?: better_auth_client_plugins.GoogleOneTapActionOptions, fetchOptions?: better_auth_react.BetterFetchOption) => Promise<void>;
} & {
    $Infer: {
        ActiveOrganization: {
            members: {
                id: string;
                organizationId: string;
                role: "member" | "admin" | "owner";
                createdAt: Date;
                userId: string;
                user: {
                    email: string;
                    name: string;
                    image?: string;
                };
            }[];
            invitations: {
                id: string;
                organizationId: string;
                email: string;
                role: "member" | "admin" | "owner";
                status: better_auth_plugins_organization.InvitationStatus;
                inviterId: string;
                expiresAt: Date;
            }[];
        } & {
            id: string;
            name: string;
            createdAt: Date;
            slug: string;
            metadata?: any;
            logo?: string | null | undefined;
        };
        Organization: better_auth_plugins_organization.Organization;
        Invitation: {
            id: string;
            organizationId: string;
            email: string;
            role: "member" | "admin" | "owner";
            status: better_auth_plugins_organization.InvitationStatus;
            inviterId: string;
            expiresAt: Date;
        };
        Member: {
            id: string;
            organizationId: string;
            role: "member" | "admin" | "owner";
            createdAt: Date;
            userId: string;
            user: {
                email: string;
                name: string;
                image?: string;
            };
        };
        Team: better_auth_plugins_organization.Team;
    };
    organization: {
        checkRolePermission: <R extends "member" | "admin" | "owner">(data: ({
            permission: {
                readonly organization?: ("delete" | "update")[] | undefined;
                readonly member?: ("delete" | "update" | "create")[] | undefined;
                readonly invitation?: ("create" | "cancel")[] | undefined;
                readonly team?: ("delete" | "update" | "create")[] | undefined;
            };
            permissions?: never;
        } | {
            permissions: {
                readonly organization?: ("delete" | "update")[] | undefined;
                readonly member?: ("delete" | "update" | "create")[] | undefined;
                readonly invitation?: ("create" | "cancel")[] | undefined;
                readonly team?: ("delete" | "update" | "create")[] | undefined;
            };
            permission?: never;
        }) & {
            role: R;
        }) => boolean;
    };
} & {
    useSession: () => {
        data: {
            user: {
                id: string;
                name: string;
                email: string;
                emailVerified: boolean;
                createdAt: Date;
                updatedAt: Date;
                image?: string | null | undefined | undefined;
                isAnonymous?: boolean | null | undefined;
                username?: string | null | undefined;
                displayUsername?: string | null | undefined;
                twoFactorEnabled: boolean | null | undefined;
            };
            session: {
                id: string;
                createdAt: Date;
                updatedAt: Date;
                userId: string;
                expiresAt: Date;
                token: string;
                ipAddress?: string | null | undefined | undefined;
                userAgent?: string | null | undefined | undefined;
                activeOrganizationId?: string | null | undefined;
            };
        } | null;
        isPending: boolean;
        error: better_auth_react.BetterFetchError | null;
        refetch: () => void;
    };
    $Infer: {
        Session: {
            user: {
                id: string;
                name: string;
                email: string;
                emailVerified: boolean;
                createdAt: Date;
                updatedAt: Date;
                image?: string | null | undefined | undefined;
                isAnonymous?: boolean | null | undefined;
                username?: string | null | undefined;
                displayUsername?: string | null | undefined;
                twoFactorEnabled: boolean | null | undefined;
            };
            session: {
                id: string;
                createdAt: Date;
                updatedAt: Date;
                userId: string;
                expiresAt: Date;
                token: string;
                ipAddress?: string | null | undefined | undefined;
                userAgent?: string | null | undefined | undefined;
                activeOrganizationId?: string | null | undefined;
            };
        };
    };
    $fetch: better_auth_react.BetterFetch<{
        plugins: (better_auth_react.BetterFetchPlugin | {
            id: string;
            name: string;
            hooks: {
                onSuccess(context: better_auth_react.SuccessContext<any>): void;
            };
        })[];
        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;
        method: string;
        mode?: RequestMode;
        priority?: RequestPriority;
        redirect?: RequestRedirect;
        referrer?: string;
        referrerPolicy?: ReferrerPolicy;
        signal?: AbortSignal | null;
        window?: null;
        onRequest?: <T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void;
        onResponse?: (context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void;
        onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
        onError?: (context: better_auth_react.ErrorContext) => Promise<void> | void;
        onRetry?: (response: better_auth_react.ResponseContext) => Promise<void> | void;
        hookOptions?: {
            cloneResponse?: boolean;
        };
        timeout?: number;
        customFetchImpl: better_auth_react.FetchEsque;
        baseURL: string;
        throw?: boolean;
        auth?: {
            type: "Bearer";
            token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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> | any;
        retry?: better_auth_react.RetryOptions;
        retryAttempt?: number;
        output?: better_auth_react.StandardSchemaV1 | typeof Blob | typeof File;
        errorSchema?: better_auth_react.StandardSchemaV1;
        disableValidation?: boolean;
    }, unknown, unknown, {}>;
    $store: {
        notify: (signal?: Omit<string, "$sessionSignal"> | "$sessionSignal") => void;
        listen: (signal: Omit<string, "$sessionSignal"> | "$sessionSignal", listener: (value: boolean, oldValue?: boolean | undefined) => void) => void;
        atoms: Record<string, better_auth_react.WritableAtom<any>>;
    };
    $ERROR_CODES: {
        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;
    };
};
type AuthClient = typeof authClient;

declare function createAuthHooks<TAuthClient extends AnyAuthClient>(authClient: TAuthClient): {
    useSession: (options?: Partial<AnyUseQueryOptions>) => {
        session: TAuthClient["$Infer"]["Session"]["session"] | undefined;
        user: TAuthClient["$Infer"]["Session"]["user"] | undefined;
        data: TAuthClient["$Infer"]["Session"];
        error: Error;
        isError: true;
        isPending: false;
        isLoading: false;
        isLoadingError: false;
        isRefetchError: true;
        isSuccess: false;
        isPlaceholderData: false;
        status: "error";
        dataUpdatedAt: number;
        errorUpdatedAt: number;
        failureCount: number;
        failureReason: Error | null;
        errorUpdateCount: number;
        isFetched: boolean;
        isFetchedAfterMount: boolean;
        isFetching: boolean;
        isInitialLoading: boolean;
        isPaused: boolean;
        isRefetching: boolean;
        isStale: boolean;
        refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<TAuthClient["$Infer"]["Session"], Error>>;
        fetchStatus: _tanstack_react_query.FetchStatus;
        promise: Promise<TAuthClient["$Infer"]["Session"]>;
    } | {
        session: TAuthClient["$Infer"]["Session"]["session"] | undefined;
        user: TAuthClient["$Infer"]["Session"]["user"] | undefined;
        data: TAuthClient["$Infer"]["Session"];
        error: null;
        isError: false;
        isPending: false;
        isLoading: false;
        isLoadingError: false;
        isRefetchError: false;
        isSuccess: true;
        isPlaceholderData: false;
        status: "success";
        dataUpdatedAt: number;
        errorUpdatedAt: number;
        failureCount: number;
        failureReason: Error | null;
        errorUpdateCount: number;
        isFetched: boolean;
        isFetchedAfterMount: boolean;
        isFetching: boolean;
        isInitialLoading: boolean;
        isPaused: boolean;
        isRefetching: boolean;
        isStale: boolean;
        refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<TAuthClient["$Infer"]["Session"], Error>>;
        fetchStatus: _tanstack_react_query.FetchStatus;
        promise: Promise<TAuthClient["$Infer"]["Session"]>;
    } | {
        session: TAuthClient["$Infer"]["Session"]["session"] | undefined;
        user: TAuthClient["$Infer"]["Session"]["user"] | undefined;
        data: undefined;
        error: Error;
        isError: true;
        isPending: false;
        isLoading: false;
        isLoadingError: true;
        isRefetchError: false;
        isSuccess: false;
        isPlaceholderData: false;
        status: "error";
        dataUpdatedAt: number;
        errorUpdatedAt: number;
        failureCount: number;
        failureReason: Error | null;
        errorUpdateCount: number;
        isFetched: boolean;
        isFetchedAfterMount: boolean;
        isFetching: boolean;
        isInitialLoading: boolean;
        isPaused: boolean;
        isRefetching: boolean;
        isStale: boolean;
        refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<TAuthClient["$Infer"]["Session"], Error>>;
        fetchStatus: _tanstack_react_query.FetchStatus;
        promise: Promise<TAuthClient["$Infer"]["Session"]>;
    } | {
        session: TAuthClient["$Infer"]["Session"]["session"] | undefined;
        user: TAuthClient["$Infer"]["Session"]["user"] | undefined;
        data: undefined;
        error: null;
        isError: false;
        isPending: true;
        isLoading: true;
        isLoadingError: false;
        isRefetchError: false;
        isSuccess: false;
        isPlaceholderData: false;
        status: "pending";
        dataUpdatedAt: number;
        errorUpdatedAt: number;
        failureCount: number;
        failureReason: Error | null;
        errorUpdateCount: number;
        isFetched: boolean;
        isFetchedAfterMount: boolean;
        isFetching: boolean;
        isInitialLoading: boolean;
        isPaused: boolean;
        isRefetching: boolean;
        isStale: boolean;
        refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<TAuthClient["$Infer"]["Session"], Error>>;
        fetchStatus: _tanstack_react_query.FetchStatus;
        promise: Promise<TAuthClient["$Infer"]["Session"]>;
    } | {
        session: TAuthClient["$Infer"]["Session"]["session"] | undefined;
        user: TAuthClient["$Infer"]["Session"]["user"] | undefined;
        data: undefined;
        error: null;
        isError: false;
        isPending: true;
        isLoadingError: false;
        isRefetchError: false;
        isSuccess: false;
        isPlaceholderData: false;
        status: "pending";
        dataUpdatedAt: number;
        errorUpdatedAt: number;
        failureCount: number;
        failureReason: Error | null;
        errorUpdateCount: number;
        isFetched: boolean;
        isFetchedAfterMount: boolean;
        isFetching: boolean;
        isLoading: boolean;
        isInitialLoading: boolean;
        isPaused: boolean;
        isRefetching: boolean;
        isStale: boolean;
        refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<TAuthClient["$Infer"]["Session"], Error>>;
        fetchStatus: _tanstack_react_query.FetchStatus;
        promise: Promise<TAuthClient["$Infer"]["Session"]>;
    } | {
        session: TAuthClient["$Infer"]["Session"]["session"] | undefined;
        user: TAuthClient["$Infer"]["Session"]["user"] | undefined;
        data: TAuthClient["$Infer"]["Session"];
        isError: false;
        error: null;
        isPending: false;
        isLoading: false;
        isLoadingError: false;
        isRefetchError: false;
        isSuccess: true;
        isPlaceholderData: true;
        status: "success";
        dataUpdatedAt: number;
        errorUpdatedAt: number;
        failureCount: number;
        failureReason: Error | null;
        errorUpdateCount: number;
        isFetched: boolean;
        isFetchedAfterMount: boolean;
        isFetching: boolean;
        isInitialLoading: boolean;
        isPaused: boolean;
        isRefetching: boolean;
        isStale: boolean;
        refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<TAuthClient["$Infer"]["Session"], Error>>;
        fetchStatus: _tanstack_react_query.FetchStatus;
        promise: Promise<TAuthClient["$Infer"]["Session"]>;
    };
    usePrefetchSession: (options?: Partial<AnyUseQueryOptions>) => {
        prefetch: () => Promise<{
            error: {
                code?: string | undefined;
                message?: string | undefined;
                status: number;
                statusText: string;
            } | null;
            data: {
                user: {
                    id: string;
                    name: string;
                    email: string;
                    emailVerified: boolean;
                    createdAt: Date;
                    updatedAt: Date;
                    image?: string | null | undefined | undefined;
                    isAnonymous?: boolean | null | undefined;
                    username?: string | null | undefined;
                    displayUsername?: string | null | undefined;
                    twoFactorEnabled: boolean | null | undefined;
                };
                session: {
                    id: string;
                    createdAt: Date;
                    updatedAt: Date;
                    userId: string;
                    expiresAt: Date;
                    token: string;
                    ipAddress?: string | null | undefined | undefined;
                    userAgent?: string | null | undefined | undefined;
                    activeOrganizationId?: string | null | undefined;
                };
            } | null;
            session: TAuthClient["$Infer"]["Session"]["session"] | undefined;
            user: TAuthClient["$Infer"]["Session"]["user"] | undefined;
        }>;
    };
    useUpdateUser: (options?: Partial<AuthQueryOptions>) => {
        mutate: _tanstack_react_query.UseMutateFunction<NonThrowableResult | ThrowableResult, Error, better_auth_dist_shared_better_auth_CYegVoq1.P<{
            image?: string | null;
            name?: string;
            fetchOptions?: {
                method?: string | undefined;
                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 | undefined;
                credentials?: RequestCredentials | undefined;
                integrity?: string | undefined;
                keepalive?: boolean | undefined;
                mode?: RequestMode | undefined;
                priority?: RequestPriority | undefined;
                redirect?: RequestRedirect | undefined;
                referrer?: string | undefined;
                referrerPolicy?: ReferrerPolicy | undefined;
                signal?: (AbortSignal | null) | undefined;
                window?: null | undefined;
                onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
                onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
                onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
                onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
                onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
                hookOptions?: {
                    cloneResponse?: boolean;
                } | undefined;
                timeout?: number | undefined;
                customFetchImpl?: better_auth_react.FetchEsque | undefined;
                plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
                baseURL?: string | undefined;
                throw?: boolean | undefined;
                auth?: ({
                    type: "Bearer";
                    token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<Partial<{}> & {
                    name?: string;
                    image?: string;
                }> & Record<string, any>) | undefined;
                query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
                params?: Record<string, any> | undefined;
                duplex?: "full" | "half" | undefined;
                jsonParser?: ((text: string) => Promise<any> | any) | undefined;
                retry?: better_auth_react.RetryOptions | undefined;
                retryAttempt?: number | undefined;
                output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
                errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
                disableValidation?: boolean | undefined;
            } | undefined;
        } & Partial<{}>> | undefined, {
            previousData: {};
        }>;
        mutateAsync: {
            (params: Omit<better_auth_dist_shared_better_auth_CYegVoq1.P<{
                image?: string | null;
                name?: string;
                fetchOptions?: {
                    method?: string | undefined;
                    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 | undefined;
                    credentials?: RequestCredentials | undefined;
                    integrity?: string | undefined;
                    keepalive?: boolean | undefined;
                    mode?: RequestMode | undefined;
                    priority?: RequestPriority | undefined;
                    redirect?: RequestRedirect | undefined;
                    referrer?: string | undefined;
                    referrerPolicy?: ReferrerPolicy | undefined;
                    signal?: (AbortSignal | null) | undefined;
                    window?: null | undefined;
                    onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
                    onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
                    onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
                    onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
                    onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
                    hookOptions?: {
                        cloneResponse?: boolean;
                    } | undefined;
                    timeout?: number | undefined;
                    customFetchImpl?: better_auth_react.FetchEsque | undefined;
                    plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
                    baseURL?: string | undefined;
                    throw?: boolean | undefined;
                    auth?: ({
                        type: "Bearer";
                        token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<Partial<{}> & {
                        name?: string;
                        image?: string;
                    }> & Record<string, any>) | undefined;
                    query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
                    params?: Record<string, any> | undefined;
                    duplex?: "full" | "half" | undefined;
                    jsonParser?: ((text: string) => Promise<any> | any) | undefined;
                    retry?: better_auth_react.RetryOptions | undefined;
                    retryAttempt?: number | undefined;
                    output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
                    errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
                    disableValidation?: boolean | undefined;
                } | undefined;
            } & Partial<{}>> | undefined, "fetchOptions"> & {
                fetchOptions?: {
                    throw?: true;
                } | undefined;
            }): Promise<ThrowableResult>;
            (params: Omit<better_auth_dist_shared_better_auth_CYegVoq1.P<{
                image?: string | null;
                name?: string;
                fetchOptions?: {
                    method?: string | undefined;
                    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 | undefined;
                    credentials?: RequestCredentials | undefined;
                    integrity?: string | undefined;
                    keepalive?: boolean | undefined;
                    mode?: RequestMode | undefined;
                    priority?: RequestPriority | undefined;
                    redirect?: RequestRedirect | undefined;
                    referrer?: string | undefined;
                    referrerPolicy?: ReferrerPolicy | undefined;
                    signal?: (AbortSignal | null) | undefined;
                    window?: null | undefined;
                    onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
                    onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
                    onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
                    onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
                    onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
                    hookOptions?: {
                        cloneResponse?: boolean;
                    } | undefined;
                    timeout?: number | undefined;
                    customFetchImpl?: better_auth_react.FetchEsque | undefined;
                    plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
                    baseURL?: string | undefined;
                    throw?: boolean | undefined;
                    auth?: ({
                        type: "Bearer";
                        token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<Partial<{}> & {
                        name?: string;
                        image?: string;
                    }> & Record<string, any>) | undefined;
                    query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
                    params?: Record<string, any> | undefined;
                    duplex?: "full" | "half" | undefined;
                    jsonParser?: ((text: string) => Promise<any> | any) | undefined;
                    retry?: better_auth_react.RetryOptions | undefined;
                    retryAttempt?: number | undefined;
                    output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
                    errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
                    disableValidation?: boolean | undefined;
                } | undefined;
            } & Partial<{}>> | undefined, "fetchOptions"> & {
                fetchOptions?: better_auth_react.BetterFetchOption;
            }): Promise<NonThrowableResult>;
        };
        isPending: boolean;
        error: Error | null;
        data: undefined;
        variables: undefined;
        isError: false;
        isIdle: true;
        isSuccess: false;
        status: "idle";
        reset: () => void;
        context: {
            previousData: {};
        } | undefined;
        failureCount: number;
        failureReason: Error | null;
        isPaused: boolean;
        submittedAt: number;
    } | {
        mutate: _tanstack_react_query.UseMutateFunction<NonThrowableResult | ThrowableResult, Error, better_auth_dist_shared_better_auth_CYegVoq1.P<{
            image?: string | null;
            name?: string;
            fetchOptions?: {
                method?: string | undefined;
                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 | undefined;
                credentials?: RequestCredentials | undefined;
                integrity?: string | undefined;
                keepalive?: boolean | undefined;
                mode?: RequestMode | undefined;
                priority?: RequestPriority | undefined;
                redirect?: RequestRedirect | undefined;
                referrer?: string | undefined;
                referrerPolicy?: ReferrerPolicy | undefined;
                signal?: (AbortSignal | null) | undefined;
                window?: null | undefined;
                onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
                onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
                onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
                onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
                onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
                hookOptions?: {
                    cloneResponse?: boolean;
                } | undefined;
                timeout?: number | undefined;
                customFetchImpl?: better_auth_react.FetchEsque | undefined;
                plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
                baseURL?: string | undefined;
                throw?: boolean | undefined;
                auth?: ({
                    type: "Bearer";
                    token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<Partial<{}> & {
                    name?: string;
                    image?: string;
                }> & Record<string, any>) | undefined;
                query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
                params?: Record<string, any> | undefined;
                duplex?: "full" | "half" | undefined;
                jsonParser?: ((text: string) => Promise<any> | any) | undefined;
                retry?: better_auth_react.RetryOptions | undefined;
                retryAttempt?: number | undefined;
                output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
                errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
                disableValidation?: boolean | undefined;
            } | undefined;
        } & Partial<{}>> | undefined, {
            previousData: {};
        }>;
        mutateAsync: {
            (params: Omit<better_auth_dist_shared_better_auth_CYegVoq1.P<{
                image?: string | null;
                name?: string;
                fetchOptions?: {
                    method?: string | undefined;
                    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 | undefined;
                    credentials?: RequestCredentials | undefined;
                    integrity?: string | undefined;
                    keepalive?: boolean | undefined;
                    mode?: RequestMode | undefined;
                    priority?: RequestPriority | undefined;
                    redirect?: RequestRedirect | undefined;
                    referrer?: string | undefined;
                    referrerPolicy?: ReferrerPolicy | undefined;
                    signal?: (AbortSignal | null) | undefined;
                    window?: null | undefined;
                    onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
                    onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
                    onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
                    onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
                    onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
                    hookOptions?: {
                        cloneResponse?: boolean;
                    } | undefined;
                    timeout?: number | undefined;
                    customFetchImpl?: better_auth_react.FetchEsque | undefined;
                    plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
                    baseURL?: string | undefined;
                    throw?: boolean | undefined;
                    auth?: ({
                        type: "Bearer";
                        token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<Partial<{}> & {
                        name?: string;
                        image?: string;
                    }> & Record<string, any>) | undefined;
                    query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
                    params?: Record<string, any> | undefined;
                    duplex?: "full" | "half" | undefined;
                    jsonParser?: ((text: string) => Promise<any> | any) | undefined;
                    retry?: better_auth_react.RetryOptions | undefined;
                    retryAttempt?: number | undefined;
                    output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
                    errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
                    disableValidation?: boolean | undefined;
                } | undefined;
            } & Partial<{}>> | undefined, "fetchOptions"> & {
                fetchOptions?: {
                    throw?: true;
                } | undefined;
            }): Promise<ThrowableResult>;
            (params: Omit<better_auth_dist_shared_better_auth_CYegVoq1.P<{
                image?: string | null;
                name?: string;
                fetchOptions?: {
                    method?: string | undefined;
                    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 | undefined;
                    credentials?: RequestCredentials | undefined;
                    integrity?: string | undefined;
                    keepalive?: boolean | undefined;
                    mode?: RequestMode | undefined;
                    priority?: RequestPriority | undefined;
                    redirect?: RequestRedirect | undefined;
                    referrer?: string | undefined;
                    referrerPolicy?: ReferrerPolicy | undefined;
                    signal?: (AbortSignal | null) | undefined;
                    window?: null | undefined;
                    onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
                    onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
                    onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
                    onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
                    onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
                    hookOptions?: {
                        cloneResponse?: boolean;
                    } | undefined;
                    timeout?: number | undefined;
                    customFetchImpl?: better_auth_react.FetchEsque | undefined;
                    plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
                    baseURL?: string | undefined;
                    throw?: boolean | undefined;
                    auth?: ({
                        type: "Bearer";
                        token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<Partial<{}> & {
                        name?: string;
                        image?: string;
                    }> & Record<string, any>) | undefined;
                    query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
                    params?: Record<string, any> | undefined;
                    duplex?: "full" | "half" | undefined;
                    jsonParser?: ((text: string) => Promise<any> | any) | undefined;
                    retry?: better_auth_react.RetryOptions | undefined;
                    retryAttempt?: number | undefined;
                    output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
                    errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
                    disableValidation?: boolean | undefined;
                } | undefined;
            } & Partial<{}>> | undefined, "fetchOptions"> & {
                fetchOptions?: better_auth_react.BetterFetchOption;
            }): Promise<NonThrowableResult>;
        };
        isPending: boolean;
        error: Error | null;
        data: undefined;
        variables: better_auth_dist_shared_better_auth_CYegVoq1.P<{
            image?: string | null;
            name?: string;
            fetchOptions?: {
                method?: string | undefined;
                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 | undefined;
                credentials?: RequestCredentials | undefined;
                integrity?: string | undefined;
                keepalive?: boolean | undefined;
                mode?: RequestMode | undefined;
                priority?: RequestPriority | undefined;
                redirect?: RequestRedirect | undefined;
                referrer?: string | undefined;
                referrerPolicy?: ReferrerPolicy | undefined;
                signal?: (AbortSignal | null) | undefined;
                window?: null | undefined;
                onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
                onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
                onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
                onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
                onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
                hookOptions?: {
                    cloneResponse?: boolean;
                } | undefined;
                timeout?: number | undefined;
                customFetchImpl?: better_auth_react.FetchEsque | undefined;
                plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
                baseURL?: string | undefined;
                throw?: boolean | undefined;
                auth?: ({
                    type: "Bearer";
                    token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<Partial<{}> & {
                    name?: string;
                    image?: string;
                }> & Record<string, any>) | undefined;
                query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
                params?: Record<string, any> | undefined;
                duplex?: "full" | "half" | undefined;
                jsonParser?: ((text: string) => Promise<any> | any) | undefined;
                retry?: better_auth_react.RetryOptions | undefined;
                retryAttempt?: number | undefined;
                output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
                errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
                disableValidation?: boolean | undefined;
            } | undefined;
        } & Partial<{}>> | undefined;
        isError: false;
        isIdle: false;
        isSuccess: false;
        status: "pending";
        reset: () => void;
        context: {
            previousData: {};
        } | undefined;
        failureCount: number;
        failureReason: Error | null;
        isPaused: boolean;
        submittedAt: number;
    } | {
        mutate: _tanstack_react_query.UseMutateFunction<NonThrowableResult | ThrowableResult, Error, better_auth_dist_shared_better_auth_CYegVoq1.P<{
            image?: string | null;
            name?: string;
            fetchOptions?: {
                method?: string | undefined;
                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 | undefined;
                credentials?: RequestCredentials | undefined;
                integrity?: string | undefined;
                keepalive?: boolean | undefined;
                mode?: RequestMode | undefined;
                priority?: RequestPriority | undefined;
                redirect?: RequestRedirect | undefined;
                referrer?: string | undefined;
                referrerPolicy?: ReferrerPolicy | undefined;
                signal?: (AbortSignal | null) | undefined;
                window?: null | undefined;
                onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
                onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
                onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
                onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
                onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
                hookOptions?: {
                    cloneResponse?: boolean;
                } | undefined;
                timeout?: number | undefined;
                customFetchImpl?: better_auth_react.FetchEsque | undefined;
                plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
                baseURL?: string | undefined;
                throw?: boolean | undefined;
                auth?: ({
                    type: "Bearer";
                    token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<Partial<{}> & {
                    name?: string;
                    image?: string;
                }> & Record<string, any>) | undefined;
                query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
                params?: Record<string, any> | undefined;
                duplex?: "full" | "half" | undefined;
                jsonParser?: ((text: string) => Promise<any> | any) | undefined;
                retry?: better_auth_react.RetryOptions | undefined;
                retryAttempt?: number | undefined;
                output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
                errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
                disableValidation?: boolean | undefined;
            } | undefined;
        } & Partial<{}>> | undefined, {
            previousData: {};
        }>;
        mutateAsync: {
            (params: Omit<better_auth_dist_shared_better_auth_CYegVoq1.P<{
                image?: string | null;
                name?: string;
                fetchOptions?: {
                    method?: string | undefined;
                    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 | undefined;
                    credentials?: RequestCredentials | undefined;
                    integrity?: string | undefined;
                    keepalive?: boolean | undefined;
                    mode?: RequestMode | undefined;
                    priority?: RequestPriority | undefined;
                    redirect?: RequestRedirect | undefined;
                    referrer?: string | undefined;
                    referrerPolicy?: ReferrerPolicy | undefined;
                    signal?: (AbortSignal | null) | undefined;
                    window?: null | undefined;
                    onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
                    onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
                    onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
                    onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
                    onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
                    hookOptions?: {
                        cloneResponse?: boolean;
                    } | undefined;
                    timeout?: number | undefined;
                    customFetchImpl?: better_auth_react.FetchEsque | undefined;
                    plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
                    baseURL?: string | undefined;
                    throw?: boolean | undefined;
                    auth?: ({
                        type: "Bearer";
                        token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<Partial<{}> & {
                        name?: string;
                        image?: string;
                    }> & Record<string, any>) | undefined;
                    query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
                    params?: Record<string, any> | undefined;
                    duplex?: "full" | "half" | undefined;
                    jsonParser?: ((text: string) => Promise<any> | any) | undefined;
                    retry?: better_auth_react.RetryOptions | undefined;
                    retryAttempt?: number | undefined;
                    output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
                    errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
                    disableValidation?: boolean | undefined;
                } | undefined;
            } & Partial<{}>> | undefined, "fetchOptions"> & {
                fetchOptions?: {
                    throw?: true;
                } | undefined;
            }): Promise<ThrowableResult>;
            (params: Omit<better_auth_dist_shared_better_auth_CYegVoq1.P<{
                image?: string | null;
                name?: string;
                fetchOptions?: {
                    method?: string | undefined;
                    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 | undefined;
                    credentials?: RequestCredentials | undefined;
                    integrity?: string | undefined;
                    keepalive?: boolean | undefined;
                    mode?: RequestMode | undefined;
                    priority?: RequestPriority | undefined;
                    redirect?: RequestRedirect | undefined;
                    referrer?: string | undefined;
                    referrerPolicy?: ReferrerPolicy | undefined;
                    signal?: (AbortSignal | null) | undefined;
                    window?: null | undefined;
                    onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
                    onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
                    onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
                    onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
                    onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
                    hookOptions?: {
                        cloneResponse?: boolean;
                    } | undefined;
                    timeout?: number | undefined;
                    customFetchImpl?: better_auth_react.FetchEsque | undefined;
                    plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
                    baseURL?: string | undefined;
                    throw?: boolean | undefined;
                    auth?: ({
                        type: "Bearer";
                        token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<Partial<{}> & {
                        name?: string;
                        image?: string;
                    }> & Record<string, any>) | undefined;
                    query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
                    params?: Record<string, any> | undefined;
                    duplex?: "full" | "half" | undefined;
                    jsonParser?: ((text: string) => Promise<any> | any) | undefined;
                    retry?: better_auth_react.RetryOptions | undefined;
                    retryAttempt?: number | undefined;
                    output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
                    errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
                    disableValidation?: boolean | undefined;
                } | undefined;
            } & Partial<{}>> | undefined, "fetchOptions"> & {
                fetchOptions?: better_auth_react.BetterFetchOption;
            }): Promise<NonThrowableResult>;
        };
        isPending: boolean;
        error: Error | null;
        data: undefined;
        variables: better_auth_dist_shared_better_auth_CYegVoq1.P<{
            image?: string | null;
            name?: string;
            fetchOptions?: {
                method?: string | undefined;
                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 | undefined;
                credentials?: RequestCredentials | undefined;
                integrity?: string | undefined;
                keepalive?: boolean | undefined;
                mode?: RequestMode | undefined;
                priority?: RequestPriority | undefined;
                redirect?: RequestRedirect | undefined;
                referrer?: string | undefined;
                referrerPolicy?: ReferrerPolicy | undefined;
                signal?: (AbortSignal | null) | undefined;
                window?: null | undefined;
                onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
                onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
                onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
                onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
                onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
                hookOptions?: {
                    cloneResponse?: boolean;
                } | undefined;
                timeout?: number | undefined;
                customFetchImpl?: better_auth_react.FetchEsque | undefined;
                plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
                baseURL?: string | undefined;
                throw?: boolean | undefined;
                auth?: ({
                    type: "Bearer";
                    token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<Partial<{}> & {
                    name?: string;
                    image?: string;
                }> & Record<string, any>) | undefined;
                query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
                params?: Record<string, any> | undefined;
                duplex?: "full" | "half" | undefined;
                jsonParser?: ((text: string) => Promise<any> | any) | undefined;
                retry?: better_auth_react.RetryOptions | undefined;
                retryAttempt?: number | undefined;
                output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
                errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
                disableValidation?: boolean | undefined;
            } | undefined;
        } & Partial<{}>> | undefined;
        isError: true;
        isIdle: false;
        isSuccess: false;
        status: "error";
        reset: () => void;
        context: {
            previousData: {};
        } | undefined;
        failureCount: number;
        failureReason: Error | null;
        isPaused: boolean;
        submittedAt: number;
    } | {
        mutate: _tanstack_react_query.UseMutateFunction<NonThrowableResult | ThrowableResult, Error, better_auth_dist_shared_better_auth_CYegVoq1.P<{
            image?: string | null;
            name?: string;
            fetchOptions?: {
                method?: string | undefined;
                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 | undefined;
                credentials?: RequestCredentials | undefined;
                integrity?: string | undefined;
                keepalive?: boolean | undefined;
                mode?: RequestMode | undefined;
                priority?: RequestPriority | undefined;
                redirect?: RequestRedirect | undefined;
                referrer?: string | undefined;
                referrerPolicy?: ReferrerPolicy | undefined;
                signal?: (AbortSignal | null) | undefined;
                window?: null | undefined;
                onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
                onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
                onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
                onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
                onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
                hookOptions?: {
                    cloneResponse?: boolean;
                } | undefined;
                timeout?: number | undefined;
                customFetchImpl?: better_auth_react.FetchEsque | undefined;
                plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
                baseURL?: string | undefined;
                throw?: boolean | undefined;
                auth?: ({
                    type: "Bearer";
                    token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<Partial<{}> & {
                    name?: string;
                    image?: string;
                }> & Record<string, any>) | undefined;
                query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
                params?: Record<string, any> | undefined;
                duplex?: "full" | "half" | undefined;
                jsonParser?: ((text: string) => Promise<any> | any) | undefined;
                retry?: better_auth_react.RetryOptions | undefined;
                retryAttempt?: number | undefined;
                output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
                errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
                disableValidation?: boolean | undefined;
            } | undefined;
        } & Partial<{}>> | undefined, {
            previousData: {};
        }>;
        mutateAsync: {
            (params: Omit<better_auth_dist_shared_better_auth_CYegVoq1.P<{
                image?: string | null;
                name?: string;
                fetchOptions?: {
                    method?: string | undefined;
                    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 | undefined;
                    credentials?: RequestCredentials | undefined;
                    integrity?: string | undefined;
                    keepalive?: boolean | undefined;
                    mode?: RequestMode | undefined;
                    priority?: RequestPriority | undefined;
                    redirect?: RequestRedirect | undefined;
                    referrer?: string | undefined;
                    referrerPolicy?: ReferrerPolicy | undefined;
                    signal?: (AbortSignal | null) | undefined;
                    window?: null | undefined;
                    onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
                    onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
                    onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
                    onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
                    onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
                    hookOptions?: {
                        cloneResponse?: boolean;
                    } | undefined;
                    timeout?: number | undefined;
                    customFetchImpl?: better_auth_react.FetchEsque | undefined;
                    plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
                    baseURL?: string | undefined;
                    throw?: boolean | undefined;
                    auth?: ({
                        type: "Bearer";
                        token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<Partial<{}> & {
                        name?: string;
                        image?: string;
                    }> & Record<string, any>) | undefined;
                    query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
                    params?: Record<string, any> | undefined;
                    duplex?: "full" | "half" | undefined;
                    jsonParser?: ((text: string) => Promise<any> | any) | undefined;
                    retry?: better_auth_react.RetryOptions | undefined;
                    retryAttempt?: number | undefined;
                    output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
                    errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
                    disableValidation?: boolean | undefined;
                } | undefined;
            } & Partial<{}>> | undefined, "fetchOptions"> & {
                fetchOptions?: {
                    throw?: true;
                } | undefined;
            }): Promise<ThrowableResult>;
            (params: Omit<better_auth_dist_shared_better_auth_CYegVoq1.P<{
                image?: string | null;
                name?: string;
                fetchOptions?: {
                    method?: string | undefined;
                    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 | undefined;
                    credentials?: RequestCredentials | undefined;
                    integrity?: string | undefined;
                    keepalive?: boolean | undefined;
                    mode?: RequestMode | undefined;
                    priority?: RequestPriority | undefined;
                    redirect?: RequestRedirect | undefined;
                    referrer?: string | undefined;
                    referrerPolicy?: ReferrerPolicy | undefined;
                    signal?: (AbortSignal | null) | undefined;
                    window?: null | undefined;
                    onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
                    onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
                    onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
                    onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
                    onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
                    hookOptions?: {
                        cloneResponse?: boolean;
                    } | undefined;
                    timeout?: number | undefined;
                    customFetchImpl?: better_auth_react.FetchEsque | undefined;
                    plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
                    baseURL?: string | undefined;
                    throw?: boolean | undefined;
                    auth?: ({
                        type: "Bearer";
                        token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<Partial<{}> & {
                        name?: string;
                        image?: string;
                    }> & Record<string, any>) | undefined;
                    query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
                    params?: Record<string, any> | undefined;
                    duplex?: "full" | "half" | undefined;
                    jsonParser?: ((text: string) => Promise<any> | any) | undefined;
                    retry?: better_auth_react.RetryOptions | undefined;
                    retryAttempt?: number | undefined;
                    output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
                    errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
                    disableValidation?: boolean | undefined;
                } | undefined;
            } & Partial<{}>> | undefined, "fetchOptions"> & {
                fetchOptions?: better_auth_react.BetterFetchOption;
            }): Promise<NonThrowableResult>;
        };
        isPending: boolean;
        error: Error | null;
        data: NonThrowableResult | ThrowableResult;
        variables: better_auth_dist_shared_better_auth_CYegVoq1.P<{
            image?: string | null;
            name?: string;
            fetchOptions?: {
                method?: string | undefined;
                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 | undefined;
                credentials?: RequestCredentials | undefined;
                integrity?: string | undefined;
                keepalive?: boolean | undefined;
                mode?: RequestMode | undefined;
                priority?: RequestPriority | undefined;
                redirect?: RequestRedirect | undefined;
                referrer?: string | undefined;
                referrerPolicy?: ReferrerPolicy | undefined;
                signal?: (AbortSignal | null) | undefined;
                window?: null | undefined;
                onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
                onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
                onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
                onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
                onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
                hookOptions?: {
                    cloneResponse?: boolean;
                } | undefined;
                timeout?: number | undefined;
                customFetchImpl?: better_auth_react.FetchEsque | undefined;
                plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
                baseURL?: string | undefined;
                throw?: boolean | undefined;
                auth?: ({
                    type: "Bearer";
                    token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<Partial<{}> & {
                    name?: string;
                    image?: string;
                }> & Record<string, any>) | undefined;
                query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
                params?: Record<string, any> | undefined;
                duplex?: "full" | "half" | undefined;
                jsonParser?: ((text: string) => Promise<any> | any) | undefined;
                retry?: better_auth_react.RetryOptions | undefined;
                retryAttempt?: number | undefined;
                output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
                errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
                disableValidation?: boolean | undefined;
            } | undefined;
        } & Partial<{}>> | undefined;
        isError: false;
        isIdle: false;
        isSuccess: true;
        status: "success";
        reset: () => void;
        context: {
            previousData: {};
        } | undefined;
        failureCount: number;
        failureReason: Error | null;
        isPaused: boolean;
        submittedAt: number;
    };
    useToken: (options?: Partial<AnyUseQueryOptions>) => {
        data: {
            token: string;
        } | undefined;
        token: string | undefined;
        payload: any;
        error: Error;
        isError: true;
        isPending: false;
        isLoading: false;
        isLoadingError: false;
        isRefetchError: true;
        isSuccess: false;
        isPlaceholderData: false;
        status: "error";
        dataUpdatedAt: number;
        errorUpdatedAt: number;
        failureCount: number;
        failureReason: Error | null;
        errorUpdateCount: number;
        isFetched: boolean;
        isFetchedAfterMount: boolean;
        isFetching: boolean;
        isInitialLoading: boolean;
        isPaused: boolean;
        isRefetching: boolean;
        isStale: boolean;
        fetchStatus: _tanstack_react_query.FetchStatus;
        promise: Promise<{
            token: string;
        }>;
    } | {
        data: {
            token: string;
        } | undefined;
        token: string | undefined;
        payload: any;
        error: null;
        isError: false;
        isPending: false;
        isLoading: false;
        isLoadingError: false;
        isRefetchError: false;
        isSuccess: true;
        isPlaceholderData: false;
        status: "success";
        dataUpdatedAt: number;
        errorUpdatedAt: number;
        failureCount: number;
        failureReason: Error | null;
        errorUpdateCount: number;
        isFetched: boolean;
        isFetchedAfterMount: boolean;
        isFetching: boolean;
        isInitialLoading: boolean;
        isPaused: boolean;
        isRefetching: boolean;
        isStale: boolean;
        fetchStatus: _tanstack_react_query.FetchStatus;
        promise: Promise<{
            token: string;
        }>;
    } | {
        data: {
            token: string;
        } | undefined;
        token: string | undefined;
        payload: any;
        error: Error;
        isError: true;
        isPending: false;
        isLoading: false;
        isLoadingError: true;
        isRefetchError: false;
        isSuccess: false;
        isPlaceholderData: false;
        status: "error";
        dataUpdatedAt: number;
        errorUpdatedAt: number;
        failureCount: number;
        failureReason: Error | null;
        errorUpdateCount: number;
        isFetched: boolean;
        isFetchedAfterMount: boolean;
        isFetching: boolean;
        isInitialLoading: boolean;
        isPaused: boolean;
        isRefetching: boolean;
        isStale: boolean;
        fetchStatus: _tanstack_react_query.FetchStatus;
        promise: Promise<{
            token: string;
        }>;
    } | {
        data: {
            token: string;
        } | undefined;
        token: string | undefined;
        payload: any;
        error: null;
        isError: false;
        isPending: true;
        isLoading: true;
        isLoadingError: false;
        isRefetchError: false;
        isSuccess: false;
        isPlaceholderData: false;
        status: "pending";
        dataUpdatedAt: number;
        errorUpdatedAt: number;
        failureCount: number;
        failureReason: Error | null;
        errorUpdateCount: number;
        isFetched: boolean;
        isFetchedAfterMount: boolean;
        isFetching: boolean;
        isInitialLoading: boolean;
        isPaused: boolean;
        isRefetching: boolean;
        isStale: boolean;
        fetchStatus: _tanstack_react_query.FetchStatus;
        promise: Promise<{
            token: string;
        }>;
    } | {
        data: {
            token: string;
        } | undefined;
        token: string | undefined;
        payload: any;
        error: null;
        isError: false;
        isPending: true;
        isLoadingError: false;
        isRefetchError: false;
        isSuccess: false;
        isPlaceholderData: false;
        status: "pending";
        dataUpdatedAt: number;
        errorUpdatedAt: number;
        failureCount: number;
        failureReason: Error | null;
        errorUpdateCount: number;
        isFetched: boolean;
        isFetchedAfterMount: boolean;
        isFetching: boolean;
        isLoading: boolean;
        isInitialLoading: boolean;
        isPaused: boolean;
        isRefetching: boolean;
        isStale: boolean;
        fetchStatus: _tanstack_react_query.FetchStatus;
        promise: Promise<{
            token: string;
        }>;
    } | {
        data: {
            token: string;
        } | undefined;
        token: string | undefined;
        payload: any;
        isError: false;
        error: null;
        isPending: false;
        isLoading: false;
        isLoadingError: false;
        isRefetchError: false;
        isSuccess: true;
        isPlaceholderData: true;
        status: "success";
        dataUpdatedAt: number;
        errorUpdatedAt: number;
        failureCount: number;
        failureReason: Error | null;
        errorUpdateCount: number;
        isFetched: boolean;
        isFetchedAfterMount: boolean;
        isFetching: boolean;
        isInitialLoading: boolean;
        isPaused: boolean;
        isRefetching: boolean;
        isStale: boolean;
        fetchStatus: _tanstack_react_query.FetchStatus;
        promise: Promise<{
            token: string;
        }>;
    };
    useAuthQuery: <TData>({ queryKey, queryFn, options }: {
        queryKey: QueryKey;
        queryFn: BetterFetchRequest<TData>;
        options?: Partial<AnyUseQueryOptions>;
    }) => _tanstack_react_query.UseQueryResult<TData, Error>;
    useListAccounts: (options?: Partial<AnyUseQueryOptions>) => _tanstack_react_query.UseQueryResult<{
        id: string;
        provider: string;
        createdAt: Date;
        updatedAt: Date;
        accountId: string;
        scopes: string[];
    }[], Error>;
    useUnlinkAccount: () => {
        mutate: _tanstack_react_query.UseMutateFunction<NonThrowableResult | ThrowableResult, Error, better_auth_dist_shared_better_auth_CYegVoq1.P<{
            providerId: string;
            accountId?: string | undefined;
        } & {
            fetchOptions?: {
                method?: string | undefined;
                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 | undefined;
                credentials?: RequestCredentials | undefined;
                integrity?: string | undefined;
                keepalive?: boolean | undefined;
                mode?: RequestMode | undefined;
                priority?: RequestPriority | undefined;
                redirect?: RequestRedirect | undefined;
                referrer?: string | undefined;
                referrerPolicy?: ReferrerPolicy | undefined;
                signal?: (AbortSignal | null) | undefined;
                window?: null | undefined;
                onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
                onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
                onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
                onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
                onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
                hookOptions?: {
                    cloneResponse?: boolean;
                } | undefined;
                timeout?: number | undefined;
                customFetchImpl?: better_auth_react.FetchEsque | undefined;
                plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
                baseURL?: string | undefined;
                throw?: boolean | undefined;
                auth?: ({
                    type: "Bearer";
                    token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<string, any>) | undefined;
                query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
                params?: Record<string, any> | undefined;
                duplex?: "full" | "half" | undefined;
                jsonParser?: ((text: string) => Promise<any> | any) | undefined;
                retry?: better_auth_react.RetryOptions | undefined;
                retryAttempt?: number | undefined;
                output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
                errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
                disableValidation?: boolean | undefined;
            } | undefined;
        }>, {
            previousData: {};
        }>;
        mutateAsync: {
            (params: Omit<better_auth_dist_shared_better_auth_CYegVoq1.P<{
                providerId: string;
                accountId?: string | undefined;
            } & {
                fetchOptions?: {
                    method?: string | undefined;
                    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 | undefined;
                    credentials?: RequestCredentials | undefined;
                    integrity?: string | undefined;
                    keepalive?: boolean | undefined;
                    mode?: RequestMode | undefined;
                    priority?: RequestPriority | undefined;
                    redirect?: RequestRedirect | undefined;
                    referrer?: string | undefined;
                    referrerPolicy?: ReferrerPolicy | undefined;
                    signal?: (AbortSignal | null) | undefined;
                    window?: null | undefined;
                    onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
                    onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
                    onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
                    onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
                    onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
                    hookOptions?: {
                        cloneResponse?: boolean;
                    } | undefined;
                    timeout?: number | undefined;
                    customFetchImpl?: better_auth_react.FetchEsque | undefined;
                    plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
                    baseURL?: string | undefined;
                    throw?: boolean | undefined;
                    auth?: ({
                        type: "Bearer";
                        token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<string, any>) | undefined;
                    query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
                    params?: Record<string, any> | undefined;
                    duplex?: "full" | "half" | undefined;
                    jsonParser?: ((text: string) => Promise<any> | any) | undefined;
                    retry?: better_auth_react.RetryOptions | undefined;
                    retryAttempt?: number | undefined;
                    output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
                    errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
                    disableValidation?: boolean | undefined;
                } | undefined;
            }>, "fetchOptions"> & {
                fetchOptions?: {
                    throw?: true;
                } | undefined;
            }): Promise<ThrowableResult>;
            (params: Omit<better_auth_dist_shared_better_auth_CYegVoq1.P<{
                providerId: string;
                accountId?: string | undefined;
            } & {
                fetchOptions?: {
                    method?: string | undefined;
                    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 | undefined;
                    credentials?: RequestCredentials | undefined;
                    integrity?: string | undefined;
                    keepalive?: boolean | undefined;
                    mode?: RequestMode | undefined;
                    priority?: RequestPriority | undefined;
                    redirect?: RequestRedirect | undefined;
                    referrer?: string | undefined;
                    referrerPolicy?: ReferrerPolicy | undefined;
                    signal?: (AbortSignal | null) | undefined;
                    window?: null | undefined;
                    onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
                    onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
                    onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
                    onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
                    onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
                    hookOptions?: {
                        cloneResponse?: boolean;
                    } | undefined;
                    timeout?: number | undefined;
                    customFetchImpl?: better_auth_react.FetchEsque | undefined;
                    plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
                    baseURL?: string | undefined;
                    throw?: boolean | undefined;
                    auth?: ({
                        type: "Bearer";
                        token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<string, any>) | undefined;
                    query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
                    params?: Record<string, any> | undefined;
                    duplex?: "full" | "half" | undefined;
                    jsonParser?: ((text: string) => Promise<any> | any) | undefined;
                    retry?: better_auth_react.RetryOptions | undefined;
                    retryAttempt?: number | undefined;
                    output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
                    errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
                    disableValidation?: boolean | undefined;
                } | undefined;
            }>, "fetchOptions"> & {
                fetchOptions?: better_auth_react.BetterFetchOption;
            }): Promise<NonThrowableResult>;
        };
        isPending: boolean;
        error: Error | null;
        data: undefined;
        variables: undefined;
        isError: false;
        isIdle: true;
        isSuccess: false;
        status: "idle";
        reset: () => void;
        context: {
            previousData: {};
        } | undefined;
        failureCount: number;
        failureReason: Error | null;
        isPaused: boolean;
        submittedAt: number;
    } | {
        mutate: _tanstack_react_query.UseMutateFunction<NonThrowableResult | ThrowableResult, Error, better_auth_dist_shared_better_auth_CYegVoq1.P<{
            providerId: string;
            accountId?: string | undefined;
        } & {
            fetchOptions?: {
                method?: string | undefined;
                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 | undefined;
                credentials?: RequestCredentials | undefined;
                integrity?: string | undefined;
                keepalive?: boolean | undefined;
                mode?: RequestMode | undefined;
                priority?: RequestPriority | undefined;
                redirect?: RequestRedirect | undefined;
                referrer?: string | undefined;
                referrerPolicy?: ReferrerPolicy | undefined;
                signal?: (AbortSignal | null) | undefined;
                window?: null | undefined;
                onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
                onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
                onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
                onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
                onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
                hookOptions?: {
                    cloneResponse?: boolean;
                } | undefined;
                timeout?: number | undefined;
                customFetchImpl?: better_auth_react.FetchEsque | undefined;
                plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
                baseURL?: string | undefined;
                throw?: boolean | undefined;
                auth?: ({
                    type: "Bearer";
                    token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<string, any>) | undefined;
                query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
                params?: Record<string, any> | undefined;
                duplex?: "full" | "half" | undefined;
                jsonParser?: ((text: string) => Promise<any> | any) | undefined;
                retry?: better_auth_react.RetryOptions | undefined;
                retryAttempt?: number | undefined;
                output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
                errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
                disableValidation?: boolean | undefined;
            } | undefined;
        }>, {
            previousData: {};
        }>;
        mutateAsync: {
            (params: Omit<better_auth_dist_shared_better_auth_CYegVoq1.P<{
                providerId: string;
                accountId?: string | undefined;
            } & {
                fetchOptions?: {
                    method?: string | undefined;
                    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 | undefined;
                    credentials?: RequestCredentials | undefined;
                    integrity?: string | undefined;
                    keepalive?: boolean | undefined;
                    mode?: RequestMode | undefined;
                    priority?: RequestPriority | undefined;
                    redirect?: RequestRedirect | undefined;
                    referrer?: string | undefined;
                    referrerPolicy?: ReferrerPolicy | undefined;
                    signal?: (AbortSignal | null) | undefined;
                    window?: null | undefined;
                    onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
                    onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
                    onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
                    onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
                    onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
                    hookOptions?: {
                        cloneResponse?: boolean;
                    } | undefined;
                    timeout?: number | undefined;
                    customFetchImpl?: better_auth_react.FetchEsque | undefined;
                    plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
                    baseURL?: string | undefined;
                    throw?: boolean | undefined;
                    auth?: ({
                        type: "Bearer";
                        token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<string, any>) | undefined;
                    query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
                    params?: Record<string, any> | undefined;
                    duplex?: "full" | "half" | undefined;
                    jsonParser?: ((text: string) => Promise<any> | any) | undefined;
                    retry?: better_auth_react.RetryOptions | undefined;
                    retryAttempt?: number | undefined;
                    output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
                    errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
                    disableValidation?: boolean | undefined;
                } | undefined;
            }>, "fetchOptions"> & {
                fetchOptions?: {
                    throw?: true;
                } | undefined;
            }): Promise<ThrowableResult>;
            (params: Omit<better_auth_dist_shared_better_auth_CYegVoq1.P<{
                providerId: string;
                accountId?: string | undefined;
            } & {
                fetchOptions?: {
                    method?: string | undefined;
                    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 | undefined;
                    credentials?: RequestCredentials | undefined;
                    integrity?: string | undefined;
                    keepalive?: boolean | undefined;
                    mode?: RequestMode | undefined;
                    priority?: RequestPriority | undefined;
                    redirect?: RequestRedirect | undefined;
                    referrer?: string | undefined;
                    referrerPolicy?: ReferrerPolicy | undefined;
                    signal?: (AbortSignal | null) | undefined;
                    window?: null | undefined;
                    onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
                    onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
                    onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
                    onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
                    onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
                    hookOptions?: {
                        cloneResponse?: boolean;
                    } | undefined;
                    timeout?: number | undefined;
                    customFetchImpl?: better_auth_react.FetchEsque | undefined;
                    plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
                    baseURL?: string | undefined;
                    throw?: boolean | undefined;
                    auth?: ({
                        type: "Bearer";
                        token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<string, any>) | undefined;
                    query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
                    params?: Record<string, any> | undefined;
                    duplex?: "full" | "half" | undefined;
                    jsonParser?: ((text: string) => Promise<any> | any) | undefined;
                    retry?: better_auth_react.RetryOptions | undefined;
                    retryAttempt?: number | undefined;
                    output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
                    errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
                    disableValidation?: boolean | undefined;
                } | undefined;
            }>, "fetchOptions"> & {
                fetchOptions?: better_auth_react.BetterFetchOption;
            }): Promise<NonThrowableResult>;
        };
        isPending: boolean;
        error: Error | null;
        data: undefined;
        variables: better_auth_dist_shared_better_auth_CYegVoq1.P<{
            providerId: string;
            accountId?: string | undefined;
        } & {
            fetchOptions?: {
                method?: string | undefined;
                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 | undefined;
                credentials?: RequestCredentials | undefined;
                integrity?: string | undefined;
                keepalive?: boolean | undefined;
                mode?: RequestMode | undefined;
                priority?: RequestPriority | undefined;
                redirect?: RequestRedirect | undefined;
                referrer?: string | undefined;
                referrerPolicy?: ReferrerPolicy | undefined;
                signal?: (AbortSignal | null) | undefined;
                window?: null | undefined;
                onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
                onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
                onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
                onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
                onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
                hookOptions?: {
                    cloneResponse?: boolean;
                } | undefined;
                timeout?: number | undefined;
                customFetchImpl?: better_auth_react.FetchEsque | undefined;
                plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
                baseURL?: string | undefined;
                throw?: boolean | undefined;
                auth?: ({
                    type: "Bearer";
                    token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<string, any>) | undefined;
                query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
                params?: Record<string, any> | undefined;
                duplex?: "full" | "half" | undefined;
                jsonParser?: ((text: string) => Promise<any> | any) | undefined;
                retry?: better_auth_react.RetryOptions | undefined;
                retryAttempt?: number | undefined;
                output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
                errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
                disableValidation?: boolean | undefined;
            } | undefined;
        }>;
        isError: false;
        isIdle: false;
        isSuccess: false;
        status: "pending";
        reset: () => void;
        context: {
            previousData: {};
        } | undefined;
        failureCount: number;
        failureReason: Error | null;
        isPaused: boolean;
        submittedAt: number;
    } | {
        mutate: _tanstack_react_query.UseMutateFunction<NonThrowableResult | ThrowableResult, Error, better_auth_dist_shared_better_auth_CYegVoq1.P<{
            providerId: string;
            accountId?: string | undefined;
        } & {
            fetchOptions?: {
                method?: string | undefined;
                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 | undefined;
                credentials?: RequestCredentials | undefined;
                integrity?: string | undefined;
                keepalive?: boolean | undefined;
                mode?: RequestMode | undefined;
                priority?: RequestPriority | undefined;
                redirect?: RequestRedirect | undefined;
                referrer?: string | undefined;
                referrerPolicy?: ReferrerPolicy | undefined;
                signal?: (AbortSignal | null) | undefined;
                window?: null | undefined;
                onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
                onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
                onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
                onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
                onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
                hookOptions?: {
                    cloneResponse?: boolean;
                } | undefined;
                timeout?: number | undefined;
                customFetchImpl?: better_auth_react.FetchEsque | undefined;
                plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
                baseURL?: string | undefined;
                throw?: boolean | undefined;
                auth?: ({
                    type: "Bearer";
                    token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<string, any>) | undefined;
                query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
                params?: Record<string, any> | undefined;
                duplex?: "full" | "half" | undefined;
                jsonParser?: ((text: string) => Promise<any> | any) | undefined;
                retry?: better_auth_react.RetryOptions | undefined;
                retryAttempt?: number | undefined;
                output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
                errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
                disableValidation?: boolean | undefined;
            } | undefined;
        }>, {
            previousData: {};
        }>;
        mutateAsync: {
            (params: Omit<better_auth_dist_shared_better_auth_CYegVoq1.P<{
                providerId: string;
                accountId?: string | undefined;
            } & {
                fetchOptions?: {
                    method?: string | undefined;
                    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 | undefined;
                    credentials?: RequestCredentials | undefined;
                    integrity?: string | undefined;
                    keepalive?: boolean | undefined;
                    mode?: RequestMode | undefined;
                    priority?: RequestPriority | undefined;
                    redirect?: RequestRedirect | undefined;
                    referrer?: string | undefined;
                    referrerPolicy?: ReferrerPolicy | undefined;
                    signal?: (AbortSignal | null) | undefined;
                    window?: null | undefined;
                    onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
                    onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
                    onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
                    onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
                    onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
                    hookOptions?: {
                        cloneResponse?: boolean;
                    } | undefined;
                    timeout?: number | undefined;
                    customFetchImpl?: better_auth_react.FetchEsque | undefined;
                    plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
                    baseURL?: string | undefined;
                    throw?: boolean | undefined;
                    auth?: ({
                        type: "Bearer";
                        token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<string, any>) | undefined;
                    query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
                    params?: Record<string, any> | undefined;
                    duplex?: "full" | "half" | undefined;
                    jsonParser?: ((text: string) => Promise<any> | any) | undefined;
                    retry?: better_auth_react.RetryOptions | undefined;
                    retryAttempt?: number | undefined;
                    output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
                    errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
                    disableValidation?: boolean | undefined;
                } | undefined;
            }>, "fetchOptions"> & {
                fetchOptions?: {
                    throw?: true;
                } | undefined;
            }): Promise<ThrowableResult>;
            (params: Omit<better_auth_dist_shared_better_auth_CYegVoq1.P<{
                providerId: string;
                accountId?: string | undefined;
            } & {
                fetchOptions?: {
                    method?: string | undefined;
                    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 | undefined;
                    credentials?: RequestCredentials | undefined;
                    integrity?: string | undefined;
                    keepalive?: boolean | undefined;
                    mode?: RequestMode | undefined;
                    priority?: RequestPriority | undefined;
                    redirect?: RequestRedirect | undefined;
                    referrer?: string | undefined;
                    referrerPolicy?: ReferrerPolicy | undefined;
                    signal?: (AbortSignal | null) | undefined;
                    window?: null | undefined;
                    onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
                    onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
                    onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
                    onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
                    onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
                    hookOptions?: {
                        cloneResponse?: boolean;
                    } | undefined;
                    timeout?: number | undefined;
                    customFetchImpl?: better_auth_react.FetchEsque | undefined;
                    plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
                    baseURL?: string | undefined;
                    throw?: boolean | undefined;
                    auth?: ({
                        type: "Bearer";
                        token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<string, any>) | undefined;
                    query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
                    params?: Record<string, any> | undefined;
                    duplex?: "full" | "half" | undefined;
                    jsonParser?: ((text: string) => Promise<any> | any) | undefined;
                    retry?: better_auth_react.RetryOptions | undefined;
                    retryAttempt?: number | undefined;
                    output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
                    errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
                    disableValidation?: boolean | undefined;
                } | undefined;
            }>, "fetchOptions"> & {
                fetchOptions?: better_auth_react.BetterFetchOption;
            }): Promise<NonThrowableResult>;
        };
        isPending: boolean;
        error: Error | null;
        data: undefined;
        variables: better_auth_dist_shared_better_auth_CYegVoq1.P<{
            providerId: string;
            accountId?: string | undefined;
        } & {
            fetchOptions?: {
                method?: string | undefined;
                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 | undefined;
                credentials?: RequestCredentials | undefined;
                integrity?: string | undefined;
                keepalive?: boolean | undefined;
                mode?: RequestMode | undefined;
                priority?: RequestPriority | undefined;
                redirect?: RequestRedirect | undefined;
                referrer?: string | undefined;
                referrerPolicy?: ReferrerPolicy | undefined;
                signal?: (AbortSignal | null) | undefined;
                window?: null | undefined;
                onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
                onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
                onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
                onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
                onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
                hookOptions?: {
                    cloneResponse?: boolean;
                } | undefined;
                timeout?: number | undefined;
                customFetchImpl?: better_auth_react.FetchEsque | undefined;
                plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
                baseURL?: string | undefined;
                throw?: boolean | undefined;
                auth?: ({
                    type: "Bearer";
                    token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<string, any>) | undefined;
                query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
                params?: Record<string, any> | undefined;
                duplex?: "full" | "half" | undefined;
                jsonParser?: ((text: string) => Promise<any> | any) | undefined;
                retry?: better_auth_react.RetryOptions | undefined;
                retryAttempt?: number | undefined;
                output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
                errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
                disableValidation?: boolean | undefined;
            } | undefined;
        }>;
        isError: true;
        isIdle: false;
        isSuccess: false;
        status: "error";
        reset: () => void;
        context: {
            previousData: {};
        } | undefined;
        failureCount: number;
        failureReason: Error | null;
        isPaused: boolean;
        submittedAt: number;
    } | {
        mutate: _tanstack_react_query.UseMutateFunction<NonThrowableResult | ThrowableResult, Error, better_auth_dist_shared_better_auth_CYegVoq1.P<{
            providerId: string;
            accountId?: string | undefined;
        } & {
            fetchOptions?: {
                method?: string | undefined;
                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 | undefined;
                credentials?: RequestCredentials | undefined;
                integrity?: string | undefined;
                keepalive?: boolean | undefined;
                mode?: RequestMode | undefined;
                priority?: RequestPriority | undefined;
                redirect?: RequestRedirect | undefined;
                referrer?: string | undefined;
                referrerPolicy?: ReferrerPolicy | undefined;
                signal?: (AbortSignal | null) | undefined;
                window?: null | undefined;
                onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
                onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
                onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
                onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
                onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
                hookOptions?: {
                    cloneResponse?: boolean;
                } | undefined;
                timeout?: number | undefined;
                customFetchImpl?: better_auth_react.FetchEsque | undefined;
                plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
                baseURL?: string | undefined;
                throw?: boolean | undefined;
                auth?: ({
                    type: "Bearer";
                    token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<string, any>) | undefined;
                query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
                params?: Record<string, any> | undefined;
                duplex?: "full" | "half" | undefined;
                jsonParser?: ((text: string) => Promise<any> | any) | undefined;
                retry?: better_auth_react.RetryOptions | undefined;
                retryAttempt?: number | undefined;
                output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
                errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
                disableValidation?: boolean | undefined;
            } | undefined;
        }>, {
            previousData: {};
        }>;
        mutateAsync: {
            (params: Omit<better_auth_dist_shared_better_auth_CYegVoq1.P<{
                providerId: string;
                accountId?: string | undefined;
            } & {
                fetchOptions?: {
                    method?: string | undefined;
                    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 | undefined;
                    credentials?: RequestCredentials | undefined;
                    integrity?: string | undefined;
                    keepalive?: boolean | undefined;
                    mode?: RequestMode | undefined;
                    priority?: RequestPriority | undefined;
                    redirect?: RequestRedirect | undefined;
                    referrer?: string | undefined;
                    referrerPolicy?: ReferrerPolicy | undefined;
                    signal?: (AbortSignal | null) | undefined;
                    window?: null | undefined;
                    onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
                    onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
                    onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
                    onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
                    onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
                    hookOptions?: {
                        cloneResponse?: boolean;
                    } | undefined;
                    timeout?: number | undefined;
                    customFetchImpl?: better_auth_react.FetchEsque | undefined;
                    plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
                    baseURL?: string | undefined;
                    throw?: boolean | undefined;
                    auth?: ({
                        type: "Bearer";
                        token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<string, any>) | undefined;
                    query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
                    params?: Record<string, any> | undefined;
                    duplex?: "full" | "half" | undefined;
                    jsonParser?: ((text: string) => Promise<any> | any) | undefined;
                    retry?: better_auth_react.RetryOptions | undefined;
                    retryAttempt?: number | undefined;
                    output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
                    errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
                    disableValidation?: boolean | undefined;
                } | undefined;
            }>, "fetchOptions"> & {
                fetchOptions?: {
                    throw?: true;
                } | undefined;
            }): Promise<ThrowableResult>;
            (params: Omit<better_auth_dist_shared_better_auth_CYegVoq1.P<{
                providerId: string;
                accountId?: string | undefined;
            } & {
                fetchOptions?: {
                    method?: string | undefined;
                    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 | undefined;
                    credentials?: RequestCredentials | undefined;
                    integrity?: string | undefined;
                    keepalive?: boolean | undefined;
                    mode?: RequestMode | undefined;
                    priority?: RequestPriority | undefined;
                    redirect?: RequestRedirect | undefined;
                    referrer?: string | undefined;
                    referrerPolicy?: ReferrerPolicy | undefined;
                    signal?: (AbortSignal | null) | undefined;
                    window?: null | undefined;
                    onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
                    onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
                    onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
                    onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
                    onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
                    hookOptions?: {
                        cloneResponse?: boolean;
                    } | undefined;
                    timeout?: number | undefined;
                    customFetchImpl?: better_auth_react.FetchEsque | undefined;
                    plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
                    baseURL?: string | undefined;
                    throw?: boolean | undefined;
                    auth?: ({
                        type: "Bearer";
                        token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<string, any>) | undefined;
                    query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
                    params?: Record<string, any> | undefined;
                    duplex?: "full" | "half" | undefined;
                    jsonParser?: ((text: string) => Promise<any> | any) | undefined;
                    retry?: better_auth_react.RetryOptions | undefined;
                    retryAttempt?: number | undefined;
                    output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
                    errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
                    disableValidation?: boolean | undefined;
                } | undefined;
            }>, "fetchOptions"> & {
                fetchOptions?: better_auth_react.BetterFetchOption;
            }): Promise<NonThrowableResult>;
        };
        isPending: boolean;
        error: Error | null;
        data: NonThrowableResult | ThrowableResult;
        variables: better_auth_dist_shared_better_auth_CYegVoq1.P<{
            providerId: string;
            accountId?: string | undefined;
        } & {
            fetchOptions?: {
                method?: string | undefined;
                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 | undefined;
                credentials?: RequestCredentials | undefined;
                integrity?: string | undefined;
                keepalive?: boolean | undefined;
                mode?: RequestMode | undefined;
                priority?: RequestPriority | undefined;
                redirect?: RequestRedirect | undefined;
                referrer?: string | undefined;
                referrerPolicy?: ReferrerPolicy | undefined;
                signal?: (AbortSignal | null) | undefined;
                window?: null | undefined;
                onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
                onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
                onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
                onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
                onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
                hookOptions?: {
                    cloneResponse?: boolean;
                } | undefined;
                timeout?: number | undefined;
                customFetchImpl?: better_auth_react.FetchEsque | undefined;
                plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
                baseURL?: string | undefined;
                throw?: boolean | undefined;
                auth?: ({
                    type: "Bearer";
                    token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<string, any>) | undefined;
                query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
                params?: Record<string, any> | undefined;
                duplex?: "full" | "half" | undefined;
                jsonParser?: ((text: string) => Promise<any> | any) | undefined;
                retry?: better_auth_react.RetryOptions | undefined;
                retryAttempt?: number | undefined;
                output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
                errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
                disableValidation?: boolean | undefined;
            } | undefined;
        }>;
        isError: false;
        isIdle: false;
        isSuccess: true;
        status: "success";
        reset: () => void;
        context: {
            previousData: {};
        } | undefined;
        failureCount: number;
        failureReason: Error | null;
        isPaused: boolean;
        submittedAt: number;
    };
    useListSessions: (options?: Partial<AnyUseQueryOptions>) => _tanstack_react_query.UseQueryResult<better_auth_dist_shared_better_auth_CYegVoq1.P<{
        id: string;
        createdAt: Date;
        updatedAt: Date;
        userId: string;
        expiresAt: Date;
        token: string;
        ipAddress?: string | null | undefined | undefined;
        userAgent?: string | null | undefined | undefined;
    }>[], Error>;
    useRevokeSession: (options?: Partial<AuthQueryOptions>) => {
        mutate: _tanstack_react_query.UseMutateFunction<NonThrowableResult | ThrowableResult, Error, better_auth_dist_shared_better_auth_CYegVoq1.P<{
            token: string;
        } & {
            fetchOptions?: {
                method?: string | undefined;
                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 | undefined;
                credentials?: RequestCredentials | undefined;
                integrity?: string | undefined;
                keepalive?: boolean | undefined;
                mode?: RequestMode | undefined;
                priority?: RequestPriority | undefined;
                redirect?: RequestRedirect | undefined;
                referrer?: string | undefined;
                referrerPolicy?: ReferrerPolicy | undefined;
                signal?: (AbortSignal | null) | undefined;
                window?: null | undefined;
                onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
                onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
                onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
                onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
                onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
                hookOptions?: {
                    cloneResponse?: boolean;
                } | undefined;
                timeout?: number | undefined;
                customFetchImpl?: better_auth_react.FetchEsque | undefined;
                plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
                baseURL?: string | undefined;
                throw?: boolean | undefined;
                auth?: ({
                    type: "Bearer";
                    token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<string, any>) | undefined;
                query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
                params?: Record<string, any> | undefined;
                duplex?: "full" | "half" | undefined;
                jsonParser?: ((text: string) => Promise<any> | any) | undefined;
                retry?: better_auth_react.RetryOptions | undefined;
                retryAttempt?: number | undefined;
                output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
                errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
                disableValidation?: boolean | undefined;
            } | undefined;
        }>, {
            previousData: {};
        }>;
        mutateAsync: {
            (params: Omit<better_auth_dist_shared_better_auth_CYegVoq1.P<{
                token: string;
            } & {
                fetchOptions?: {
                    method?: string | undefined;
                    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 | undefined;
                    credentials?: RequestCredentials | undefined;
                    integrity?: string | undefined;
                    keepalive?: boolean | undefined;
                    mode?: RequestMode | undefined;
                    priority?: RequestPriority | undefined;
                    redirect?: RequestRedirect | undefined;
                    referrer?: string | undefined;
                    referrerPolicy?: ReferrerPolicy | undefined;
                    signal?: (AbortSignal | null) | undefined;
                    window?: null | undefined;
                    onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
                    onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
                    onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
                    onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
                    onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
                    hookOptions?: {
                        cloneResponse?: boolean;
                    } | undefined;
                    timeout?: number | undefined;
                    customFetchImpl?: better_auth_react.FetchEsque | undefined;
                    plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
                    baseURL?: string | undefined;
                    throw?: boolean | undefined;
                    auth?: ({
                        type: "Bearer";
                        token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<string, any>) | undefined;
                    query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
                    params?: Record<string, any> | undefined;
                    duplex?: "full" | "half" | undefined;
                    jsonParser?: ((text: string) => Promise<any> | any) | undefined;
                    retry?: better_auth_react.RetryOptions | undefined;
                    retryAttempt?: number | undefined;
                    output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
                    errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
                    disableValidation?: boolean | undefined;
                } | undefined;
            }>, "fetchOptions"> & {
                fetchOptions?: {
                    throw?: true;
                } | undefined;
            }): Promise<ThrowableResult>;
            (params: Omit<better_auth_dist_shared_better_auth_CYegVoq1.P<{
                token: string;
            } & {
                fetchOptions?: {
                    method?: string | undefined;
                    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 | undefined;
                    credentials?: RequestCredentials | undefined;
                    integrity?: string | undefined;
                    keepalive?: boolean | undefined;
                    mode?: RequestMode | undefined;
                    priority?: RequestPriority | undefined;
                    redirect?: RequestRedirect | undefined;
                    referrer?: string | undefined;
                    referrerPolicy?: ReferrerPolicy | undefined;
                    signal?: (AbortSignal | null) | undefined;
                    window?: null | undefined;
                    onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
                    onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
                    onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
                    onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
                    onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
                    hookOptions?: {
                        cloneResponse?: boolean;
                    } | undefined;
                    timeout?: number | undefined;
                    customFetchImpl?: better_auth_react.FetchEsque | undefined;
                    plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
                    baseURL?: string | undefined;
                    throw?: boolean | undefined;
                    auth?: ({
                        type: "Bearer";
                        token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<string, any>) | undefined;
                    query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
                    params?: Record<string, any> | undefined;
                    duplex?: "full" | "half" | undefined;
                    jsonParser?: ((text: string) => Promise<any> | any) | undefined;
                    retry?: better_auth_react.RetryOptions | undefined;
                    retryAttempt?: number | undefined;
                    output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
                    errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
                    disableValidation?: boolean | undefined;
                } | undefined;
            }>, "fetchOptions"> & {
                fetchOptions?: better_auth_react.BetterFetchOption;
            }): Promise<NonThrowableResult>;
        };
        isPending: boolean;
        error: Error | null;
        data: undefined;
        variables: undefined;
        isError: false;
        isIdle: true;
        isSuccess: false;
        status: "idle";
        reset: () => void;
        context: {
            previousData: {};
        } | undefined;
        failureCount: number;
        failureReason: Error | null;
        isPaused: boolean;
        submittedAt: number;
    } | {
        mutate: _tanstack_react_query.UseMutateFunction<NonThrowableResult | ThrowableResult, Error, better_auth_dist_shared_better_auth_CYegVoq1.P<{
            token: string;
        } & {
            fetchOptions?: {
                method?: string | undefined;
                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 | undefined;
                credentials?: RequestCredentials | undefined;
                integrity?: string | undefined;
                keepalive?: boolean | undefined;
                mode?: RequestMode | undefined;
                priority?: RequestPriority | undefined;
                redirect?: RequestRedirect | undefined;
                referrer?: string | undefined;
                referrerPolicy?: ReferrerPolicy | undefined;
                signal?: (AbortSignal | null) | undefined;
                window?: null | undefined;
                onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
                onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
                onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
                onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
                onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
                hookOptions?: {
                    cloneResponse?: boolean;
                } | undefined;
                timeout?: number | undefined;
                customFetchImpl?: better_auth_react.FetchEsque | undefined;
                plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
                baseURL?: string | undefined;
                throw?: boolean | undefined;
                auth?: ({
                    type: "Bearer";
                    token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<string, any>) | undefined;
                query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
                params?: Record<string, any> | undefined;
                duplex?: "full" | "half" | undefined;
                jsonParser?: ((text: string) => Promise<any> | any) | undefined;
                retry?: better_auth_react.RetryOptions | undefined;
                retryAttempt?: number | undefined;
                output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
                errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
                disableValidation?: boolean | undefined;
            } | undefined;
        }>, {
            previousData: {};
        }>;
        mutateAsync: {
            (params: Omit<better_auth_dist_shared_better_auth_CYegVoq1.P<{
                token: string;
            } & {
                fetchOptions?: {
                    method?: string | undefined;
                    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 | undefined;
                    credentials?: RequestCredentials | undefined;
                    integrity?: string | undefined;
                    keepalive?: boolean | undefined;
                    mode?: RequestMode | undefined;
                    priority?: RequestPriority | undefined;
                    redirect?: RequestRedirect | undefined;
                    referrer?: string | undefined;
                    referrerPolicy?: ReferrerPolicy | undefined;
                    signal?: (AbortSignal | null) | undefined;
                    window?: null | undefined;
                    onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
                    onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
                    onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
                    onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
                    onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
                    hookOptions?: {
                        cloneResponse?: boolean;
                    } | undefined;
                    timeout?: number | undefined;
                    customFetchImpl?: better_auth_react.FetchEsque | undefined;
                    plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
                    baseURL?: string | undefined;
                    throw?: boolean | undefined;
                    auth?: ({
                        type: "Bearer";
                        token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<string, any>) | undefined;
                    query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
                    params?: Record<string, any> | undefined;
                    duplex?: "full" | "half" | undefined;
                    jsonParser?: ((text: string) => Promise<any> | any) | undefined;
                    retry?: better_auth_react.RetryOptions | undefined;
                    retryAttempt?: number | undefined;
                    output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
                    errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
                    disableValidation?: boolean | undefined;
                } | undefined;
            }>, "fetchOptions"> & {
                fetchOptions?: {
                    throw?: true;
                } | undefined;
            }): Promise<ThrowableResult>;
            (params: Omit<better_auth_dist_shared_better_auth_CYegVoq1.P<{
                token: string;
            } & {
                fetchOptions?: {
                    method?: string | undefined;
                    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 | undefined;
                    credentials?: RequestCredentials | undefined;
                    integrity?: string | undefined;
                    keepalive?: boolean | undefined;
                    mode?: RequestMode | undefined;
                    priority?: RequestPriority | undefined;
                    redirect?: RequestRedirect | undefined;
                    referrer?: string | undefined;
                    referrerPolicy?: ReferrerPolicy | undefined;
                    signal?: (AbortSignal | null) | undefined;
                    window?: null | undefined;
                    onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
                    onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
                    onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
                    onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
                    onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
                    hookOptions?: {
                        cloneResponse?: boolean;
                    } | undefined;
                    timeout?: number | undefined;
                    customFetchImpl?: better_auth_react.FetchEsque | undefined;
                    plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
                    baseURL?: string | undefined;
                    throw?: boolean | undefined;
                    auth?: ({
                        type: "Bearer";
                        token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<string, any>) | undefined;
                    query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
                    params?: Record<string, any> | undefined;
                    duplex?: "full" | "half" | undefined;
                    jsonParser?: ((text: string) => Promise<any> | any) | undefined;
                    retry?: better_auth_react.RetryOptions | undefined;
                    retryAttempt?: number | undefined;
                    output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
                    errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
                    disableValidation?: boolean | undefined;
                } | undefined;
            }>, "fetchOptions"> & {
                fetchOptions?: better_auth_react.BetterFetchOption;
            }): Promise<NonThrowableResult>;
        };
        isPending: boolean;
        error: Error | null;
        data: undefined;
        variables: better_auth_dist_shared_better_auth_CYegVoq1.P<{
            token: string;
        } & {
            fetchOptions?: {
                method?: string | undefined;
                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 | undefined;
                credentials?: RequestCredentials | undefined;
                integrity?: string | undefined;
                keepalive?: boolean | undefined;
                mode?: RequestMode | undefined;
                priority?: RequestPriority | undefined;
                redirect?: RequestRedirect | undefined;
                referrer?: string | undefined;
                referrerPolicy?: ReferrerPolicy | undefined;
                signal?: (AbortSignal | null) | undefined;
                window?: null | undefined;
                onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
                onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
                onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
                onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
                onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
                hookOptions?: {
                    cloneResponse?: boolean;
                } | undefined;
                timeout?: number | undefined;
                customFetchImpl?: better_auth_react.FetchEsque | undefined;
                plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
                baseURL?: string | undefined;
                throw?: boolean | undefined;
                auth?: ({
                    type: "Bearer";
                    token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<string, any>) | undefined;
                query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
                params?: Record<string, any> | undefined;
                duplex?: "full" | "half" | undefined;
                jsonParser?: ((text: string) => Promise<any> | any) | undefined;
                retry?: better_auth_react.RetryOptions | undefined;
                retryAttempt?: number | undefined;
                output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
                errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
                disableValidation?: boolean | undefined;
            } | undefined;
        }>;
        isError: false;
        isIdle: false;
        isSuccess: false;
        status: "pending";
        reset: () => void;
        context: {
            previousData: {};
        } | undefined;
        failureCount: number;
        failureReason: Error | null;
        isPaused: boolean;
        submittedAt: number;
    } | {
        mutate: _tanstack_react_query.UseMutateFunction<NonThrowableResult | ThrowableResult, Error, better_auth_dist_shared_better_auth_CYegVoq1.P<{
            token: string;
        } & {
            fetchOptions?: {
                method?: string | undefined;
                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 | undefined;
                credentials?: RequestCredentials | undefined;
                integrity?: string | undefined;
                keepalive?: boolean | undefined;
                mode?: RequestMode | undefined;
                priority?: RequestPriority | undefined;
                redirect?: RequestRedirect | undefined;
                referrer?: string | undefined;
                referrerPolicy?: ReferrerPolicy | undefined;
                signal?: (AbortSignal | null) | undefined;
                window?: null | undefined;
                onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
                onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
                onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
                onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
                onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
                hookOptions?: {
                    cloneResponse?: boolean;
                } | undefined;
                timeout?: number | undefined;
                customFetchImpl?: better_auth_react.FetchEsque | undefined;
                plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
                baseURL?: string | undefined;
                throw?: boolean | undefined;
                auth?: ({
                    type: "Bearer";
                    token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<string, any>) | undefined;
                query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
                params?: Record<string, any> | undefined;
                duplex?: "full" | "half" | undefined;
                jsonParser?: ((text: string) => Promise<any> | any) | undefined;
                retry?: better_auth_react.RetryOptions | undefined;
                retryAttempt?: number | undefined;
                output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
                errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
                disableValidation?: boolean | undefined;
            } | undefined;
        }>, {
            previousData: {};
        }>;
        mutateAsync: {
            (params: Omit<better_auth_dist_shared_better_auth_CYegVoq1.P<{
                token: string;
            } & {
                fetchOptions?: {
                    method?: string | undefined;
                    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 | undefined;
                    credentials?: RequestCredentials | undefined;
                    integrity?: string | undefined;
                    keepalive?: boolean | undefined;
                    mode?: RequestMode | undefined;
                    priority?: RequestPriority | undefined;
                    redirect?: RequestRedirect | undefined;
                    referrer?: string | undefined;
                    referrerPolicy?: ReferrerPolicy | undefined;
                    signal?: (AbortSignal | null) | undefined;
                    window?: null | undefined;
                    onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
                    onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
                    onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
                    onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
                    onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
                    hookOptions?: {
                        cloneResponse?: boolean;
                    } | undefined;
                    timeout?: number | undefined;
                    customFetchImpl?: better_auth_react.FetchEsque | undefined;
                    plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
                    baseURL?: string | undefined;
                    throw?: boolean | undefined;
                    auth?: ({
                        type: "Bearer";
                        token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<string, any>) | undefined;
                    query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
                    params?: Record<string, any> | undefined;
                    duplex?: "full" | "half" | undefined;
                    jsonParser?: ((text: string) => Promise<any> | any) | undefined;
                    retry?: better_auth_react.RetryOptions | undefined;
                    retryAttempt?: number | undefined;
                    output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
                    errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
                    disableValidation?: boolean | undefined;
                } | undefined;
            }>, "fetchOptions"> & {
                fetchOptions?: {
                    throw?: true;
                } | undefined;
            }): Promise<ThrowableResult>;
            (params: Omit<better_auth_dist_shared_better_auth_CYegVoq1.P<{
                token: string;
            } & {
                fetchOptions?: {
                    method?: string | undefined;
                    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 | undefined;
                    credentials?: RequestCredentials | undefined;
                    integrity?: string | undefined;
                    keepalive?: boolean | undefined;
                    mode?: RequestMode | undefined;
                    priority?: RequestPriority | undefined;
                    redirect?: RequestRedirect | undefined;
                    referrer?: string | undefined;
                    referrerPolicy?: ReferrerPolicy | undefined;
                    signal?: (AbortSignal | null) | undefined;
                    window?: null | undefined;
                    onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
                    onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
                    onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
                    onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
                    onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
                    hookOptions?: {
                        cloneResponse?: boolean;
                    } | undefined;
                    timeout?: number | undefined;
                    customFetchImpl?: better_auth_react.FetchEsque | undefined;
                    plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
                    baseURL?: string | undefined;
                    throw?: boolean | undefined;
                    auth?: ({
                        type: "Bearer";
                        token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<string, any>) | undefined;
                    query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
                    params?: Record<string, any> | undefined;
                    duplex?: "full" | "half" | undefined;
                    jsonParser?: ((text: string) => Promise<any> | any) | undefined;
                    retry?: better_auth_react.RetryOptions | undefined;
                    retryAttempt?: number | undefined;
                    output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
                    errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
                    disableValidation?: boolean | undefined;
                } | undefined;
            }>, "fetchOptions"> & {
                fetchOptions?: better_auth_react.BetterFetchOption;
            }): Promise<NonThrowableResult>;
        };
        isPending: boolean;
        error: Error | null;
        data: undefined;
        variables: better_auth_dist_shared_better_auth_CYegVoq1.P<{
            token: string;
        } & {
            fetchOptions?: {
                method?: string | undefined;
                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 | undefined;
                credentials?: RequestCredentials | undefined;
                integrity?: string | undefined;
                keepalive?: boolean | undefined;
                mode?: RequestMode | undefined;
                priority?: RequestPriority | undefined;
                redirect?: RequestRedirect | undefined;
                referrer?: string | undefined;
                referrerPolicy?: ReferrerPolicy | undefined;
                signal?: (AbortSignal | null) | undefined;
                window?: null | undefined;
                onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
                onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
                onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
                onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
                onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
                hookOptions?: {
                    cloneResponse?: boolean;
                } | undefined;
                timeout?: number | undefined;
                customFetchImpl?: better_auth_react.FetchEsque | undefined;
                plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
                baseURL?: string | undefined;
                throw?: boolean | undefined;
                auth?: ({
                    type: "Bearer";
                    token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<string, any>) | undefined;
                query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
                params?: Record<string, any> | undefined;
                duplex?: "full" | "half" | undefined;
                jsonParser?: ((text: string) => Promise<any> | any) | undefined;
                retry?: better_auth_react.RetryOptions | undefined;
                retryAttempt?: number | undefined;
                output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
                errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
                disableValidation?: boolean | undefined;
            } | undefined;
        }>;
        isError: true;
        isIdle: false;
        isSuccess: false;
        status: "error";
        reset: () => void;
        context: {
            previousData: {};
        } | undefined;
        failureCount: number;
        failureReason: Error | null;
        isPaused: boolean;
        submittedAt: number;
    } | {
        mutate: _tanstack_react_query.UseMutateFunction<NonThrowableResult | ThrowableResult, Error, better_auth_dist_shared_better_auth_CYegVoq1.P<{
            token: string;
        } & {
            fetchOptions?: {
                method?: string | undefined;
                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 | undefined;
                credentials?: RequestCredentials | undefined;
                integrity?: string | undefined;
                keepalive?: boolean | undefined;
                mode?: RequestMode | undefined;
                priority?: RequestPriority | undefined;
                redirect?: RequestRedirect | undefined;
                referrer?: string | undefined;
                referrerPolicy?: ReferrerPolicy | undefined;
                signal?: (AbortSignal | null) | undefined;
                window?: null | undefined;
                onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
                onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
                onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
                onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
                onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
                hookOptions?: {
                    cloneResponse?: boolean;
                } | undefined;
                timeout?: number | undefined;
                customFetchImpl?: better_auth_react.FetchEsque | undefined;
                plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
                baseURL?: string | undefined;
                throw?: boolean | undefined;
                auth?: ({
                    type: "Bearer";
                    token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<string, any>) | undefined;
                query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
                params?: Record<string, any> | undefined;
                duplex?: "full" | "half" | undefined;
                jsonParser?: ((text: string) => Promise<any> | any) | undefined;
                retry?: better_auth_react.RetryOptions | undefined;
                retryAttempt?: number | undefined;
                output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
                errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
                disableValidation?: boolean | undefined;
            } | undefined;
        }>, {
            previousData: {};
        }>;
        mutateAsync: {
            (params: Omit<better_auth_dist_shared_better_auth_CYegVoq1.P<{
                token: string;
            } & {
                fetchOptions?: {
                    method?: string | undefined;
                    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 | undefined;
                    credentials?: RequestCredentials | undefined;
                    integrity?: string | undefined;
                    keepalive?: boolean | undefined;
                    mode?: RequestMode | undefined;
                    priority?: RequestPriority | undefined;
                    redirect?: RequestRedirect | undefined;
                    referrer?: string | undefined;
                    referrerPolicy?: ReferrerPolicy | undefined;
                    signal?: (AbortSignal | null) | undefined;
                    window?: null | undefined;
                    onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
                    onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
                    onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
                    onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
                    onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
                    hookOptions?: {
                        cloneResponse?: boolean;
                    } | undefined;
                    timeout?: number | undefined;
                    customFetchImpl?: better_auth_react.FetchEsque | undefined;
                    plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
                    baseURL?: string | undefined;
                    throw?: boolean | undefined;
                    auth?: ({
                        type: "Bearer";
                        token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<string, any>) | undefined;
                    query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
                    params?: Record<string, any> | undefined;
                    duplex?: "full" | "half" | undefined;
                    jsonParser?: ((text: string) => Promise<any> | any) | undefined;
                    retry?: better_auth_react.RetryOptions | undefined;
                    retryAttempt?: number | undefined;
                    output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
                    errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
                    disableValidation?: boolean | undefined;
                } | undefined;
            }>, "fetchOptions"> & {
                fetchOptions?: {
                    throw?: true;
                } | undefined;
            }): Promise<ThrowableResult>;
            (params: Omit<better_auth_dist_shared_better_auth_CYegVoq1.P<{
                token: string;
            } & {
                fetchOptions?: {
                    method?: string | undefined;
                    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 | undefined;
                    credentials?: RequestCredentials | undefined;
                    integrity?: string | undefined;
                    keepalive?: boolean | undefined;
                    mode?: RequestMode | undefined;
                    priority?: RequestPriority | undefined;
                    redirect?: RequestRedirect | undefined;
                    referrer?: string | undefined;
                    referrerPolicy?: ReferrerPolicy | undefined;
                    signal?: (AbortSignal | null) | undefined;
                    window?: null | undefined;
                    onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
                    onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
                    onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
                    onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
                    onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
                    hookOptions?: {
                        cloneResponse?: boolean;
                    } | undefined;
                    timeout?: number | undefined;
                    customFetchImpl?: better_auth_react.FetchEsque | undefined;
                    plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
                    baseURL?: string | undefined;
                    throw?: boolean | undefined;
                    auth?: ({
                        type: "Bearer";
                        token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<string, any>) | undefined;
                    query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
                    params?: Record<string, any> | undefined;
                    duplex?: "full" | "half" | undefined;
                    jsonParser?: ((text: string) => Promise<any> | any) | undefined;
                    retry?: better_auth_react.RetryOptions | undefined;
                    retryAttempt?: number | undefined;
                    output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
                    errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
                    disableValidation?: boolean | undefined;
                } | undefined;
            }>, "fetchOptions"> & {
                fetchOptions?: better_auth_react.BetterFetchOption;
            }): Promise<NonThrowableResult>;
        };
        isPending: boolean;
        error: Error | null;
        data: NonThrowableResult | ThrowableResult;
        variables: better_auth_dist_shared_better_auth_CYegVoq1.P<{
            token: string;
        } & {
            fetchOptions?: {
                method?: string | undefined;
                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 | undefined;
                credentials?: RequestCredentials | undefined;
                integrity?: string | undefined;
                keepalive?: boolean | undefined;
                mode?: RequestMode | undefined;
                priority?: RequestPriority | undefined;
                redirect?: RequestRedirect | undefined;
                referrer?: string | undefined;
                referrerPolicy?: ReferrerPolicy | undefined;
                signal?: (AbortSignal | null) | undefined;
                window?: null | undefined;
                onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
                onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
                onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
                onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
                onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
                hookOptions?: {
                    cloneResponse?: boolean;
                } | undefined;
                timeout?: number | undefined;
                customFetchImpl?: better_auth_react.FetchEsque | undefined;
                plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
                baseURL?: string | undefined;
                throw?: boolean | undefined;
                auth?: ({
                    type: "Bearer";
                    token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<string, any>) | undefined;
                query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
                params?: Record<string, any> | undefined;
                duplex?: "full" | "half" | undefined;
                jsonParser?: ((text: string) => Promise<any> | any) | undefined;
                retry?: better_auth_react.RetryOptions | undefined;
                retryAttempt?: number | undefined;
                output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
                errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
                disableValidation?: boolean | undefined;
            } | undefined;
        }>;
        isError: false;
        isIdle: false;
        isSuccess: true;
        status: "success";
        reset: () => void;
        context: {
            previousData: {};
        } | undefined;
        failureCount: number;
        failureReason: Error | null;
        isPaused: boolean;
        submittedAt: number;
    };
    useRevokeSessions: (options?: Partial<AuthQueryOptions>) => {
        mutate: _tanstack_react_query.UseMutateFunction<NonThrowableResult | ThrowableResult, Error, better_auth_dist_shared_better_auth_CYegVoq1.P<{
            query?: Record<string, any> | undefined;
            fetchOptions?: {
                method?: string | undefined;
                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 | undefined;
                credentials?: RequestCredentials | undefined;
                integrity?: string | undefined;
                keepalive?: boolean | undefined;
                mode?: RequestMode | undefined;
                priority?: RequestPriority | undefined;
                redirect?: RequestRedirect | undefined;
                referrer?: string | undefined;
                referrerPolicy?: ReferrerPolicy | undefined;
                signal?: (AbortSignal | null) | undefined;
                window?: null | undefined;
                onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
                onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
                onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
                onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
                onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
                hookOptions?: {
                    cloneResponse?: boolean;
                } | undefined;
                timeout?: number | undefined;
                customFetchImpl?: better_auth_react.FetchEsque | undefined;
                plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
                baseURL?: string | undefined;
                throw?: boolean | undefined;
                auth?: ({
                    type: "Bearer";
                    token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<string, any>> & Record<string, any>) | undefined;
                params?: Record<string, any> | undefined;
                duplex?: "full" | "half" | undefined;
                jsonParser?: ((text: string) => Promise<any> | any) | undefined;
                retry?: better_auth_react.RetryOptions | undefined;
                retryAttempt?: number | undefined;
                output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
                errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
                disableValidation?: boolean | undefined;
            } | undefined;
        }> | undefined, {
            previousData: {};
        }>;
        mutateAsync: {
            (params: Omit<better_auth_dist_shared_better_auth_CYegVoq1.P<{
                query?: Record<string, any> | undefined;
                fetchOptions?: {
                    method?: string | undefined;
                    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 | undefined;
                    credentials?: RequestCredentials | undefined;
                    integrity?: string | undefined;
                    keepalive?: boolean | undefined;
                    mode?: RequestMode | undefined;
                    priority?: RequestPriority | undefined;
                    redirect?: RequestRedirect | undefined;
                    referrer?: string | undefined;
                    referrerPolicy?: ReferrerPolicy | undefined;
                    signal?: (AbortSignal | null) | undefined;
                    window?: null | undefined;
                    onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
                    onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
                    onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
                    onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
                    onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
                    hookOptions?: {
                        cloneResponse?: boolean;
                    } | undefined;
                    timeout?: number | undefined;
                    customFetchImpl?: better_auth_react.FetchEsque | undefined;
                    plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
                    baseURL?: string | undefined;
                    throw?: boolean | undefined;
                    auth?: ({
                        type: "Bearer";
                        token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<string, any>> & Record<string, any>) | undefined;
                    params?: Record<string, any> | undefined;
                    duplex?: "full" | "half" | undefined;
                    jsonParser?: ((text: string) => Promise<any> | any) | undefined;
                    retry?: better_auth_react.RetryOptions | undefined;
                    retryAttempt?: number | undefined;
                    output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
                    errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
                    disableValidation?: boolean | undefined;
                } | undefined;
            }> | undefined, "fetchOptions"> & {
                fetchOptions?: {
                    throw?: true;
                } | undefined;
            }): Promise<ThrowableResult>;
            (params: Omit<better_auth_dist_shared_better_auth_CYegVoq1.P<{
                query?: Record<string, any> | undefined;
                fetchOptions?: {
                    method?: string | undefined;
                    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 | undefined;
                    credentials?: RequestCredentials | undefined;
                    integrity?: string | undefined;
                    keepalive?: boolean | undefined;
                    mode?: RequestMode | undefined;
                    priority?: RequestPriority | undefined;
                    redirect?: RequestRedirect | undefined;
                    referrer?: string | undefined;
                    referrerPolicy?: ReferrerPolicy | undefined;
                    signal?: (AbortSignal | null) | undefined;
                    window?: null | undefined;
                    onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
                    onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
                    onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
                    onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
                    onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
                    hookOptions?: {
                        cloneResponse?: boolean;
                    } | undefined;
                    timeout?: number | undefined;
                    customFetchImpl?: better_auth_react.FetchEsque | undefined;
                    plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
                    baseURL?: string | undefined;
                    throw?: boolean | undefined;
                    auth?: ({
                        type: "Bearer";
                        token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<string, any>> & Record<string, any>) | undefined;
                    params?: Record<string, any> | undefined;
                    duplex?: "full" | "half" | undefined;
                    jsonParser?: ((text: string) => Promise<any> | any) | undefined;
                    retry?: better_auth_react.RetryOptions | undefined;
                    retryAttempt?: number | undefined;
                    output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
                    errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
                    disableValidation?: boolean | undefined;
                } | undefined;
            }> | undefined, "fetchOptions"> & {
                fetchOptions?: better_auth_react.BetterFetchOption;
            }): Promise<NonThrowableResult>;
        };
        isPending: boolean;
        error: Error | null;
        data: undefined;
        variables: undefined;
        isError: false;
        isIdle: true;
        isSuccess: false;
        status: "idle";
        reset: () => void;
        context: {
            previousData: {};
        } | undefined;
        failureCount: number;
        failureReason: Error | null;
        isPaused: boolean;
        submittedAt: number;
    } | {
        mutate: _tanstack_react_query.UseMutateFunction<NonThrowableResult | ThrowableResult, Error, better_auth_dist_shared_better_auth_CYegVoq1.P<{
            query?: Record<string, any> | undefined;
            fetchOptions?: {
                method?: string | undefined;
                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 | undefined;
                credentials?: RequestCredentials | undefined;
                integrity?: string | undefined;
                keepalive?: boolean | undefined;
                mode?: RequestMode | undefined;
                priority?: RequestPriority | undefined;
                redirect?: RequestRedirect | undefined;
                referrer?: string | undefined;
                referrerPolicy?: ReferrerPolicy | undefined;
                signal?: (AbortSignal | null) | undefined;
                window?: null | undefined;
                onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
                onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
                onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
                onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
                onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
                hookOptions?: {
                    cloneResponse?: boolean;
                } | undefined;
                timeout?: number | undefined;
                customFetchImpl?: better_auth_react.FetchEsque | undefined;
                plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
                baseURL?: string | undefined;
                throw?: boolean | undefined;
                auth?: ({
                    type: "Bearer";
                    token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<string, any>> & Record<string, any>) | undefined;
                params?: Record<string, any> | undefined;
                duplex?: "full" | "half" | undefined;
                jsonParser?: ((text: string) => Promise<any> | any) | undefined;
                retry?: better_auth_react.RetryOptions | undefined;
                retryAttempt?: number | undefined;
                output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
                errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
                disableValidation?: boolean | undefined;
            } | undefined;
        }> | undefined, {
            previousData: {};
        }>;
        mutateAsync: {
            (params: Omit<better_auth_dist_shared_better_auth_CYegVoq1.P<{
                query?: Record<string, any> | undefined;
                fetchOptions?: {
                    method?: string | undefined;
                    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 | undefined;
                    credentials?: RequestCredentials | undefined;
                    integrity?: string | undefined;
                    keepalive?: boolean | undefined;
                    mode?: RequestMode | undefined;
                    priority?: RequestPriority | undefined;
                    redirect?: RequestRedirect | undefined;
                    referrer?: string | undefined;
                    referrerPolicy?: ReferrerPolicy | undefined;
                    signal?: (AbortSignal | null) | undefined;
                    window?: null | undefined;
                    onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
                    onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
                    onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
                    onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
                    onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
                    hookOptions?: {
                        cloneResponse?: boolean;
                    } | undefined;
                    timeout?: number | undefined;
                    customFetchImpl?: better_auth_react.FetchEsque | undefined;
                    plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
                    baseURL?: string | undefined;
                    throw?: boolean | undefined;
                    auth?: ({
                        type: "Bearer";
                        token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<string, any>> & Record<string, any>) | undefined;
                    params?: Record<string, any> | undefined;
                    duplex?: "full" | "half" | undefined;
                    jsonParser?: ((text: string) => Promise<any> | any) | undefined;
                    retry?: better_auth_react.RetryOptions | undefined;
                    retryAttempt?: number | undefined;
                    output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
                    errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
                    disableValidation?: boolean | undefined;
                } | undefined;
            }> | undefined, "fetchOptions"> & {
                fetchOptions?: {
                    throw?: true;
                } | undefined;
            }): Promise<ThrowableResult>;
            (params: Omit<better_auth_dist_shared_better_auth_CYegVoq1.P<{
                query?: Record<string, any> | undefined;
                fetchOptions?: {
                    method?: string | undefined;
                    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 | undefined;
                    credentials?: RequestCredentials | undefined;
                    integrity?: string | undefined;
                    keepalive?: boolean | undefined;
                    mode?: RequestMode | undefined;
                    priority?: RequestPriority | undefined;
                    redirect?: RequestRedirect | undefined;
                    referrer?: string | undefined;
                    referrerPolicy?: ReferrerPolicy | undefined;
                    signal?: (AbortSignal | null) | undefined;
                    window?: null | undefined;
                    onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
                    onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
                    onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
                    onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
                    onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
                    hookOptions?: {
                        cloneResponse?: boolean;
                    } | undefined;
                    timeout?: number | undefined;
                    customFetchImpl?: better_auth_react.FetchEsque | undefined;
                    plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
                    baseURL?: string | undefined;
                    throw?: boolean | undefined;
                    auth?: ({
                        type: "Bearer";
                        token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<string, any>> & Record<string, any>) | undefined;
                    params?: Record<string, any> | undefined;
                    duplex?: "full" | "half" | undefined;
                    jsonParser?: ((text: string) => Promise<any> | any) | undefined;
                    retry?: better_auth_react.RetryOptions | undefined;
                    retryAttempt?: number | undefined;
                    output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
                    errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
                    disableValidation?: boolean | undefined;
                } | undefined;
            }> | undefined, "fetchOptions"> & {
                fetchOptions?: better_auth_react.BetterFetchOption;
            }): Promise<NonThrowableResult>;
        };
        isPending: boolean;
        error: Error | null;
        data: undefined;
        variables: better_auth_dist_shared_better_auth_CYegVoq1.P<{
            query?: Record<string, any> | undefined;
            fetchOptions?: {
                method?: string | undefined;
                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 | undefined;
                credentials?: RequestCredentials | undefined;
                integrity?: string | undefined;
                keepalive?: boolean | undefined;
                mode?: RequestMode | undefined;
                priority?: RequestPriority | undefined;
                redirect?: RequestRedirect | undefined;
                referrer?: string | undefined;
                referrerPolicy?: ReferrerPolicy | undefined;
                signal?: (AbortSignal | null) | undefined;
                window?: null | undefined;
                onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
                onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
                onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
                onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
                onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
                hookOptions?: {
                    cloneResponse?: boolean;
                } | undefined;
                timeout?: number | undefined;
                customFetchImpl?: better_auth_react.FetchEsque | undefined;
                plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
                baseURL?: string | undefined;
                throw?: boolean | undefined;
                auth?: ({
                    type: "Bearer";
                    token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<string, any>> & Record<string, any>) | undefined;
                params?: Record<string, any> | undefined;
                duplex?: "full" | "half" | undefined;
                jsonParser?: ((text: string) => Promise<any> | any) | undefined;
                retry?: better_auth_react.RetryOptions | undefined;
                retryAttempt?: number | undefined;
                output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
                errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
                disableValidation?: boolean | undefined;
            } | undefined;
        }> | undefined;
        isError: false;
        isIdle: false;
        isSuccess: false;
        status: "pending";
        reset: () => void;
        context: {
            previousData: {};
        } | undefined;
        failureCount: number;
        failureReason: Error | null;
        isPaused: boolean;
        submittedAt: number;
    } | {
        mutate: _tanstack_react_query.UseMutateFunction<NonThrowableResult | ThrowableResult, Error, better_auth_dist_shared_better_auth_CYegVoq1.P<{
            query?: Record<string, any> | undefined;
            fetchOptions?: {
                method?: string | undefined;
                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 | undefined;
                credentials?: RequestCredentials | undefined;
                integrity?: string | undefined;
                keepalive?: boolean | undefined;
                mode?: RequestMode | undefined;
                priority?: RequestPriority | undefined;
                redirect?: RequestRedirect | undefined;
                referrer?: string | undefined;
                referrerPolicy?: ReferrerPolicy | undefined;
                signal?: (AbortSignal | null) | undefined;
                window?: null | undefined;
                onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
                onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
                onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
                onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
                onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
                hookOptions?: {
                    cloneResponse?: boolean;
                } | undefined;
                timeout?: number | undefined;
                customFetchImpl?: better_auth_react.FetchEsque | undefined;
                plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
                baseURL?: string | undefined;
                throw?: boolean | undefined;
                auth?: ({
                    type: "Bearer";
                    token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<string, any>> & Record<string, any>) | undefined;
                params?: Record<string, any> | undefined;
                duplex?: "full" | "half" | undefined;
                jsonParser?: ((text: string) => Promise<any> | any) | undefined;
                retry?: better_auth_react.RetryOptions | undefined;
                retryAttempt?: number | undefined;
                output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
                errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
                disableValidation?: boolean | undefined;
            } | undefined;
        }> | undefined, {
            previousData: {};
        }>;
        mutateAsync: {
            (params: Omit<better_auth_dist_shared_better_auth_CYegVoq1.P<{
                query?: Record<string, any> | undefined;
                fetchOptions?: {
                    method?: string | undefined;
                    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 | undefined;
                    credentials?: RequestCredentials | undefined;
                    integrity?: string | undefined;
                    keepalive?: boolean | undefined;
                    mode?: RequestMode | undefined;
                    priority?: RequestPriority | undefined;
                    redirect?: RequestRedirect | undefined;
                    referrer?: string | undefined;
                    referrerPolicy?: ReferrerPolicy | undefined;
                    signal?: (AbortSignal | null) | undefined;
                    window?: null | undefined;
                    onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
                    onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
                    onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
                    onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
                    onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
                    hookOptions?: {
                        cloneResponse?: boolean;
                    } | undefined;
                    timeout?: number | undefined;
                    customFetchImpl?: better_auth_react.FetchEsque | undefined;
                    plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
                    baseURL?: string | undefined;
                    throw?: boolean | undefined;
                    auth?: ({
                        type: "Bearer";
                        token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<string, any>> & Record<string, any>) | undefined;
                    params?: Record<string, any> | undefined;
                    duplex?: "full" | "half" | undefined;
                    jsonParser?: ((text: string) => Promise<any> | any) | undefined;
                    retry?: better_auth_react.RetryOptions | undefined;
                    retryAttempt?: number | undefined;
                    output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
                    errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
                    disableValidation?: boolean | undefined;
                } | undefined;
            }> | undefined, "fetchOptions"> & {
                fetchOptions?: {
                    throw?: true;
                } | undefined;
            }): Promise<ThrowableResult>;
            (params: Omit<better_auth_dist_shared_better_auth_CYegVoq1.P<{
                query?: Record<string, any> | undefined;
                fetchOptions?: {
                    method?: string | undefined;
                    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 | undefined;
                    credentials?: RequestCredentials | undefined;
                    integrity?: string | undefined;
                    keepalive?: boolean | undefined;
                    mode?: RequestMode | undefined;
                    priority?: RequestPriority | undefined;
                    redirect?: RequestRedirect | undefined;
                    referrer?: string | undefined;
                    referrerPolicy?: ReferrerPolicy | undefined;
                    signal?: (AbortSignal | null) | undefined;
                    window?: null | undefined;
                    onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
                    onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
                    onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
                    onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
                    onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
                    hookOptions?: {
                        cloneResponse?: boolean;
                    } | undefined;
                    timeout?: number | undefined;
                    customFetchImpl?: better_auth_react.FetchEsque | undefined;
                    plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
                    baseURL?: string | undefined;
                    throw?: boolean | undefined;
                    auth?: ({
                        type: "Bearer";
                        token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<string, any>> & Record<string, any>) | undefined;
                    params?: Record<string, any> | undefined;
                    duplex?: "full" | "half" | undefined;
                    jsonParser?: ((text: string) => Promise<any> | any) | undefined;
                    retry?: better_auth_react.RetryOptions | undefined;
                    retryAttempt?: number | undefined;
                    output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
                    errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
                    disableValidation?: boolean | undefined;
                } | undefined;
            }> | undefined, "fetchOptions"> & {
                fetchOptions?: better_auth_react.BetterFetchOption;
            }): Promise<NonThrowableResult>;
        };
        isPending: boolean;
        error: Error | null;
        data: undefined;
        variables: better_auth_dist_shared_better_auth_CYegVoq1.P<{
            query?: Record<string, any> | undefined;
            fetchOptions?: {
                method?: string | undefined;
                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 | undefined;
                credentials?: RequestCredentials | undefined;
                integrity?: string | undefined;
                keepalive?: boolean | undefined;
                mode?: RequestMode | undefined;
                priority?: RequestPriority | undefined;
                redirect?: RequestRedirect | undefined;
                referrer?: string | undefined;
                referrerPolicy?: ReferrerPolicy | undefined;
                signal?: (AbortSignal | null) | undefined;
                window?: null | undefined;
                onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
                onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
                onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
                onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
                onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
                hookOptions?: {
                    cloneResponse?: boolean;
                } | undefined;
                timeout?: number | undefined;
                customFetchImpl?: better_auth_react.FetchEsque | undefined;
                plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
                baseURL?: string | undefined;
                throw?: boolean | undefined;
                auth?: ({
                    type: "Bearer";
                    token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<string, any>> & Record<string, any>) | undefined;
                params?: Record<string, any> | undefined;
                duplex?: "full" | "half" | undefined;
                jsonParser?: ((text: string) => Promise<any> | any) | undefined;
                retry?: better_auth_react.RetryOptions | undefined;
                retryAttempt?: number | undefined;
                output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
                errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
                disableValidation?: boolean | undefined;
            } | undefined;
        }> | undefined;
        isError: true;
        isIdle: false;
        isSuccess: false;
        status: "error";
        reset: () => void;
        context: {
            previousData: {};
        } | undefined;
        failureCount: number;
        failureReason: Error | null;
        isPaused: boolean;
        submittedAt: number;
    } | {
        mutate: _tanstack_react_query.UseMutateFunction<NonThrowableResult | ThrowableResult, Error, better_auth_dist_shared_better_auth_CYegVoq1.P<{
            query?: Record<string, any> | undefined;
            fetchOptions?: {
                method?: string | undefined;
                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 | undefined;
                credentials?: RequestCredentials | undefined;
                integrity?: string | undefined;
                keepalive?: boolean | undefined;
                mode?: RequestMode | undefined;
                priority?: RequestPriority | undefined;
                redirect?: RequestRedirect | undefined;
                referrer?: string | undefined;
                referrerPolicy?: ReferrerPolicy | undefined;
                signal?: (AbortSignal | null) | undefined;
                window?: null | undefined;
                onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
                onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
                onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
                onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
                onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
                hookOptions?: {
                    cloneResponse?: boolean;
                } | undefined;
                timeout?: number | undefined;
                customFetchImpl?: better_auth_react.FetchEsque | undefined;
                plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
                baseURL?: string | undefined;
                throw?: boolean | undefined;
                auth?: ({
                    type: "Bearer";
                    token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<string, any>> & Record<string, any>) | undefined;
                params?: Record<string, any> | undefined;
                duplex?: "full" | "half" | undefined;
                jsonParser?: ((text: string) => Promise<any> | any) | undefined;
                retry?: better_auth_react.RetryOptions | undefined;
                retryAttempt?: number | undefined;
                output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
                errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
                disableValidation?: boolean | undefined;
            } | undefined;
        }> | undefined, {
            previousData: {};
        }>;
        mutateAsync: {
            (params: Omit<better_auth_dist_shared_better_auth_CYegVoq1.P<{
                query?: Record<string, any> | undefined;
                fetchOptions?: {
                    method?: string | undefined;
                    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 | undefined;
                    credentials?: RequestCredentials | undefined;
                    integrity?: string | undefined;
                    keepalive?: boolean | undefined;
                    mode?: RequestMode | undefined;
                    priority?: RequestPriority | undefined;
                    redirect?: RequestRedirect | undefined;
                    referrer?: string | undefined;
                    referrerPolicy?: ReferrerPolicy | undefined;
                    signal?: (AbortSignal | null) | undefined;
                    window?: null | undefined;
                    onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
                    onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
                    onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
                    onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
                    onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
                    hookOptions?: {
                        cloneResponse?: boolean;
                    } | undefined;
                    timeout?: number | undefined;
                    customFetchImpl?: better_auth_react.FetchEsque | undefined;
                    plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
                    baseURL?: string | undefined;
                    throw?: boolean | undefined;
                    auth?: ({
                        type: "Bearer";
                        token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<string, any>> & Record<string, any>) | undefined;
                    params?: Record<string, any> | undefined;
                    duplex?: "full" | "half" | undefined;
                    jsonParser?: ((text: string) => Promise<any> | any) | undefined;
                    retry?: better_auth_react.RetryOptions | undefined;
                    retryAttempt?: number | undefined;
                    output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
                    errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
                    disableValidation?: boolean | undefined;
                } | undefined;
            }> | undefined, "fetchOptions"> & {
                fetchOptions?: {
                    throw?: true;
                } | undefined;
            }): Promise<ThrowableResult>;
            (params: Omit<better_auth_dist_shared_better_auth_CYegVoq1.P<{
                query?: Record<string, any> | undefined;
                fetchOptions?: {
                    method?: string | undefined;
                    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 | undefined;
                    credentials?: RequestCredentials | undefined;
                    integrity?: string | undefined;
                    keepalive?: boolean | undefined;
                    mode?: RequestMode | undefined;
                    priority?: RequestPriority | undefined;
                    redirect?: RequestRedirect | undefined;
                    referrer?: string | undefined;
                    referrerPolicy?: ReferrerPolicy | undefined;
                    signal?: (AbortSignal | null) | undefined;
                    window?: null | undefined;
                    onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
                    onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
                    onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
                    onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
                    onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
                    hookOptions?: {
                        cloneResponse?: boolean;
                    } | undefined;
                    timeout?: number | undefined;
                    customFetchImpl?: better_auth_react.FetchEsque | undefined;
                    plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
                    baseURL?: string | undefined;
                    throw?: boolean | undefined;
                    auth?: ({
                        type: "Bearer";
                        token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<string, any>> & Record<string, any>) | undefined;
                    params?: Record<string, any> | undefined;
                    duplex?: "full" | "half" | undefined;
                    jsonParser?: ((text: string) => Promise<any> | any) | undefined;
                    retry?: better_auth_react.RetryOptions | undefined;
                    retryAttempt?: number | undefined;
                    output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
                    errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
                    disableValidation?: boolean | undefined;
                } | undefined;
            }> | undefined, "fetchOptions"> & {
                fetchOptions?: better_auth_react.BetterFetchOption;
            }): Promise<NonThrowableResult>;
        };
        isPending: boolean;
        error: Error | null;
        data: NonThrowableResult | ThrowableResult;
        variables: better_auth_dist_shared_better_auth_CYegVoq1.P<{
            query?: Record<string, any> | undefined;
            fetchOptions?: {
                method?: string | undefined;
                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 | undefined;
                credentials?: RequestCredentials | undefined;
                integrity?: string | undefined;
                keepalive?: boolean | undefined;
                mode?: RequestMode | undefined;
                priority?: RequestPriority | undefined;
                redirect?: RequestRedirect | undefined;
                referrer?: string | undefined;
                referrerPolicy?: ReferrerPolicy | undefined;
                signal?: (AbortSignal | null) | undefined;
                window?: null | undefined;
                onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
                onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
                onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
                onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
                onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
                hookOptions?: {
                    cloneResponse?: boolean;
                } | undefined;
                timeout?: number | undefined;
                customFetchImpl?: better_auth_react.FetchEsque | undefined;
                plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
                baseURL?: string | undefined;
                throw?: boolean | undefined;
                auth?: ({
                    type: "Bearer";
                    token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<string, any>> & Record<string, any>) | undefined;
                params?: Record<string, any> | undefined;
                duplex?: "full" | "half" | undefined;
                jsonParser?: ((text: string) => Promise<any> | any) | undefined;
                retry?: better_auth_react.RetryOptions | undefined;
                retryAttempt?: number | undefined;
                output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
                errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
                disableValidation?: boolean | undefined;
            } | undefined;
        }> | undefined;
        isError: false;
        isIdle: false;
        isSuccess: true;
        status: "success";
        reset: () => void;
        context: {
            previousData: {};
        } | undefined;
        failureCount: number;
        failureReason: Error | null;
        isPaused: boolean;
        submittedAt: number;
    };
    useRevokeOtherSessions: (options?: Partial<AuthQueryOptions>) => {
        mutate: _tanstack_react_query.UseMutateFunction<NonThrowableResult | ThrowableResult, Error, better_auth_dist_shared_better_auth_CYegVoq1.P<{
            query?: Record<string, any> | undefined;
            fetchOptions?: {
                method?: string | undefined;
                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 | undefined;
                credentials?: RequestCredentials | undefined;
                integrity?: string | undefined;
                keepalive?: boolean | undefined;
                mode?: RequestMode | undefined;
                priority?: RequestPriority | undefined;
                redirect?: RequestRedirect | undefined;
                referrer?: string | undefined;
                referrerPolicy?: ReferrerPolicy | undefined;
                signal?: (AbortSignal | null) | undefined;
                window?: null | undefined;
                onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
                onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
                onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
                onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
                onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
                hookOptions?: {
                    cloneResponse?: boolean;
                } | undefined;
                timeout?: number | undefined;
                customFetchImpl?: better_auth_react.FetchEsque | undefined;
                plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
                baseURL?: string | undefined;
                throw?: boolean | undefined;
                auth?: ({
                    type: "Bearer";
                    token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<string, any>> & Record<string, any>) | undefined;
                params?: Record<string, any> | undefined;
                duplex?: "full" | "half" | undefined;
                jsonParser?: ((text: string) => Promise<any> | any) | undefined;
                retry?: better_auth_react.RetryOptions | undefined;
                retryAttempt?: number | undefined;
                output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
                errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
                disableValidation?: boolean | undefined;
            } | undefined;
        }> | undefined, {
            previousData: {};
        }>;
        mutateAsync: {
            (params: Omit<better_auth_dist_shared_better_auth_CYegVoq1.P<{
                query?: Record<string, any> | undefined;
                fetchOptions?: {
                    method?: string | undefined;
                    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 | undefined;
                    credentials?: RequestCredentials | undefined;
                    integrity?: string | undefined;
                    keepalive?: boolean | undefined;
                    mode?: RequestMode | undefined;
                    priority?: RequestPriority | undefined;
                    redirect?: RequestRedirect | undefined;
                    referrer?: string | undefined;
                    referrerPolicy?: ReferrerPolicy | undefined;
                    signal?: (AbortSignal | null) | undefined;
                    window?: null | undefined;
                    onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
                    onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
                    onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
                    onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
                    onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
                    hookOptions?: {
                        cloneResponse?: boolean;
                    } | undefined;
                    timeout?: number | undefined;
                    customFetchImpl?: better_auth_react.FetchEsque | undefined;
                    plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
                    baseURL?: string | undefined;
                    throw?: boolean | undefined;
                    auth?: ({
                        type: "Bearer";
                        token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<string, any>> & Record<string, any>) | undefined;
                    params?: Record<string, any> | undefined;
                    duplex?: "full" | "half" | undefined;
                    jsonParser?: ((text: string) => Promise<any> | any) | undefined;
                    retry?: better_auth_react.RetryOptions | undefined;
                    retryAttempt?: number | undefined;
                    output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
                    errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
                    disableValidation?: boolean | undefined;
                } | undefined;
            }> | undefined, "fetchOptions"> & {
                fetchOptions?: {
                    throw?: true;
                } | undefined;
            }): Promise<ThrowableResult>;
            (params: Omit<better_auth_dist_shared_better_auth_CYegVoq1.P<{
                query?: Record<string, any> | undefined;
                fetchOptions?: {
                    method?: string | undefined;
                    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 | undefined;
                    credentials?: RequestCredentials | undefined;
                    integrity?: string | undefined;
                    keepalive?: boolean | undefined;
                    mode?: RequestMode | undefined;
                    priority?: RequestPriority | undefined;
                    redirect?: RequestRedirect | undefined;
                    referrer?: string | undefined;
                    referrerPolicy?: ReferrerPolicy | undefined;
                    signal?: (AbortSignal | null) | undefined;
                    window?: null | undefined;
                    onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
                    onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
                    onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
                    onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
                    onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
                    hookOptions?: {
                        cloneResponse?: boolean;
                    } | undefined;
                    timeout?: number | undefined;
                    customFetchImpl?: better_auth_react.FetchEsque | undefined;
                    plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
                    baseURL?: string | undefined;
                    throw?: boolean | undefined;
                    auth?: ({
                        type: "Bearer";
                        token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<string, any>> & Record<string, any>) | undefined;
                    params?: Record<string, any> | undefined;
                    duplex?: "full" | "half" | undefined;
                    jsonParser?: ((text: string) => Promise<any> | any) | undefined;
                    retry?: better_auth_react.RetryOptions | undefined;
                    retryAttempt?: number | undefined;
                    output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
                    errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
                    disableValidation?: boolean | undefined;
                } | undefined;
            }> | undefined, "fetchOptions"> & {
                fetchOptions?: better_auth_react.BetterFetchOption;
            }): Promise<NonThrowableResult>;
        };
        isPending: boolean;
        error: Error | null;
        data: undefined;
        variables: undefined;
        isError: false;
        isIdle: true;
        isSuccess: false;
        status: "idle";
        reset: () => void;
        context: {
            previousData: {};
        } | undefined;
        failureCount: number;
        failureReason: Error | null;
        isPaused: boolean;
        submittedAt: number;
    } | {
        mutate: _tanstack_react_query.UseMutateFunction<NonThrowableResult | ThrowableResult, Error, better_auth_dist_shared_better_auth_CYegVoq1.P<{
            query?: Record<string, any> | undefined;
            fetchOptions?: {
                method?: string | undefined;
                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 | undefined;
                credentials?: RequestCredentials | undefined;
                integrity?: string | undefined;
                keepalive?: boolean | undefined;
                mode?: RequestMode | undefined;
                priority?: RequestPriority | undefined;
                redirect?: RequestRedirect | undefined;
                referrer?: string | undefined;
                referrerPolicy?: ReferrerPolicy | undefined;
                signal?: (AbortSignal | null) | undefined;
                window?: null | undefined;
                onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
                onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
                onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
                onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
                onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
                hookOptions?: {
                    cloneResponse?: boolean;
                } | undefined;
                timeout?: number | undefined;
                customFetchImpl?: better_auth_react.FetchEsque | undefined;
                plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
                baseURL?: string | undefined;
                throw?: boolean | undefined;
                auth?: ({
                    type: "Bearer";
                    token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<string, any>> & Record<string, any>) | undefined;
                params?: Record<string, any> | undefined;
                duplex?: "full" | "half" | undefined;
                jsonParser?: ((text: string) => Promise<any> | any) | undefined;
                retry?: better_auth_react.RetryOptions | undefined;
                retryAttempt?: number | undefined;
                output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
                errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
                disableValidation?: boolean | undefined;
            } | undefined;
        }> | undefined, {
            previousData: {};
        }>;
        mutateAsync: {
            (params: Omit<better_auth_dist_shared_better_auth_CYegVoq1.P<{
                query?: Record<string, any> | undefined;
                fetchOptions?: {
                    method?: string | undefined;
                    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 | undefined;
                    credentials?: RequestCredentials | undefined;
                    integrity?: string | undefined;
                    keepalive?: boolean | undefined;
                    mode?: RequestMode | undefined;
                    priority?: RequestPriority | undefined;
                    redirect?: RequestRedirect | undefined;
                    referrer?: string | undefined;
                    referrerPolicy?: ReferrerPolicy | undefined;
                    signal?: (AbortSignal | null) | undefined;
                    window?: null | undefined;
                    onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
                    onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
                    onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
                    onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
                    onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
                    hookOptions?: {
                        cloneResponse?: boolean;
                    } | undefined;
                    timeout?: number | undefined;
                    customFetchImpl?: better_auth_react.FetchEsque | undefined;
                    plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
                    baseURL?: string | undefined;
                    throw?: boolean | undefined;
                    auth?: ({
                        type: "Bearer";
                        token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<string, any>> & Record<string, any>) | undefined;
                    params?: Record<string, any> | undefined;
                    duplex?: "full" | "half" | undefined;
                    jsonParser?: ((text: string) => Promise<any> | any) | undefined;
                    retry?: better_auth_react.RetryOptions | undefined;
                    retryAttempt?: number | undefined;
                    output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
                    errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
                    disableValidation?: boolean | undefined;
                } | undefined;
            }> | undefined, "fetchOptions"> & {
                fetchOptions?: {
                    throw?: true;
                } | undefined;
            }): Promise<ThrowableResult>;
            (params: Omit<better_auth_dist_shared_better_auth_CYegVoq1.P<{
                query?: Record<string, any> | undefined;
                fetchOptions?: {
                    method?: string | undefined;
                    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 | undefined;
                    credentials?: RequestCredentials | undefined;
                    integrity?: string | undefined;
                    keepalive?: boolean | undefined;
                    mode?: RequestMode | undefined;
                    priority?: RequestPriority | undefined;
                    redirect?: RequestRedirect | undefined;
                    referrer?: string | undefined;
                    referrerPolicy?: ReferrerPolicy | undefined;
                    signal?: (AbortSignal | null) | undefined;
                    window?: null | undefined;
                    onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
                    onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
                    onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
                    onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
                    onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
                    hookOptions?: {
                        cloneResponse?: boolean;
                    } | undefined;
                    timeout?: number | undefined;
                    customFetchImpl?: better_auth_react.FetchEsque | undefined;
                    plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
                    baseURL?: string | undefined;
                    throw?: boolean | undefined;
                    auth?: ({
                        type: "Bearer";
                        token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<string, any>> & Record<string, any>) | undefined;
                    params?: Record<string, any> | undefined;
                    duplex?: "full" | "half" | undefined;
                    jsonParser?: ((text: string) => Promise<any> | any) | undefined;
                    retry?: better_auth_react.RetryOptions | undefined;
                    retryAttempt?: number | undefined;
                    output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
                    errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
                    disableValidation?: boolean | undefined;
                } | undefined;
            }> | undefined, "fetchOptions"> & {
                fetchOptions?: better_auth_react.BetterFetchOption;
            }): Promise<NonThrowableResult>;
        };
        isPending: boolean;
        error: Error | null;
        data: undefined;
        variables: better_auth_dist_shared_better_auth_CYegVoq1.P<{
            query?: Record<string, any> | undefined;
            fetchOptions?: {
                method?: string | undefined;
                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 | undefined;
                credentials?: RequestCredentials | undefined;
                integrity?: string | undefined;
                keepalive?: boolean | undefined;
                mode?: RequestMode | undefined;
                priority?: RequestPriority | undefined;
                redirect?: RequestRedirect | undefined;
                referrer?: string | undefined;
                referrerPolicy?: ReferrerPolicy | undefined;
                signal?: (AbortSignal | null) | undefined;
                window?: null | undefined;
                onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
                onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
                onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
                onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
                onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
                hookOptions?: {
                    cloneResponse?: boolean;
                } | undefined;
                timeout?: number | undefined;
                customFetchImpl?: better_auth_react.FetchEsque | undefined;
                plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
                baseURL?: string | undefined;
                throw?: boolean | undefined;
                auth?: ({
                    type: "Bearer";
                    token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<string, any>> & Record<string, any>) | undefined;
                params?: Record<string, any> | undefined;
                duplex?: "full" | "half" | undefined;
                jsonParser?: ((text: string) => Promise<any> | any) | undefined;
                retry?: better_auth_react.RetryOptions | undefined;
                retryAttempt?: number | undefined;
                output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
                errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
                disableValidation?: boolean | undefined;
            } | undefined;
        }> | undefined;
        isError: false;
        isIdle: false;
        isSuccess: false;
        status: "pending";
        reset: () => void;
        context: {
            previousData: {};
        } | undefined;
        failureCount: number;
        failureReason: Error | null;
        isPaused: boolean;
        submittedAt: number;
    } | {
        mutate: _tanstack_react_query.UseMutateFunction<NonThrowableResult | ThrowableResult, Error, better_auth_dist_shared_better_auth_CYegVoq1.P<{
            query?: Record<string, any> | undefined;
            fetchOptions?: {
                method?: string | undefined;
                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 | undefined;
                credentials?: RequestCredentials | undefined;
                integrity?: string | undefined;
                keepalive?: boolean | undefined;
                mode?: RequestMode | undefined;
                priority?: RequestPriority | undefined;
                redirect?: RequestRedirect | undefined;
                referrer?: string | undefined;
                referrerPolicy?: ReferrerPolicy | undefined;
                signal?: (AbortSignal | null) | undefined;
                window?: null | undefined;
                onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
                onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
                onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
                onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
                onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
                hookOptions?: {
                    cloneResponse?: boolean;
                } | undefined;
                timeout?: number | undefined;
                customFetchImpl?: better_auth_react.FetchEsque | undefined;
                plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
                baseURL?: string | undefined;
                throw?: boolean | undefined;
                auth?: ({
                    type: "Bearer";
                    token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<string, any>> & Record<string, any>) | undefined;
                params?: Record<string, any> | undefined;
                duplex?: "full" | "half" | undefined;
                jsonParser?: ((text: string) => Promise<any> | any) | undefined;
                retry?: better_auth_react.RetryOptions | undefined;
                retryAttempt?: number | undefined;
                output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
                errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
                disableValidation?: boolean | undefined;
            } | undefined;
        }> | undefined, {
            previousData: {};
        }>;
        mutateAsync: {
            (params: Omit<better_auth_dist_shared_better_auth_CYegVoq1.P<{
                query?: Record<string, any> | undefined;
                fetchOptions?: {
                    method?: string | undefined;
                    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 | undefined;
                    credentials?: RequestCredentials | undefined;
                    integrity?: string | undefined;
                    keepalive?: boolean | undefined;
                    mode?: RequestMode | undefined;
                    priority?: RequestPriority | undefined;
                    redirect?: RequestRedirect | undefined;
                    referrer?: string | undefined;
                    referrerPolicy?: ReferrerPolicy | undefined;
                    signal?: (AbortSignal | null) | undefined;
                    window?: null | undefined;
                    onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
                    onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
                    onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
                    onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
                    onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
                    hookOptions?: {
                        cloneResponse?: boolean;
                    } | undefined;
                    timeout?: number | undefined;
                    customFetchImpl?: better_auth_react.FetchEsque | undefined;
                    plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
                    baseURL?: string | undefined;
                    throw?: boolean | undefined;
                    auth?: ({
                        type: "Bearer";
                        token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<string, any>> & Record<string, any>) | undefined;
                    params?: Record<string, any> | undefined;
                    duplex?: "full" | "half" | undefined;
                    jsonParser?: ((text: string) => Promise<any> | any) | undefined;
                    retry?: better_auth_react.RetryOptions | undefined;
                    retryAttempt?: number | undefined;
                    output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
                    errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
                    disableValidation?: boolean | undefined;
                } | undefined;
            }> | undefined, "fetchOptions"> & {
                fetchOptions?: {
                    throw?: true;
                } | undefined;
            }): Promise<ThrowableResult>;
            (params: Omit<better_auth_dist_shared_better_auth_CYegVoq1.P<{
                query?: Record<string, any> | undefined;
                fetchOptions?: {
                    method?: string | undefined;
                    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 | undefined;
                    credentials?: RequestCredentials | undefined;
                    integrity?: string | undefined;
                    keepalive?: boolean | undefined;
                    mode?: RequestMode | undefined;
                    priority?: RequestPriority | undefined;
                    redirect?: RequestRedirect | undefined;
                    referrer?: string | undefined;
                    referrerPolicy?: ReferrerPolicy | undefined;
                    signal?: (AbortSignal | null) | undefined;
                    window?: null | undefined;
                    onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
                    onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
                    onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
                    onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
                    onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
                    hookOptions?: {
                        cloneResponse?: boolean;
                    } | undefined;
                    timeout?: number | undefined;
                    customFetchImpl?: better_auth_react.FetchEsque | undefined;
                    plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
                    baseURL?: string | undefined;
                    throw?: boolean | undefined;
                    auth?: ({
                        type: "Bearer";
                        token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<string, any>> & Record<string, any>) | undefined;
                    params?: Record<string, any> | undefined;
                    duplex?: "full" | "half" | undefined;
                    jsonParser?: ((text: string) => Promise<any> | any) | undefined;
                    retry?: better_auth_react.RetryOptions | undefined;
                    retryAttempt?: number | undefined;
                    output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
                    errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
                    disableValidation?: boolean | undefined;
                } | undefined;
            }> | undefined, "fetchOptions"> & {
                fetchOptions?: better_auth_react.BetterFetchOption;
            }): Promise<NonThrowableResult>;
        };
        isPending: boolean;
        error: Error | null;
        data: undefined;
        variables: better_auth_dist_shared_better_auth_CYegVoq1.P<{
            query?: Record<string, any> | undefined;
            fetchOptions?: {
                method?: string | undefined;
                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 | undefined;
                credentials?: RequestCredentials | undefined;
                integrity?: string | undefined;
                keepalive?: boolean | undefined;
                mode?: RequestMode | undefined;
                priority?: RequestPriority | undefined;
                redirect?: RequestRedirect | undefined;
                referrer?: string | undefined;
                referrerPolicy?: ReferrerPolicy | undefined;
                signal?: (AbortSignal | null) | undefined;
                window?: null | undefined;
                onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
                onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
                onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
                onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
                onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
                hookOptions?: {
                    cloneResponse?: boolean;
                } | undefined;
                timeout?: number | undefined;
                customFetchImpl?: better_auth_react.FetchEsque | undefined;
                plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
                baseURL?: string | undefined;
                throw?: boolean | undefined;
                auth?: ({
                    type: "Bearer";
                    token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<string, any>> & Record<string, any>) | undefined;
                params?: Record<string, any> | undefined;
                duplex?: "full" | "half" | undefined;
                jsonParser?: ((text: string) => Promise<any> | any) | undefined;
                retry?: better_auth_react.RetryOptions | undefined;
                retryAttempt?: number | undefined;
                output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
                errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
                disableValidation?: boolean | undefined;
            } | undefined;
        }> | undefined;
        isError: true;
        isIdle: false;
        isSuccess: false;
        status: "error";
        reset: () => void;
        context: {
            previousData: {};
        } | undefined;
        failureCount: number;
        failureReason: Error | null;
        isPaused: boolean;
        submittedAt: number;
    } | {
        mutate: _tanstack_react_query.UseMutateFunction<NonThrowableResult | ThrowableResult, Error, better_auth_dist_shared_better_auth_CYegVoq1.P<{
            query?: Record<string, any> | undefined;
            fetchOptions?: {
                method?: string | undefined;
                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 | undefined;
                credentials?: RequestCredentials | undefined;
                integrity?: string | undefined;
                keepalive?: boolean | undefined;
                mode?: RequestMode | undefined;
                priority?: RequestPriority | undefined;
                redirect?: RequestRedirect | undefined;
                referrer?: string | undefined;
                referrerPolicy?: ReferrerPolicy | undefined;
                signal?: (AbortSignal | null) | undefined;
                window?: null | undefined;
                onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
                onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
                onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
                onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
                onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
                hookOptions?: {
                    cloneResponse?: boolean;
                } | undefined;
                timeout?: number | undefined;
                customFetchImpl?: better_auth_react.FetchEsque | undefined;
                plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
                baseURL?: string | undefined;
                throw?: boolean | undefined;
                auth?: ({
                    type: "Bearer";
                    token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<string, any>> & Record<string, any>) | undefined;
                params?: Record<string, any> | undefined;
                duplex?: "full" | "half" | undefined;
                jsonParser?: ((text: string) => Promise<any> | any) | undefined;
                retry?: better_auth_react.RetryOptions | undefined;
                retryAttempt?: number | undefined;
                output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
                errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
                disableValidation?: boolean | undefined;
            } | undefined;
        }> | undefined, {
            previousData: {};
        }>;
        mutateAsync: {
            (params: Omit<better_auth_dist_shared_better_auth_CYegVoq1.P<{
                query?: Record<string, any> | undefined;
                fetchOptions?: {
                    method?: string | undefined;
                    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 | undefined;
                    credentials?: RequestCredentials | undefined;
                    integrity?: string | undefined;
                    keepalive?: boolean | undefined;
                    mode?: RequestMode | undefined;
                    priority?: RequestPriority | undefined;
                    redirect?: RequestRedirect | undefined;
                    referrer?: string | undefined;
                    referrerPolicy?: ReferrerPolicy | undefined;
                    signal?: (AbortSignal | null) | undefined;
                    window?: null | undefined;
                    onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
                    onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
                    onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
                    onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
                    onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
                    hookOptions?: {
                        cloneResponse?: boolean;
                    } | undefined;
                    timeout?: number | undefined;
                    customFetchImpl?: better_auth_react.FetchEsque | undefined;
                    plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
                    baseURL?: string | undefined;
                    throw?: boolean | undefined;
                    auth?: ({
                        type: "Bearer";
                        token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<string, any>> & Record<string, any>) | undefined;
                    params?: Record<string, any> | undefined;
                    duplex?: "full" | "half" | undefined;
                    jsonParser?: ((text: string) => Promise<any> | any) | undefined;
                    retry?: better_auth_react.RetryOptions | undefined;
                    retryAttempt?: number | undefined;
                    output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
                    errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
                    disableValidation?: boolean | undefined;
                } | undefined;
            }> | undefined, "fetchOptions"> & {
                fetchOptions?: {
                    throw?: true;
                } | undefined;
            }): Promise<ThrowableResult>;
            (params: Omit<better_auth_dist_shared_better_auth_CYegVoq1.P<{
                query?: Record<string, any> | undefined;
                fetchOptions?: {
                    method?: string | undefined;
                    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 | undefined;
                    credentials?: RequestCredentials | undefined;
                    integrity?: string | undefined;
                    keepalive?: boolean | undefined;
                    mode?: RequestMode | undefined;
                    priority?: RequestPriority | undefined;
                    redirect?: RequestRedirect | undefined;
                    referrer?: string | undefined;
                    referrerPolicy?: ReferrerPolicy | undefined;
                    signal?: (AbortSignal | null) | undefined;
                    window?: null | undefined;
                    onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
                    onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
                    onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
                    onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
                    onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
                    hookOptions?: {
                        cloneResponse?: boolean;
                    } | undefined;
                    timeout?: number | undefined;
                    customFetchImpl?: better_auth_react.FetchEsque | undefined;
                    plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
                    baseURL?: string | undefined;
                    throw?: boolean | undefined;
                    auth?: ({
                        type: "Bearer";
                        token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<string, any>> & Record<string, any>) | undefined;
                    params?: Record<string, any> | undefined;
                    duplex?: "full" | "half" | undefined;
                    jsonParser?: ((text: string) => Promise<any> | any) | undefined;
                    retry?: better_auth_react.RetryOptions | undefined;
                    retryAttempt?: number | undefined;
                    output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
                    errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
                    disableValidation?: boolean | undefined;
                } | undefined;
            }> | undefined, "fetchOptions"> & {
                fetchOptions?: better_auth_react.BetterFetchOption;
            }): Promise<NonThrowableResult>;
        };
        isPending: boolean;
        error: Error | null;
        data: NonThrowableResult | ThrowableResult;
        variables: better_auth_dist_shared_better_auth_CYegVoq1.P<{
            query?: Record<string, any> | undefined;
            fetchOptions?: {
                method?: string | undefined;
                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 | undefined;
                credentials?: RequestCredentials | undefined;
                integrity?: string | undefined;
                keepalive?: boolean | undefined;
                mode?: RequestMode | undefined;
                priority?: RequestPriority | undefined;
                redirect?: RequestRedirect | undefined;
                referrer?: string | undefined;
                referrerPolicy?: ReferrerPolicy | undefined;
                signal?: (AbortSignal | null) | undefined;
                window?: null | undefined;
                onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
                onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
                onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
                onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
                onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
                hookOptions?: {
                    cloneResponse?: boolean;
                } | undefined;
                timeout?: number | undefined;
                customFetchImpl?: better_auth_react.FetchEsque | undefined;
                plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
                baseURL?: string | undefined;
                throw?: boolean | undefined;
                auth?: ({
                    type: "Bearer";
                    token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<string, any>> & Record<string, any>) | undefined;
                params?: Record<string, any> | undefined;
                duplex?: "full" | "half" | undefined;
                jsonParser?: ((text: string) => Promise<any> | any) | undefined;
                retry?: better_auth_react.RetryOptions | undefined;
                retryAttempt?: number | undefined;
                output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
                errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
                disableValidation?: boolean | undefined;
            } | undefined;
        }> | undefined;
        isError: false;
        isIdle: false;
        isSuccess: true;
        status: "success";
        reset: () => void;
        context: {
            previousData: {};
        } | undefined;
        failureCount: number;
        failureReason: Error | null;
        isPaused: boolean;
        submittedAt: number;
    };
    useListDeviceSessions: (options?: Partial<AnyUseQueryOptions>) => _tanstack_react_query.UseQueryResult<{
        session: better_auth_types.Session;
        user: better_auth_types.User;
    }[], Error>;
    useRevokeDeviceSession: (options?: Partial<AuthQueryOptions>) => {
        mutate: _tanstack_react_query.UseMutateFunction<NonThrowableResult | ThrowableResult, Error, better_auth_dist_shared_better_auth_CYegVoq1.P<{
            sessionToken: string;
        } & {
            fetchOptions?: {
                method?: string | undefined;
                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 | undefined;
                credentials?: RequestCredentials | undefined;
                integrity?: string | undefined;
                keepalive?: boolean | undefined;
                mode?: RequestMode | undefined;
                priority?: RequestPriority | undefined;
                redirect?: RequestRedirect | undefined;
                referrer?: string | undefined;
                referrerPolicy?: ReferrerPolicy | undefined;
                signal?: (AbortSignal | null) | undefined;
                window?: null | undefined;
                onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
                onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
                onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
                onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
                onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
                hookOptions?: {
                    cloneResponse?: boolean;
                } | undefined;
                timeout?: number | undefined;
                customFetchImpl?: better_auth_react.FetchEsque | undefined;
                plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
                baseURL?: string | undefined;
                throw?: boolean | undefined;
                auth?: ({
                    type: "Bearer";
                    token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<string, any>) | undefined;
                query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
                params?: Record<string, any> | undefined;
                duplex?: "full" | "half" | undefined;
                jsonParser?: ((text: string) => Promise<any> | any) | undefined;
                retry?: better_auth_react.RetryOptions | undefined;
                retryAttempt?: number | undefined;
                output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
                errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
                disableValidation?: boolean | undefined;
            } | undefined;
        }>, {
            previousData: {};
        }>;
        mutateAsync: {
            (params: Omit<better_auth_dist_shared_better_auth_CYegVoq1.P<{
                sessionToken: string;
            } & {
                fetchOptions?: {
                    method?: string | undefined;
                    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 | undefined;
                    credentials?: RequestCredentials | undefined;
                    integrity?: string | undefined;
                    keepalive?: boolean | undefined;
                    mode?: RequestMode | undefined;
                    priority?: RequestPriority | undefined;
                    redirect?: RequestRedirect | undefined;
                    referrer?: string | undefined;
                    referrerPolicy?: ReferrerPolicy | undefined;
                    signal?: (AbortSignal | null) | undefined;
                    window?: null | undefined;
                    onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
                    onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
                    onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
                    onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
                    onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
                    hookOptions?: {
                        cloneResponse?: boolean;
                    } | undefined;
                    timeout?: number | undefined;
                    customFetchImpl?: better_auth_react.FetchEsque | undefined;
                    plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
                    baseURL?: string | undefined;
                    throw?: boolean | undefined;
                    auth?: ({
                        type: "Bearer";
                        token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<string, any>) | undefined;
                    query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
                    params?: Record<string, any> | undefined;
                    duplex?: "full" | "half" | undefined;
                    jsonParser?: ((text: string) => Promise<any> | any) | undefined;
                    retry?: better_auth_react.RetryOptions | undefined;
                    retryAttempt?: number | undefined;
                    output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
                    errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
                    disableValidation?: boolean | undefined;
                } | undefined;
            }>, "fetchOptions"> & {
                fetchOptions?: {
                    throw?: true;
                } | undefined;
            }): Promise<ThrowableResult>;
            (params: Omit<better_auth_dist_shared_better_auth_CYegVoq1.P<{
                sessionToken: string;
            } & {
                fetchOptions?: {
                    method?: string | undefined;
                    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 | undefined;
                    credentials?: RequestCredentials | undefined;
                    integrity?: string | undefined;
                    keepalive?: boolean | undefined;
                    mode?: RequestMode | undefined;
                    priority?: RequestPriority | undefined;
                    redirect?: RequestRedirect | undefined;
                    referrer?: string | undefined;
                    referrerPolicy?: ReferrerPolicy | undefined;
                    signal?: (AbortSignal | null) | undefined;
                    window?: null | undefined;
                    onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
                    onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
                    onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
                    onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
                    onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
                    hookOptions?: {
                        cloneResponse?: boolean;
                    } | undefined;
                    timeout?: number | undefined;
                    customFetchImpl?: better_auth_react.FetchEsque | undefined;
                    plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
                    baseURL?: string | undefined;
                    throw?: boolean | undefined;
                    auth?: ({
                        type: "Bearer";
                        token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<string, any>) | undefined;
                    query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
                    params?: Record<string, any> | undefined;
                    duplex?: "full" | "half" | undefined;
                    jsonParser?: ((text: string) => Promise<any> | any) | undefined;
                    retry?: better_auth_react.RetryOptions | undefined;
                    retryAttempt?: number | undefined;
                    output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
                    errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
                    disableValidation?: boolean | undefined;
                } | undefined;
            }>, "fetchOptions"> & {
                fetchOptions?: better_auth_react.BetterFetchOption;
            }): Promise<NonThrowableResult>;
        };
        isPending: boolean;
        error: Error | null;
        data: undefined;
        variables: undefined;
        isError: false;
        isIdle: true;
        isSuccess: false;
        status: "idle";
        reset: () => void;
        context: {
            previousData: {};
        } | undefined;
        failureCount: number;
        failureReason: Error | null;
        isPaused: boolean;
        submittedAt: number;
    } | {
        mutate: _tanstack_react_query.UseMutateFunction<NonThrowableResult | ThrowableResult, Error, better_auth_dist_shared_better_auth_CYegVoq1.P<{
            sessionToken: string;
        } & {
            fetchOptions?: {
                method?: string | undefined;
                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 | undefined;
                credentials?: RequestCredentials | undefined;
                integrity?: string | undefined;
                keepalive?: boolean | undefined;
                mode?: RequestMode | undefined;
                priority?: RequestPriority | undefined;
                redirect?: RequestRedirect | undefined;
                referrer?: string | undefined;
                referrerPolicy?: ReferrerPolicy | undefined;
                signal?: (AbortSignal | null) | undefined;
                window?: null | undefined;
                onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
                onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
                onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
                onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
                onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
                hookOptions?: {
                    cloneResponse?: boolean;
                } | undefined;
                timeout?: number | undefined;
                customFetchImpl?: better_auth_react.FetchEsque | undefined;
                plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
                baseURL?: string | undefined;
                throw?: boolean | undefined;
                auth?: ({
                    type: "Bearer";
                    token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<string, any>) | undefined;
                query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
                params?: Record<string, any> | undefined;
                duplex?: "full" | "half" | undefined;
                jsonParser?: ((text: string) => Promise<any> | any) | undefined;
                retry?: better_auth_react.RetryOptions | undefined;
                retryAttempt?: number | undefined;
                output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
                errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
                disableValidation?: boolean | undefined;
            } | undefined;
        }>, {
            previousData: {};
        }>;
        mutateAsync: {
            (params: Omit<better_auth_dist_shared_better_auth_CYegVoq1.P<{
                sessionToken: string;
            } & {
                fetchOptions?: {
                    method?: string | undefined;
                    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 | undefined;
                    credentials?: RequestCredentials | undefined;
                    integrity?: string | undefined;
                    keepalive?: boolean | undefined;
                    mode?: RequestMode | undefined;
                    priority?: RequestPriority | undefined;
                    redirect?: RequestRedirect | undefined;
                    referrer?: string | undefined;
                    referrerPolicy?: ReferrerPolicy | undefined;
                    signal?: (AbortSignal | null) | undefined;
                    window?: null | undefined;
                    onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
                    onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
                    onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
                    onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
                    onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
                    hookOptions?: {
                        cloneResponse?: boolean;
                    } | undefined;
                    timeout?: number | undefined;
                    customFetchImpl?: better_auth_react.FetchEsque | undefined;
                    plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
                    baseURL?: string | undefined;
                    throw?: boolean | undefined;
                    auth?: ({
                        type: "Bearer";
                        token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<string, any>) | undefined;
                    query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
                    params?: Record<string, any> | undefined;
                    duplex?: "full" | "half" | undefined;
                    jsonParser?: ((text: string) => Promise<any> | any) | undefined;
                    retry?: better_auth_react.RetryOptions | undefined;
                    retryAttempt?: number | undefined;
                    output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
                    errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
                    disableValidation?: boolean | undefined;
                } | undefined;
            }>, "fetchOptions"> & {
                fetchOptions?: {
                    throw?: true;
                } | undefined;
            }): Promise<ThrowableResult>;
            (params: Omit<better_auth_dist_shared_better_auth_CYegVoq1.P<{
                sessionToken: string;
            } & {
                fetchOptions?: {
                    method?: string | undefined;
                    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 | undefined;
                    credentials?: RequestCredentials | undefined;
                    integrity?: string | undefined;
                    keepalive?: boolean | undefined;
                    mode?: RequestMode | undefined;
                    priority?: RequestPriority | undefined;
                    redirect?: RequestRedirect | undefined;
                    referrer?: string | undefined;
                    referrerPolicy?: ReferrerPolicy | undefined;
                    signal?: (AbortSignal | null) | undefined;
                    window?: null | undefined;
                    onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
                    onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
                    onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
                    onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
                    onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
                    hookOptions?: {
                        cloneResponse?: boolean;
                    } | undefined;
                    timeout?: number | undefined;
                    customFetchImpl?: better_auth_react.FetchEsque | undefined;
                    plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
                    baseURL?: string | undefined;
                    throw?: boolean | undefined;
                    auth?: ({
                        type: "Bearer";
                        token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<string, any>) | undefined;
                    query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
                    params?: Record<string, any> | undefined;
                    duplex?: "full" | "half" | undefined;
                    jsonParser?: ((text: string) => Promise<any> | any) | undefined;
                    retry?: better_auth_react.RetryOptions | undefined;
                    retryAttempt?: number | undefined;
                    output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
                    errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
                    disableValidation?: boolean | undefined;
                } | undefined;
            }>, "fetchOptions"> & {
                fetchOptions?: better_auth_react.BetterFetchOption;
            }): Promise<NonThrowableResult>;
        };
        isPending: boolean;
        error: Error | null;
        data: undefined;
        variables: better_auth_dist_shared_better_auth_CYegVoq1.P<{
            sessionToken: string;
        } & {
            fetchOptions?: {
                method?: string | undefined;
                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 | undefined;
                credentials?: RequestCredentials | undefined;
                integrity?: string | undefined;
                keepalive?: boolean | undefined;
                mode?: RequestMode | undefined;
                priority?: RequestPriority | undefined;
                redirect?: RequestRedirect | undefined;
                referrer?: string | undefined;
                referrerPolicy?: ReferrerPolicy | undefined;
                signal?: (AbortSignal | null) | undefined;
                window?: null | undefined;
                onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
                onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
                onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
                onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
                onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
                hookOptions?: {
                    cloneResponse?: boolean;
                } | undefined;
                timeout?: number | undefined;
                customFetchImpl?: better_auth_react.FetchEsque | undefined;
                plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
                baseURL?: string | undefined;
                throw?: boolean | undefined;
                auth?: ({
                    type: "Bearer";
                    token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<string, any>) | undefined;
                query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
                params?: Record<string, any> | undefined;
                duplex?: "full" | "half" | undefined;
                jsonParser?: ((text: string) => Promise<any> | any) | undefined;
                retry?: better_auth_react.RetryOptions | undefined;
                retryAttempt?: number | undefined;
                output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
                errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
                disableValidation?: boolean | undefined;
            } | undefined;
        }>;
        isError: false;
        isIdle: false;
        isSuccess: false;
        status: "pending";
        reset: () => void;
        context: {
            previousData: {};
        } | undefined;
        failureCount: number;
        failureReason: Error | null;
        isPaused: boolean;
        submittedAt: number;
    } | {
        mutate: _tanstack_react_query.UseMutateFunction<NonThrowableResult | ThrowableResult, Error, better_auth_dist_shared_better_auth_CYegVoq1.P<{
            sessionToken: string;
        } & {
            fetchOptions?: {
                method?: string | undefined;
                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 | undefined;
                credentials?: RequestCredentials | undefined;
                integrity?: string | undefined;
                keepalive?: boolean | undefined;
                mode?: RequestMode | undefined;
                priority?: RequestPriority | undefined;
                redirect?: RequestRedirect | undefined;
                referrer?: string | undefined;
                referrerPolicy?: ReferrerPolicy | undefined;
                signal?: (AbortSignal | null) | undefined;
                window?: null | undefined;
                onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
                onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
                onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
                onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
                onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
                hookOptions?: {
                    cloneResponse?: boolean;
                } | undefined;
                timeout?: number | undefined;
                customFetchImpl?: better_auth_react.FetchEsque | undefined;
                plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
                baseURL?: string | undefined;
                throw?: boolean | undefined;
                auth?: ({
                    type: "Bearer";
                    token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<string, any>) | undefined;
                query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
                params?: Record<string, any> | undefined;
                duplex?: "full" | "half" | undefined;
                jsonParser?: ((text: string) => Promise<any> | any) | undefined;
                retry?: better_auth_react.RetryOptions | undefined;
                retryAttempt?: number | undefined;
                output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
                errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
                disableValidation?: boolean | undefined;
            } | undefined;
        }>, {
            previousData: {};
        }>;
        mutateAsync: {
            (params: Omit<better_auth_dist_shared_better_auth_CYegVoq1.P<{
                sessionToken: string;
            } & {
                fetchOptions?: {
                    method?: string | undefined;
                    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 | undefined;
                    credentials?: RequestCredentials | undefined;
                    integrity?: string | undefined;
                    keepalive?: boolean | undefined;
                    mode?: RequestMode | undefined;
                    priority?: RequestPriority | undefined;
                    redirect?: RequestRedirect | undefined;
                    referrer?: string | undefined;
                    referrerPolicy?: ReferrerPolicy | undefined;
                    signal?: (AbortSignal | null) | undefined;
                    window?: null | undefined;
                    onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
                    onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
                    onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
                    onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
                    onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
                    hookOptions?: {
                        cloneResponse?: boolean;
                    } | undefined;
                    timeout?: number | undefined;
                    customFetchImpl?: better_auth_react.FetchEsque | undefined;
                    plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
                    baseURL?: string | undefined;
                    throw?: boolean | undefined;
                    auth?: ({
                        type: "Bearer";
                        token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<string, any>) | undefined;
                    query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
                    params?: Record<string, any> | undefined;
                    duplex?: "full" | "half" | undefined;
                    jsonParser?: ((text: string) => Promise<any> | any) | undefined;
                    retry?: better_auth_react.RetryOptions | undefined;
                    retryAttempt?: number | undefined;
                    output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
                    errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
                    disableValidation?: boolean | undefined;
                } | undefined;
            }>, "fetchOptions"> & {
                fetchOptions?: {
                    throw?: true;
                } | undefined;
            }): Promise<ThrowableResult>;
            (params: Omit<better_auth_dist_shared_better_auth_CYegVoq1.P<{
                sessionToken: string;
            } & {
                fetchOptions?: {
                    method?: string | undefined;
                    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 | undefined;
                    credentials?: RequestCredentials | undefined;
                    integrity?: string | undefined;
                    keepalive?: boolean | undefined;
                    mode?: RequestMode | undefined;
                    priority?: RequestPriority | undefined;
                    redirect?: RequestRedirect | undefined;
                    referrer?: string | undefined;
                    referrerPolicy?: ReferrerPolicy | undefined;
                    signal?: (AbortSignal | null) | undefined;
                    window?: null | undefined;
                    onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
                    onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
                    onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
                    onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
                    onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
                    hookOptions?: {
                        cloneResponse?: boolean;
                    } | undefined;
                    timeout?: number | undefined;
                    customFetchImpl?: better_auth_react.FetchEsque | undefined;
                    plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
                    baseURL?: string | undefined;
                    throw?: boolean | undefined;
                    auth?: ({
                        type: "Bearer";
                        token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<string, any>) | undefined;
                    query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
                    params?: Record<string, any> | undefined;
                    duplex?: "full" | "half" | undefined;
                    jsonParser?: ((text: string) => Promise<any> | any) | undefined;
                    retry?: better_auth_react.RetryOptions | undefined;
                    retryAttempt?: number | undefined;
                    output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
                    errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
                    disableValidation?: boolean | undefined;
                } | undefined;
            }>, "fetchOptions"> & {
                fetchOptions?: better_auth_react.BetterFetchOption;
            }): Promise<NonThrowableResult>;
        };
        isPending: boolean;
        error: Error | null;
        data: undefined;
        variables: better_auth_dist_shared_better_auth_CYegVoq1.P<{
            sessionToken: string;
        } & {
            fetchOptions?: {
                method?: string | undefined;
                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 | undefined;
                credentials?: RequestCredentials | undefined;
                integrity?: string | undefined;
                keepalive?: boolean | undefined;
                mode?: RequestMode | undefined;
                priority?: RequestPriority | undefined;
                redirect?: RequestRedirect | undefined;
                referrer?: string | undefined;
                referrerPolicy?: ReferrerPolicy | undefined;
                signal?: (AbortSignal | null) | undefined;
                window?: null | undefined;
                onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
                onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
                onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
                onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
                onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
                hookOptions?: {
                    cloneResponse?: boolean;
                } | undefined;
                timeout?: number | undefined;
                customFetchImpl?: better_auth_react.FetchEsque | undefined;
                plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
                baseURL?: string | undefined;
                throw?: boolean | undefined;
                auth?: ({
                    type: "Bearer";
                    token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<string, any>) | undefined;
                query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
                params?: Record<string, any> | undefined;
                duplex?: "full" | "half" | undefined;
                jsonParser?: ((text: string) => Promise<any> | any) | undefined;
                retry?: better_auth_react.RetryOptions | undefined;
                retryAttempt?: number | undefined;
                output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
                errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
                disableValidation?: boolean | undefined;
            } | undefined;
        }>;
        isError: true;
        isIdle: false;
        isSuccess: false;
        status: "error";
        reset: () => void;
        context: {
            previousData: {};
        } | undefined;
        failureCount: number;
        failureReason: Error | null;
        isPaused: boolean;
        submittedAt: number;
    } | {
        mutate: _tanstack_react_query.UseMutateFunction<NonThrowableResult | ThrowableResult, Error, better_auth_dist_shared_better_auth_CYegVoq1.P<{
            sessionToken: string;
        } & {
            fetchOptions?: {
                method?: string | undefined;
                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 | undefined;
                credentials?: RequestCredentials | undefined;
                integrity?: string | undefined;
                keepalive?: boolean | undefined;
                mode?: RequestMode | undefined;
                priority?: RequestPriority | undefined;
                redirect?: RequestRedirect | undefined;
                referrer?: string | undefined;
                referrerPolicy?: ReferrerPolicy | undefined;
                signal?: (AbortSignal | null) | undefined;
                window?: null | undefined;
                onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
                onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
                onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
                onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
                onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
                hookOptions?: {
                    cloneResponse?: boolean;
                } | undefined;
                timeout?: number | undefined;
                customFetchImpl?: better_auth_react.FetchEsque | undefined;
                plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
                baseURL?: string | undefined;
                throw?: boolean | undefined;
                auth?: ({
                    type: "Bearer";
                    token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<string, any>) | undefined;
                query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
                params?: Record<string, any> | undefined;
                duplex?: "full" | "half" | undefined;
                jsonParser?: ((text: string) => Promise<any> | any) | undefined;
                retry?: better_auth_react.RetryOptions | undefined;
                retryAttempt?: number | undefined;
                output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
                errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
                disableValidation?: boolean | undefined;
            } | undefined;
        }>, {
            previousData: {};
        }>;
        mutateAsync: {
            (params: Omit<better_auth_dist_shared_better_auth_CYegVoq1.P<{
                sessionToken: string;
            } & {
                fetchOptions?: {
                    method?: string | undefined;
                    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 | undefined;
                    credentials?: RequestCredentials | undefined;
                    integrity?: string | undefined;
                    keepalive?: boolean | undefined;
                    mode?: RequestMode | undefined;
                    priority?: RequestPriority | undefined;
                    redirect?: RequestRedirect | undefined;
                    referrer?: string | undefined;
                    referrerPolicy?: ReferrerPolicy | undefined;
                    signal?: (AbortSignal | null) | undefined;
                    window?: null | undefined;
                    onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
                    onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
                    onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
                    onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
                    onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
                    hookOptions?: {
                        cloneResponse?: boolean;
                    } | undefined;
                    timeout?: number | undefined;
                    customFetchImpl?: better_auth_react.FetchEsque | undefined;
                    plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
                    baseURL?: string | undefined;
                    throw?: boolean | undefined;
                    auth?: ({
                        type: "Bearer";
                        token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<string, any>) | undefined;
                    query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
                    params?: Record<string, any> | undefined;
                    duplex?: "full" | "half" | undefined;
                    jsonParser?: ((text: string) => Promise<any> | any) | undefined;
                    retry?: better_auth_react.RetryOptions | undefined;
                    retryAttempt?: number | undefined;
                    output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
                    errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
                    disableValidation?: boolean | undefined;
                } | undefined;
            }>, "fetchOptions"> & {
                fetchOptions?: {
                    throw?: true;
                } | undefined;
            }): Promise<ThrowableResult>;
            (params: Omit<better_auth_dist_shared_better_auth_CYegVoq1.P<{
                sessionToken: string;
            } & {
                fetchOptions?: {
                    method?: string | undefined;
                    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 | undefined;
                    credentials?: RequestCredentials | undefined;
                    integrity?: string | undefined;
                    keepalive?: boolean | undefined;
                    mode?: RequestMode | undefined;
                    priority?: RequestPriority | undefined;
                    redirect?: RequestRedirect | undefined;
                    referrer?: string | undefined;
                    referrerPolicy?: ReferrerPolicy | undefined;
                    signal?: (AbortSignal | null) | undefined;
                    window?: null | undefined;
                    onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
                    onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
                    onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
                    onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
                    onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
                    hookOptions?: {
                        cloneResponse?: boolean;
                    } | undefined;
                    timeout?: number | undefined;
                    customFetchImpl?: better_auth_react.FetchEsque | undefined;
                    plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
                    baseURL?: string | undefined;
                    throw?: boolean | undefined;
                    auth?: ({
                        type: "Bearer";
                        token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<string, any>) | undefined;
                    query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
                    params?: Record<string, any> | undefined;
                    duplex?: "full" | "half" | undefined;
                    jsonParser?: ((text: string) => Promise<any> | any) | undefined;
                    retry?: better_auth_react.RetryOptions | undefined;
                    retryAttempt?: number | undefined;
                    output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
                    errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
                    disableValidation?: boolean | undefined;
                } | undefined;
            }>, "fetchOptions"> & {
                fetchOptions?: better_auth_react.BetterFetchOption;
            }): Promise<NonThrowableResult>;
        };
        isPending: boolean;
        error: Error | null;
        data: NonThrowableResult | ThrowableResult;
        variables: better_auth_dist_shared_better_auth_CYegVoq1.P<{
            sessionToken: string;
        } & {
            fetchOptions?: {
                method?: string | undefined;
                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 | undefined;
                credentials?: RequestCredentials | undefined;
                integrity?: string | undefined;
                keepalive?: boolean | undefined;
                mode?: RequestMode | undefined;
                priority?: RequestPriority | undefined;
                redirect?: RequestRedirect | undefined;
                referrer?: string | undefined;
                referrerPolicy?: ReferrerPolicy | undefined;
                signal?: (AbortSignal | null) | undefined;
                window?: null | undefined;
                onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
                onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
                onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
                onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
                onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
                hookOptions?: {
                    cloneResponse?: boolean;
                } | undefined;
                timeout?: number | undefined;
                customFetchImpl?: better_auth_react.FetchEsque | undefined;
                plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
                baseURL?: string | undefined;
                throw?: boolean | undefined;
                auth?: ({
                    type: "Bearer";
                    token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<string, any>) | undefined;
                query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
                params?: Record<string, any> | undefined;
                duplex?: "full" | "half" | undefined;
                jsonParser?: ((text: string) => Promise<any> | any) | undefined;
                retry?: better_auth_react.RetryOptions | undefined;
                retryAttempt?: number | undefined;
                output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
                errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
                disableValidation?: boolean | undefined;
            } | undefined;
        }>;
        isError: false;
        isIdle: false;
        isSuccess: true;
        status: "success";
        reset: () => void;
        context: {
            previousData: {};
        } | undefined;
        failureCount: number;
        failureReason: Error | null;
        isPaused: boolean;
        submittedAt: number;
    };
    useSetActiveSession: (options?: Partial<AuthQueryOptions>) => {
        setActiveSession: _tanstack_react_query.UseMutateFunction<{
            data: {
                session: better_auth_types.Session & Record<string, any>;
                user: better_auth_types.User & Record<string, any>;
            };
            error: null;
        } | {
            data: null;
            error: {
                code?: string | undefined;
                message?: string | undefined;
                status: number;
                statusText: string;
            };
        }, Error, better_auth_dist_shared_better_auth_CYegVoq1.P<{
            sessionToken: string;
        } & {
            fetchOptions?: {
                method?: string | undefined;
                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 | undefined;
                credentials?: RequestCredentials | undefined;
                integrity?: string | undefined;
                keepalive?: boolean | undefined;
                mode?: RequestMode | undefined;
                priority?: RequestPriority | undefined;
                redirect?: RequestRedirect | undefined;
                referrer?: string | undefined;
                referrerPolicy?: ReferrerPolicy | undefined;
                signal?: (AbortSignal | null) | undefined;
                window?: null | undefined;
                onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
                onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
                onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
                onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
                onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
                hookOptions?: {
                    cloneResponse?: boolean;
                } | undefined;
                timeout?: number | undefined;
                customFetchImpl?: better_auth_react.FetchEsque | undefined;
                plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
                baseURL?: string | undefined;
                throw?: boolean | undefined;
                auth?: ({
                    type: "Bearer";
                    token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<string, any>) | undefined;
                query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
                params?: Record<string, any> | undefined;
                duplex?: "full" | "half" | undefined;
                jsonParser?: ((text: string) => Promise<any> | any) | undefined;
                retry?: better_auth_react.RetryOptions | undefined;
                retryAttempt?: number | undefined;
                output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
                errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
                disableValidation?: boolean | undefined;
            } | undefined;
        }>, unknown>;
        setActiveSessionAsync: _tanstack_react_query.UseMutateAsyncFunction<{
            data: {
                session: better_auth_types.Session & Record<string, any>;
                user: better_auth_types.User & Record<string, any>;
            };
            error: null;
        } | {
            data: null;
            error: {
                code?: string | undefined;
                message?: string | undefined;
                status: number;
                statusText: string;
            };
        }, Error, better_auth_dist_shared_better_auth_CYegVoq1.P<{
            sessionToken: string;
        } & {
            fetchOptions?: {
                method?: string | undefined;
                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 | undefined;
                credentials?: RequestCredentials | undefined;
                integrity?: string | undefined;
                keepalive?: boolean | undefined;
                mode?: RequestMode | undefined;
                priority?: RequestPriority | undefined;
                redirect?: RequestRedirect | undefined;
                referrer?: string | undefined;
                referrerPolicy?: ReferrerPolicy | undefined;
                signal?: (AbortSignal | null) | undefined;
                window?: null | undefined;
                onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
                onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
                onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
                onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
                onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
                hookOptions?: {
                    cloneResponse?: boolean;
                } | undefined;
                timeout?: number | undefined;
                customFetchImpl?: better_auth_react.FetchEsque | undefined;
                plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
                baseURL?: string | undefined;
                throw?: boolean | undefined;
                auth?: ({
                    type: "Bearer";
                    token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<string, any>) | undefined;
                query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
                params?: Record<string, any> | undefined;
                duplex?: "full" | "half" | undefined;
                jsonParser?: ((text: string) => Promise<any> | any) | undefined;
                retry?: better_auth_react.RetryOptions | undefined;
                retryAttempt?: number | undefined;
                output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
                errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
                disableValidation?: boolean | undefined;
            } | undefined;
        }>, unknown>;
        setActiveSessionPending: boolean;
        setActiveSessionError: Error | null;
        data: undefined;
        variables: undefined;
        error: null;
        isError: false;
        isIdle: true;
        isPending: false;
        isSuccess: false;
        status: "idle";
        mutate: _tanstack_react_query.UseMutateFunction<{
            data: {
                session: better_auth_types.Session & Record<string, any>;
                user: better_auth_types.User & Record<string, any>;
            };
            error: null;
        } | {
            data: null;
            error: {
                code?: string | undefined;
                message?: string | undefined;
                status: number;
                statusText: string;
            };
        }, Error, better_auth_dist_shared_better_auth_CYegVoq1.P<{
            sessionToken: string;
        } & {
            fetchOptions?: {
                method?: string | undefined;
                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 | undefined;
                credentials?: RequestCredentials | undefined;
                integrity?: string | undefined;
                keepalive?: boolean | undefined;
                mode?: RequestMode | undefined;
                priority?: RequestPriority | undefined;
                redirect?: RequestRedirect | undefined;
                referrer?: string | undefined;
                referrerPolicy?: ReferrerPolicy | undefined;
                signal?: (AbortSignal | null) | undefined;
                window?: null | undefined;
                onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
                onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
                onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
                onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
                onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
                hookOptions?: {
                    cloneResponse?: boolean;
                } | undefined;
                timeout?: number | undefined;
                customFetchImpl?: better_auth_react.FetchEsque | undefined;
                plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
                baseURL?: string | undefined;
                throw?: boolean | undefined;
                auth?: ({
                    type: "Bearer";
                    token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<string, any>) | undefined;
                query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
                params?: Record<string, any> | undefined;
                duplex?: "full" | "half" | undefined;
                jsonParser?: ((text: string) => Promise<any> | any) | undefined;
                retry?: better_auth_react.RetryOptions | undefined;
                retryAttempt?: number | undefined;
                output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
                errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
                disableValidation?: boolean | undefined;
            } | undefined;
        }>, unknown>;
        reset: () => void;
        context: unknown;
        failureCount: number;
        failureReason: Error | null;
        isPaused: boolean;
        submittedAt: number;
        mutateAsync: _tanstack_react_query.UseMutateAsyncFunction<{
            data: {
                session: better_auth_types.Session & Record<string, any>;
                user: better_auth_types.User & Record<string, any>;
            };
            error: null;
        } | {
            data: null;
            error: {
                code?: string | undefined;
                message?: string | undefined;
                status: number;
                statusText: string;
            };
        }, Error, better_auth_dist_shared_better_auth_CYegVoq1.P<{
            sessionToken: string;
        } & {
            fetchOptions?: {
                method?: string | undefined;
                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 | undefined;
                credentials?: RequestCredentials | undefined;
                integrity?: string | undefined;
                keepalive?: boolean | undefined;
                mode?: RequestMode | undefined;
                priority?: RequestPriority | undefined;
                redirect?: RequestRedirect | undefined;
                referrer?: string | undefined;
                referrerPolicy?: ReferrerPolicy | undefined;
                signal?: (AbortSignal | null) | undefined;
                window?: null | undefined;
                onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
                onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
                onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
                onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
                onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
                hookOptions?: {
                    cloneResponse?: boolean;
                } | undefined;
                timeout?: number | undefined;
                customFetchImpl?: better_auth_react.FetchEsque | undefined;
                plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
                baseURL?: string | undefined;
                throw?: boolean | undefined;
                auth?: ({
                    type: "Bearer";
                    token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<string, any>) | undefined;
                query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
                params?: Record<string, any> | undefined;
                duplex?: "full" | "half" | undefined;
                jsonParser?: ((text: string) => Promise<any> | any) | undefined;
                retry?: better_auth_react.RetryOptions | undefined;
                retryAttempt?: number | undefined;
                output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
                errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
                disableValidation?: boolean | undefined;
            } | undefined;
        }>, unknown>;
    } | {
        setActiveSession: _tanstack_react_query.UseMutateFunction<{
            data: {
                session: better_auth_types.Session & Record<string, any>;
                user: better_auth_types.User & Record<string, any>;
            };
            error: null;
        } | {
            data: null;
            error: {
                code?: string | undefined;
                message?: string | undefined;
                status: number;
                statusText: string;
            };
        }, Error, better_auth_dist_shared_better_auth_CYegVoq1.P<{
            sessionToken: string;
        } & {
            fetchOptions?: {
                method?: string | undefined;
                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 | undefined;
                credentials?: RequestCredentials | undefined;
                integrity?: string | undefined;
                keepalive?: boolean | undefined;
                mode?: RequestMode | undefined;
                priority?: RequestPriority | undefined;
                redirect?: RequestRedirect | undefined;
                referrer?: string | undefined;
                referrerPolicy?: ReferrerPolicy | undefined;
                signal?: (AbortSignal | null) | undefined;
                window?: null | undefined;
                onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
                onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
                onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
                onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
                onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
                hookOptions?: {
                    cloneResponse?: boolean;
                } | undefined;
                timeout?: number | undefined;
                customFetchImpl?: better_auth_react.FetchEsque | undefined;
                plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
                baseURL?: string | undefined;
                throw?: boolean | undefined;
                auth?: ({
                    type: "Bearer";
                    token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<string, any>) | undefined;
                query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
                params?: Record<string, any> | undefined;
                duplex?: "full" | "half" | undefined;
                jsonParser?: ((text: string) => Promise<any> | any) | undefined;
                retry?: better_auth_react.RetryOptions | undefined;
                retryAttempt?: number | undefined;
                output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
                errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
                disableValidation?: boolean | undefined;
            } | undefined;
        }>, unknown>;
        setActiveSessionAsync: _tanstack_react_query.UseMutateAsyncFunction<{
            data: {
                session: better_auth_types.Session & Record<string, any>;
                user: better_auth_types.User & Record<string, any>;
            };
            error: null;
        } | {
            data: null;
            error: {
                code?: string | undefined;
                message?: string | undefined;
                status: number;
                statusText: string;
            };
        }, Error, better_auth_dist_shared_better_auth_CYegVoq1.P<{
            sessionToken: string;
        } & {
            fetchOptions?: {
                method?: string | undefined;
                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 | undefined;
                credentials?: RequestCredentials | undefined;
                integrity?: string | undefined;
                keepalive?: boolean | undefined;
                mode?: RequestMode | undefined;
                priority?: RequestPriority | undefined;
                redirect?: RequestRedirect | undefined;
                referrer?: string | undefined;
                referrerPolicy?: ReferrerPolicy | undefined;
                signal?: (AbortSignal | null) | undefined;
                window?: null | undefined;
                onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
                onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
                onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
                onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
                onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
                hookOptions?: {
                    cloneResponse?: boolean;
                } | undefined;
                timeout?: number | undefined;
                customFetchImpl?: better_auth_react.FetchEsque | undefined;
                plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
                baseURL?: string | undefined;
                throw?: boolean | undefined;
                auth?: ({
                    type: "Bearer";
                    token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<string, any>) | undefined;
                query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
                params?: Record<string, any> | undefined;
                duplex?: "full" | "half" | undefined;
                jsonParser?: ((text: string) => Promise<any> | any) | undefined;
                retry?: better_auth_react.RetryOptions | undefined;
                retryAttempt?: number | undefined;
                output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
                errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
                disableValidation?: boolean | undefined;
            } | undefined;
        }>, unknown>;
        setActiveSessionPending: boolean;
        setActiveSessionError: Error | null;
        data: undefined;
        variables: better_auth_dist_shared_better_auth_CYegVoq1.P<{
            sessionToken: string;
        } & {
            fetchOptions?: {
                method?: string | undefined;
                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 | undefined;
                credentials?: RequestCredentials | undefined;
                integrity?: string | undefined;
                keepalive?: boolean | undefined;
                mode?: RequestMode | undefined;
                priority?: RequestPriority | undefined;
                redirect?: RequestRedirect | undefined;
                referrer?: string | undefined;
                referrerPolicy?: ReferrerPolicy | undefined;
                signal?: (AbortSignal | null) | undefined;
                window?: null | undefined;
                onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
                onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
                onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
                onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
                onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
                hookOptions?: {
                    cloneResponse?: boolean;
                } | undefined;
                timeout?: number | undefined;
                customFetchImpl?: better_auth_react.FetchEsque | undefined;
                plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
                baseURL?: string | undefined;
                throw?: boolean | undefined;
                auth?: ({
                    type: "Bearer";
                    token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<string, any>) | undefined;
                query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
                params?: Record<string, any> | undefined;
                duplex?: "full" | "half" | undefined;
                jsonParser?: ((text: string) => Promise<any> | any) | undefined;
                retry?: better_auth_react.RetryOptions | undefined;
                retryAttempt?: number | undefined;
                output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
                errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
                disableValidation?: boolean | undefined;
            } | undefined;
        }>;
        error: null;
        isError: false;
        isIdle: false;
        isPending: true;
        isSuccess: false;
        status: "pending";
        mutate: _tanstack_react_query.UseMutateFunction<{
            data: {
                session: better_auth_types.Session & Record<string, any>;
                user: better_auth_types.User & Record<string, any>;
            };
            error: null;
        } | {
            data: null;
            error: {
                code?: string | undefined;
                message?: string | undefined;
                status: number;
                statusText: string;
            };
        }, Error, better_auth_dist_shared_better_auth_CYegVoq1.P<{
            sessionToken: string;
        } & {
            fetchOptions?: {
                method?: string | undefined;
                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 | undefined;
                credentials?: RequestCredentials | undefined;
                integrity?: string | undefined;
                keepalive?: boolean | undefined;
                mode?: RequestMode | undefined;
                priority?: RequestPriority | undefined;
                redirect?: RequestRedirect | undefined;
                referrer?: string | undefined;
                referrerPolicy?: ReferrerPolicy | undefined;
                signal?: (AbortSignal | null) | undefined;
                window?: null | undefined;
                onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
                onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
                onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
                onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
                onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
                hookOptions?: {
                    cloneResponse?: boolean;
                } | undefined;
                timeout?: number | undefined;
                customFetchImpl?: better_auth_react.FetchEsque | undefined;
                plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
                baseURL?: string | undefined;
                throw?: boolean | undefined;
                auth?: ({
                    type: "Bearer";
                    token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<string, any>) | undefined;
                query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
                params?: Record<string, any> | undefined;
                duplex?: "full" | "half" | undefined;
                jsonParser?: ((text: string) => Promise<any> | any) | undefined;
                retry?: better_auth_react.RetryOptions | undefined;
                retryAttempt?: number | undefined;
                output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
                errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
                disableValidation?: boolean | undefined;
            } | undefined;
        }>, unknown>;
        reset: () => void;
        context: unknown;
        failureCount: number;
        failureReason: Error | null;
        isPaused: boolean;
        submittedAt: number;
        mutateAsync: _tanstack_react_query.UseMutateAsyncFunction<{
            data: {
                session: better_auth_types.Session & Record<string, any>;
                user: better_auth_types.User & Record<string, any>;
            };
            error: null;
        } | {
            data: null;
            error: {
                code?: string | undefined;
                message?: string | undefined;
                status: number;
                statusText: string;
            };
        }, Error, better_auth_dist_shared_better_auth_CYegVoq1.P<{
            sessionToken: string;
        } & {
            fetchOptions?: {
                method?: string | undefined;
                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 | undefined;
                credentials?: RequestCredentials | undefined;
                integrity?: string | undefined;
                keepalive?: boolean | undefined;
                mode?: RequestMode | undefined;
                priority?: RequestPriority | undefined;
                redirect?: RequestRedirect | undefined;
                referrer?: string | undefined;
                referrerPolicy?: ReferrerPolicy | undefined;
                signal?: (AbortSignal | null) | undefined;
                window?: null | undefined;
                onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
                onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
                onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
                onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
                onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
                hookOptions?: {
                    cloneResponse?: boolean;
                } | undefined;
                timeout?: number | undefined;
                customFetchImpl?: better_auth_react.FetchEsque | undefined;
                plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
                baseURL?: string | undefined;
                throw?: boolean | undefined;
                auth?: ({
                    type: "Bearer";
                    token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<string, any>) | undefined;
                query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
                params?: Record<string, any> | undefined;
                duplex?: "full" | "half" | undefined;
                jsonParser?: ((text: string) => Promise<any> | any) | undefined;
                retry?: better_auth_react.RetryOptions | undefined;
                retryAttempt?: number | undefined;
                output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
                errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
                disableValidation?: boolean | undefined;
            } | undefined;
        }>, unknown>;
    } | {
        setActiveSession: _tanstack_react_query.UseMutateFunction<{
            data: {
                session: better_auth_types.Session & Record<string, any>;
                user: better_auth_types.User & Record<string, any>;
            };
            error: null;
        } | {
            data: null;
            error: {
                code?: string | undefined;
                message?: string | undefined;
                status: number;
                statusText: string;
            };
        }, Error, better_auth_dist_shared_better_auth_CYegVoq1.P<{
            sessionToken: string;
        } & {
            fetchOptions?: {
                method?: string | undefined;
                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 | undefined;
                credentials?: RequestCredentials | undefined;
                integrity?: string | undefined;
                keepalive?: boolean | undefined;
                mode?: RequestMode | undefined;
                priority?: RequestPriority | undefined;
                redirect?: RequestRedirect | undefined;
                referrer?: string | undefined;
                referrerPolicy?: ReferrerPolicy | undefined;
                signal?: (AbortSignal | null) | undefined;
                window?: null | undefined;
                onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
                onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
                onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
                onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
                onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
                hookOptions?: {
                    cloneResponse?: boolean;
                } | undefined;
                timeout?: number | undefined;
                customFetchImpl?: better_auth_react.FetchEsque | undefined;
                plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
                baseURL?: string | undefined;
                throw?: boolean | undefined;
                auth?: ({
                    type: "Bearer";
                    token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<string, any>) | undefined;
                query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
                params?: Record<string, any> | undefined;
                duplex?: "full" | "half" | undefined;
                jsonParser?: ((text: string) => Promise<any> | any) | undefined;
                retry?: better_auth_react.RetryOptions | undefined;
                retryAttempt?: number | undefined;
                output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
                errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
                disableValidation?: boolean | undefined;
            } | undefined;
        }>, unknown>;
        setActiveSessionAsync: _tanstack_react_query.UseMutateAsyncFunction<{
            data: {
                session: better_auth_types.Session & Record<string, any>;
                user: better_auth_types.User & Record<string, any>;
            };
            error: null;
        } | {
            data: null;
            error: {
                code?: string | undefined;
                message?: string | undefined;
                status: number;
                statusText: string;
            };
        }, Error, better_auth_dist_shared_better_auth_CYegVoq1.P<{
            sessionToken: string;
        } & {
            fetchOptions?: {
                method?: string | undefined;
                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 | undefined;
                credentials?: RequestCredentials | undefined;
                integrity?: string | undefined;
                keepalive?: boolean | undefined;
                mode?: RequestMode | undefined;
                priority?: RequestPriority | undefined;
                redirect?: RequestRedirect | undefined;
                referrer?: string | undefined;
                referrerPolicy?: ReferrerPolicy | undefined;
                signal?: (AbortSignal | null) | undefined;
                window?: null | undefined;
                onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
                onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
                onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
                onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
                onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
                hookOptions?: {
                    cloneResponse?: boolean;
                } | undefined;
                timeout?: number | undefined;
                customFetchImpl?: better_auth_react.FetchEsque | undefined;
                plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
                baseURL?: string | undefined;
                throw?: boolean | undefined;
                auth?: ({
                    type: "Bearer";
                    token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<string, any>) | undefined;
                query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
                params?: Record<string, any> | undefined;
                duplex?: "full" | "half" | undefined;
                jsonParser?: ((text: string) => Promise<any> | any) | undefined;
                retry?: better_auth_react.RetryOptions | undefined;
                retryAttempt?: number | undefined;
                output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
                errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
                disableValidation?: boolean | undefined;
            } | undefined;
        }>, unknown>;
        setActiveSessionPending: boolean;
        setActiveSessionError: Error | null;
        data: undefined;
        error: Error;
        variables: better_auth_dist_shared_better_auth_CYegVoq1.P<{
            sessionToken: string;
        } & {
            fetchOptions?: {
                method?: string | undefined;
                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 | undefined;
                credentials?: RequestCredentials | undefined;
                integrity?: string | undefined;
                keepalive?: boolean | undefined;
                mode?: RequestMode | undefined;
                priority?: RequestPriority | undefined;
                redirect?: RequestRedirect | undefined;
                referrer?: string | undefined;
                referrerPolicy?: ReferrerPolicy | undefined;
                signal?: (AbortSignal | null) | undefined;
                window?: null | undefined;
                onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
                onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
                onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
                onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
                onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
                hookOptions?: {
                    cloneResponse?: boolean;
                } | undefined;
                timeout?: number | undefined;
                customFetchImpl?: better_auth_react.FetchEsque | undefined;
                plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
                baseURL?: string | undefined;
                throw?: boolean | undefined;
                auth?: ({
                    type: "Bearer";
                    token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<string, any>) | undefined;
                query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
                params?: Record<string, any> | undefined;
                duplex?: "full" | "half" | undefined;
                jsonParser?: ((text: string) => Promise<any> | any) | undefined;
                retry?: better_auth_react.RetryOptions | undefined;
                retryAttempt?: number | undefined;
                output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
                errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
                disableValidation?: boolean | undefined;
            } | undefined;
        }>;
        isError: true;
        isIdle: false;
        isPending: false;
        isSuccess: false;
        status: "error";
        mutate: _tanstack_react_query.UseMutateFunction<{
            data: {
                session: better_auth_types.Session & Record<string, any>;
                user: better_auth_types.User & Record<string, any>;
            };
            error: null;
        } | {
            data: null;
            error: {
                code?: string | undefined;
                message?: string | undefined;
                status: number;
                statusText: string;
            };
        }, Error, better_auth_dist_shared_better_auth_CYegVoq1.P<{
            sessionToken: string;
        } & {
            fetchOptions?: {
                method?: string | undefined;
                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 | undefined;
                credentials?: RequestCredentials | undefined;
                integrity?: string | undefined;
                keepalive?: boolean | undefined;
                mode?: RequestMode | undefined;
                priority?: RequestPriority | undefined;
                redirect?: RequestRedirect | undefined;
                referrer?: string | undefined;
                referrerPolicy?: ReferrerPolicy | undefined;
                signal?: (AbortSignal | null) | undefined;
                window?: null | undefined;
                onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
                onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
                onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
                onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
                onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
                hookOptions?: {
                    cloneResponse?: boolean;
                } | undefined;
                timeout?: number | undefined;
                customFetchImpl?: better_auth_react.FetchEsque | undefined;
                plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
                baseURL?: string | undefined;
                throw?: boolean | undefined;
                auth?: ({
                    type: "Bearer";
                    token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<string, any>) | undefined;
                query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
                params?: Record<string, any> | undefined;
                duplex?: "full" | "half" | undefined;
                jsonParser?: ((text: string) => Promise<any> | any) | undefined;
                retry?: better_auth_react.RetryOptions | undefined;
                retryAttempt?: number | undefined;
                output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
                errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
                disableValidation?: boolean | undefined;
            } | undefined;
        }>, unknown>;
        reset: () => void;
        context: unknown;
        failureCount: number;
        failureReason: Error | null;
        isPaused: boolean;
        submittedAt: number;
        mutateAsync: _tanstack_react_query.UseMutateAsyncFunction<{
            data: {
                session: better_auth_types.Session & Record<string, any>;
                user: better_auth_types.User & Record<string, any>;
            };
            error: null;
        } | {
            data: null;
            error: {
                code?: string | undefined;
                message?: string | undefined;
                status: number;
                statusText: string;
            };
        }, Error, better_auth_dist_shared_better_auth_CYegVoq1.P<{
            sessionToken: string;
        } & {
            fetchOptions?: {
                method?: string | undefined;
                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 | undefined;
                credentials?: RequestCredentials | undefined;
                integrity?: string | undefined;
                keepalive?: boolean | undefined;
                mode?: RequestMode | undefined;
                priority?: RequestPriority | undefined;
                redirect?: RequestRedirect | undefined;
                referrer?: string | undefined;
                referrerPolicy?: ReferrerPolicy | undefined;
                signal?: (AbortSignal | null) | undefined;
                window?: null | undefined;
                onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
                onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
                onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
                onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
                onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
                hookOptions?: {
                    cloneResponse?: boolean;
                } | undefined;
                timeout?: number | undefined;
                customFetchImpl?: better_auth_react.FetchEsque | undefined;
                plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
                baseURL?: string | undefined;
                throw?: boolean | undefined;
                auth?: ({
                    type: "Bearer";
                    token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<string, any>) | undefined;
                query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
                params?: Record<string, any> | undefined;
                duplex?: "full" | "half" | undefined;
                jsonParser?: ((text: string) => Promise<any> | any) | undefined;
                retry?: better_auth_react.RetryOptions | undefined;
                retryAttempt?: number | undefined;
                output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
                errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
                disableValidation?: boolean | undefined;
            } | undefined;
        }>, unknown>;
    } | {
        setActiveSession: _tanstack_react_query.UseMutateFunction<{
            data: {
                session: better_auth_types.Session & Record<string, any>;
                user: better_auth_types.User & Record<string, any>;
            };
            error: null;
        } | {
            data: null;
            error: {
                code?: string | undefined;
                message?: string | undefined;
                status: number;
                statusText: string;
            };
        }, Error, better_auth_dist_shared_better_auth_CYegVoq1.P<{
            sessionToken: string;
        } & {
            fetchOptions?: {
                method?: string | undefined;
                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 | undefined;
                credentials?: RequestCredentials | undefined;
                integrity?: string | undefined;
                keepalive?: boolean | undefined;
                mode?: RequestMode | undefined;
                priority?: RequestPriority | undefined;
                redirect?: RequestRedirect | undefined;
                referrer?: string | undefined;
                referrerPolicy?: ReferrerPolicy | undefined;
                signal?: (AbortSignal | null) | undefined;
                window?: null | undefined;
                onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
                onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
                onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
                onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
                onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
                hookOptions?: {
                    cloneResponse?: boolean;
                } | undefined;
                timeout?: number | undefined;
                customFetchImpl?: better_auth_react.FetchEsque | undefined;
                plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
                baseURL?: string | undefined;
                throw?: boolean | undefined;
                auth?: ({
                    type: "Bearer";
                    token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<string, any>) | undefined;
                query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
                params?: Record<string, any> | undefined;
                duplex?: "full" | "half" | undefined;
                jsonParser?: ((text: string) => Promise<any> | any) | undefined;
                retry?: better_auth_react.RetryOptions | undefined;
                retryAttempt?: number | undefined;
                output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
                errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
                disableValidation?: boolean | undefined;
            } | undefined;
        }>, unknown>;
        setActiveSessionAsync: _tanstack_react_query.UseMutateAsyncFunction<{
            data: {
                session: better_auth_types.Session & Record<string, any>;
                user: better_auth_types.User & Record<string, any>;
            };
            error: null;
        } | {
            data: null;
            error: {
                code?: string | undefined;
                message?: string | undefined;
                status: number;
                statusText: string;
            };
        }, Error, better_auth_dist_shared_better_auth_CYegVoq1.P<{
            sessionToken: string;
        } & {
            fetchOptions?: {
                method?: string | undefined;
                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 | undefined;
                credentials?: RequestCredentials | undefined;
                integrity?: string | undefined;
                keepalive?: boolean | undefined;
                mode?: RequestMode | undefined;
                priority?: RequestPriority | undefined;
                redirect?: RequestRedirect | undefined;
                referrer?: string | undefined;
                referrerPolicy?: ReferrerPolicy | undefined;
                signal?: (AbortSignal | null) | undefined;
                window?: null | undefined;
                onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
                onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
                onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
                onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
                onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
                hookOptions?: {
                    cloneResponse?: boolean;
                } | undefined;
                timeout?: number | undefined;
                customFetchImpl?: better_auth_react.FetchEsque | undefined;
                plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
                baseURL?: string | undefined;
                throw?: boolean | undefined;
                auth?: ({
                    type: "Bearer";
                    token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<string, any>) | undefined;
                query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
                params?: Record<string, any> | undefined;
                duplex?: "full" | "half" | undefined;
                jsonParser?: ((text: string) => Promise<any> | any) | undefined;
                retry?: better_auth_react.RetryOptions | undefined;
                retryAttempt?: number | undefined;
                output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
                errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
                disableValidation?: boolean | undefined;
            } | undefined;
        }>, unknown>;
        setActiveSessionPending: boolean;
        setActiveSessionError: Error | null;
        data: {
            data: {
                session: better_auth_types.Session & Record<string, any>;
                user: better_auth_types.User & Record<string, any>;
            };
            error: null;
        } | {
            data: null;
            error: {
                code?: string | undefined;
                message?: string | undefined;
                status: number;
                statusText: string;
            };
        };
        error: null;
        variables: better_auth_dist_shared_better_auth_CYegVoq1.P<{
            sessionToken: string;
        } & {
            fetchOptions?: {
                method?: string | undefined;
                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 | undefined;
                credentials?: RequestCredentials | undefined;
                integrity?: string | undefined;
                keepalive?: boolean | undefined;
                mode?: RequestMode | undefined;
                priority?: RequestPriority | undefined;
                redirect?: RequestRedirect | undefined;
                referrer?: string | undefined;
                referrerPolicy?: ReferrerPolicy | undefined;
                signal?: (AbortSignal | null) | undefined;
                window?: null | undefined;
                onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
                onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
                onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
                onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
                onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
                hookOptions?: {
                    cloneResponse?: boolean;
                } | undefined;
                timeout?: number | undefined;
                customFetchImpl?: better_auth_react.FetchEsque | undefined;
                plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
                baseURL?: string | undefined;
                throw?: boolean | undefined;
                auth?: ({
                    type: "Bearer";
                    token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<string, any>) | undefined;
                query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
                params?: Record<string, any> | undefined;
                duplex?: "full" | "half" | undefined;
                jsonParser?: ((text: string) => Promise<any> | any) | undefined;
                retry?: better_auth_react.RetryOptions | undefined;
                retryAttempt?: number | undefined;
                output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
                errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
                disableValidation?: boolean | undefined;
            } | undefined;
        }>;
        isError: false;
        isIdle: false;
        isPending: false;
        isSuccess: true;
        status: "success";
        mutate: _tanstack_react_query.UseMutateFunction<{
            data: {
                session: better_auth_types.Session & Record<string, any>;
                user: better_auth_types.User & Record<string, any>;
            };
            error: null;
        } | {
            data: null;
            error: {
                code?: string | undefined;
                message?: string | undefined;
                status: number;
                statusText: string;
            };
        }, Error, better_auth_dist_shared_better_auth_CYegVoq1.P<{
            sessionToken: string;
        } & {
            fetchOptions?: {
                method?: string | undefined;
                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 | undefined;
                credentials?: RequestCredentials | undefined;
                integrity?: string | undefined;
                keepalive?: boolean | undefined;
                mode?: RequestMode | undefined;
                priority?: RequestPriority | undefined;
                redirect?: RequestRedirect | undefined;
                referrer?: string | undefined;
                referrerPolicy?: ReferrerPolicy | undefined;
                signal?: (AbortSignal | null) | undefined;
                window?: null | undefined;
                onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
                onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
                onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
                onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
                onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
                hookOptions?: {
                    cloneResponse?: boolean;
                } | undefined;
                timeout?: number | undefined;
                customFetchImpl?: better_auth_react.FetchEsque | undefined;
                plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
                baseURL?: string | undefined;
                throw?: boolean | undefined;
                auth?: ({
                    type: "Bearer";
                    token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<string, any>) | undefined;
                query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
                params?: Record<string, any> | undefined;
                duplex?: "full" | "half" | undefined;
                jsonParser?: ((text: string) => Promise<any> | any) | undefined;
                retry?: better_auth_react.RetryOptions | undefined;
                retryAttempt?: number | undefined;
                output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
                errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
                disableValidation?: boolean | undefined;
            } | undefined;
        }>, unknown>;
        reset: () => void;
        context: unknown;
        failureCount: number;
        failureReason: Error | null;
        isPaused: boolean;
        submittedAt: number;
        mutateAsync: _tanstack_react_query.UseMutateAsyncFunction<{
            data: {
                session: better_auth_types.Session & Record<string, any>;
                user: better_auth_types.User & Record<string, any>;
            };
            error: null;
        } | {
            data: null;
            error: {
                code?: string | undefined;
                message?: string | undefined;
                status: number;
                statusText: string;
            };
        }, Error, better_auth_dist_shared_better_auth_CYegVoq1.P<{
            sessionToken: string;
        } & {
            fetchOptions?: {
                method?: string | undefined;
                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 | undefined;
                credentials?: RequestCredentials | undefined;
                integrity?: string | undefined;
                keepalive?: boolean | undefined;
                mode?: RequestMode | undefined;
                priority?: RequestPriority | undefined;
                redirect?: RequestRedirect | undefined;
                referrer?: string | undefined;
                referrerPolicy?: ReferrerPolicy | undefined;
                signal?: (AbortSignal | null) | undefined;
                window?: null | undefined;
                onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
                onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
                onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
                onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
                onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
                hookOptions?: {
                    cloneResponse?: boolean;
                } | undefined;
                timeout?: number | undefined;
                customFetchImpl?: better_auth_react.FetchEsque | undefined;
                plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
                baseURL?: string | undefined;
                throw?: boolean | undefined;
                auth?: ({
                    type: "Bearer";
                    token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<string, any>) | undefined;
                query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
                params?: Record<string, any> | undefined;
                duplex?: "full" | "half" | undefined;
                jsonParser?: ((text: string) => Promise<any> | any) | undefined;
                retry?: better_auth_react.RetryOptions | undefined;
                retryAttempt?: number | undefined;
                output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
                errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
                disableValidation?: boolean | undefined;
            } | undefined;
        }>, unknown>;
    };
    useListPasskeys: (options?: Partial<AnyUseQueryOptions>) => _tanstack_react_query.UseQueryResult<better_auth_plugins_passkey.Passkey[], Error>;
    useDeletePasskey: (options?: Partial<AuthQueryOptions>) => {
        mutate: _tanstack_react_query.UseMutateFunction<NonThrowableResult | ThrowableResult, Error, better_auth_dist_shared_better_auth_CYegVoq1.P<{
            id: string;
        } & {
            fetchOptions?: {
                method?: string | undefined;
                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 | undefined;
                credentials?: RequestCredentials | undefined;
                integrity?: string | undefined;
                keepalive?: boolean | undefined;
                mode?: RequestMode | undefined;
                priority?: RequestPriority | undefined;
                redirect?: RequestRedirect | undefined;
                referrer?: string | undefined;
                referrerPolicy?: ReferrerPolicy | undefined;
                signal?: (AbortSignal | null) | undefined;
                window?: null | undefined;
                onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
                onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
                onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
                onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
                onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
                hookOptions?: {
                    cloneResponse?: boolean;
                } | undefined;
                timeout?: number | undefined;
                customFetchImpl?: better_auth_react.FetchEsque | undefined;
                plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
                baseURL?: string | undefined;
                throw?: boolean | undefined;
                auth?: ({
                    type: "Bearer";
                    token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<{
                    id: string;
                }> & Record<string, any>) | undefined;
                query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
                params?: Record<string, any> | undefined;
                duplex?: "full" | "half" | undefined;
                jsonParser?: ((text: string) => Promise<any> | any) | undefined;
                retry?: better_auth_react.RetryOptions | undefined;
                retryAttempt?: number | undefined;
                output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
                errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
                disableValidation?: boolean | undefined;
            } | undefined;
        }>, {
            previousData: {};
        }>;
        mutateAsync: {
            (params: Omit<better_auth_dist_shared_better_auth_CYegVoq1.P<{
                id: string;
            } & {
                fetchOptions?: {
                    method?: string | undefined;
                    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 | undefined;
                    credentials?: RequestCredentials | undefined;
                    integrity?: string | undefined;
                    keepalive?: boolean | undefined;
                    mode?: RequestMode | undefined;
                    priority?: RequestPriority | undefined;
                    redirect?: RequestRedirect | undefined;
                    referrer?: string | undefined;
                    referrerPolicy?: ReferrerPolicy | undefined;
                    signal?: (AbortSignal | null) | undefined;
                    window?: null | undefined;
                    onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
                    onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
                    onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
                    onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
                    onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
                    hookOptions?: {
                        cloneResponse?: boolean;
                    } | undefined;
                    timeout?: number | undefined;
                    customFetchImpl?: better_auth_react.FetchEsque | undefined;
                    plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
                    baseURL?: string | undefined;
                    throw?: boolean | undefined;
                    auth?: ({
                        type: "Bearer";
                        token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<{
                        id: string;
                    }> & Record<string, any>) | undefined;
                    query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
                    params?: Record<string, any> | undefined;
                    duplex?: "full" | "half" | undefined;
                    jsonParser?: ((text: string) => Promise<any> | any) | undefined;
                    retry?: better_auth_react.RetryOptions | undefined;
                    retryAttempt?: number | undefined;
                    output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
                    errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
                    disableValidation?: boolean | undefined;
                } | undefined;
            }>, "fetchOptions"> & {
                fetchOptions?: {
                    throw?: true;
                } | undefined;
            }): Promise<ThrowableResult>;
            (params: Omit<better_auth_dist_shared_better_auth_CYegVoq1.P<{
                id: string;
            } & {
                fetchOptions?: {
                    method?: string | undefined;
                    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 | undefined;
                    credentials?: RequestCredentials | undefined;
                    integrity?: string | undefined;
                    keepalive?: boolean | undefined;
                    mode?: RequestMode | undefined;
                    priority?: RequestPriority | undefined;
                    redirect?: RequestRedirect | undefined;
                    referrer?: string | undefined;
                    referrerPolicy?: ReferrerPolicy | undefined;
                    signal?: (AbortSignal | null) | undefined;
                    window?: null | undefined;
                    onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
                    onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
                    onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
                    onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
                    onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
                    hookOptions?: {
                        cloneResponse?: boolean;
                    } | undefined;
                    timeout?: number | undefined;
                    customFetchImpl?: better_auth_react.FetchEsque | undefined;
                    plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
                    baseURL?: string | undefined;
                    throw?: boolean | undefined;
                    auth?: ({
                        type: "Bearer";
                        token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<{
                        id: string;
                    }> & Record<string, any>) | undefined;
                    query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
                    params?: Record<string, any> | undefined;
                    duplex?: "full" | "half" | undefined;
                    jsonParser?: ((text: string) => Promise<any> | any) | undefined;
                    retry?: better_auth_react.RetryOptions | undefined;
                    retryAttempt?: number | undefined;
                    output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
                    errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
                    disableValidation?: boolean | undefined;
                } | undefined;
            }>, "fetchOptions"> & {
                fetchOptions?: better_auth_react.BetterFetchOption;
            }): Promise<NonThrowableResult>;
        };
        isPending: boolean;
        error: Error | null;
        data: undefined;
        variables: undefined;
        isError: false;
        isIdle: true;
        isSuccess: false;
        status: "idle";
        reset: () => void;
        context: {
            previousData: {};
        } | undefined;
        failureCount: number;
        failureReason: Error | null;
        isPaused: boolean;
        submittedAt: number;
    } | {
        mutate: _tanstack_react_query.UseMutateFunction<NonThrowableResult | ThrowableResult, Error, better_auth_dist_shared_better_auth_CYegVoq1.P<{
            id: string;
        } & {
            fetchOptions?: {
                method?: string | undefined;
                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 | undefined;
                credentials?: RequestCredentials | undefined;
                integrity?: string | undefined;
                keepalive?: boolean | undefined;
                mode?: RequestMode | undefined;
                priority?: RequestPriority | undefined;
                redirect?: RequestRedirect | undefined;
                referrer?: string | undefined;
                referrerPolicy?: ReferrerPolicy | undefined;
                signal?: (AbortSignal | null) | undefined;
                window?: null | undefined;
                onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
                onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
                onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
                onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
                onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
                hookOptions?: {
                    cloneResponse?: boolean;
                } | undefined;
                timeout?: number | undefined;
                customFetchImpl?: better_auth_react.FetchEsque | undefined;
                plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
                baseURL?: string | undefined;
                throw?: boolean | undefined;
                auth?: ({
                    type: "Bearer";
                    token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<{
                    id: string;
                }> & Record<string, any>) | undefined;
                query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
                params?: Record<string, any> | undefined;
                duplex?: "full" | "half" | undefined;
                jsonParser?: ((text: string) => Promise<any> | any) | undefined;
                retry?: better_auth_react.RetryOptions | undefined;
                retryAttempt?: number | undefined;
                output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
                errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
                disableValidation?: boolean | undefined;
            } | undefined;
        }>, {
            previousData: {};
        }>;
        mutateAsync: {
            (params: Omit<better_auth_dist_shared_better_auth_CYegVoq1.P<{
                id: string;
            } & {
                fetchOptions?: {
                    method?: string | undefined;
                    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 | undefined;
                    credentials?: RequestCredentials | undefined;
                    integrity?: string | undefined;
                    keepalive?: boolean | undefined;
                    mode?: RequestMode | undefined;
                    priority?: RequestPriority | undefined;
                    redirect?: RequestRedirect | undefined;
                    referrer?: string | undefined;
                    referrerPolicy?: ReferrerPolicy | undefined;
                    signal?: (AbortSignal | null) | undefined;
                    window?: null | undefined;
                    onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
                    onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
                    onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
                    onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
                    onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
                    hookOptions?: {
                        cloneResponse?: boolean;
                    } | undefined;
                    timeout?: number | undefined;
                    customFetchImpl?: better_auth_react.FetchEsque | undefined;
                    plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
                    baseURL?: string | undefined;
                    throw?: boolean | undefined;
                    auth?: ({
                        type: "Bearer";
                        token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<{
                        id: string;
                    }> & Record<string, any>) | undefined;
                    query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
                    params?: Record<string, any> | undefined;
                    duplex?: "full" | "half" | undefined;
                    jsonParser?: ((text: string) => Promise<any> | any) | undefined;
                    retry?: better_auth_react.RetryOptions | undefined;
                    retryAttempt?: number | undefined;
                    output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
                    errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
                    disableValidation?: boolean | undefined;
                } | undefined;
            }>, "fetchOptions"> & {
                fetchOptions?: {
                    throw?: true;
                } | undefined;
            }): Promise<ThrowableResult>;
            (params: Omit<better_auth_dist_shared_better_auth_CYegVoq1.P<{
                id: string;
            } & {
                fetchOptions?: {
                    method?: string | undefined;
                    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 | undefined;
                    credentials?: RequestCredentials | undefined;
                    integrity?: string | undefined;
                    keepalive?: boolean | undefined;
                    mode?: RequestMode | undefined;
                    priority?: RequestPriority | undefined;
                    redirect?: RequestRedirect | undefined;
                    referrer?: string | undefined;
                    referrerPolicy?: ReferrerPolicy | undefined;
                    signal?: (AbortSignal | null) | undefined;
                    window?: null | undefined;
                    onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
                    onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
                    onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
                    onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
                    onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
                    hookOptions?: {
                        cloneResponse?: boolean;
                    } | undefined;
                    timeout?: number | undefined;
                    customFetchImpl?: better_auth_react.FetchEsque | undefined;
                    plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
                    baseURL?: string | undefined;
                    throw?: boolean | undefined;
                    auth?: ({
                        type: "Bearer";
                        token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<{
                        id: string;
                    }> & Record<string, any>) | undefined;
                    query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
                    params?: Record<string, any> | undefined;
                    duplex?: "full" | "half" | undefined;
                    jsonParser?: ((text: string) => Promise<any> | any) | undefined;
                    retry?: better_auth_react.RetryOptions | undefined;
                    retryAttempt?: number | undefined;
                    output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
                    errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
                    disableValidation?: boolean | undefined;
                } | undefined;
            }>, "fetchOptions"> & {
                fetchOptions?: better_auth_react.BetterFetchOption;
            }): Promise<NonThrowableResult>;
        };
        isPending: boolean;
        error: Error | null;
        data: undefined;
        variables: better_auth_dist_shared_better_auth_CYegVoq1.P<{
            id: string;
        } & {
            fetchOptions?: {
                method?: string | undefined;
                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 | undefined;
                credentials?: RequestCredentials | undefined;
                integrity?: string | undefined;
                keepalive?: boolean | undefined;
                mode?: RequestMode | undefined;
                priority?: RequestPriority | undefined;
                redirect?: RequestRedirect | undefined;
                referrer?: string | undefined;
                referrerPolicy?: ReferrerPolicy | undefined;
                signal?: (AbortSignal | null) | undefined;
                window?: null | undefined;
                onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
                onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
                onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
                onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
                onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
                hookOptions?: {
                    cloneResponse?: boolean;
                } | undefined;
                timeout?: number | undefined;
                customFetchImpl?: better_auth_react.FetchEsque | undefined;
                plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
                baseURL?: string | undefined;
                throw?: boolean | undefined;
                auth?: ({
                    type: "Bearer";
                    token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<{
                    id: string;
                }> & Record<string, any>) | undefined;
                query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
                params?: Record<string, any> | undefined;
                duplex?: "full" | "half" | undefined;
                jsonParser?: ((text: string) => Promise<any> | any) | undefined;
                retry?: better_auth_react.RetryOptions | undefined;
                retryAttempt?: number | undefined;
                output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
                errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
                disableValidation?: boolean | undefined;
            } | undefined;
        }>;
        isError: false;
        isIdle: false;
        isSuccess: false;
        status: "pending";
        reset: () => void;
        context: {
            previousData: {};
        } | undefined;
        failureCount: number;
        failureReason: Error | null;
        isPaused: boolean;
        submittedAt: number;
    } | {
        mutate: _tanstack_react_query.UseMutateFunction<NonThrowableResult | ThrowableResult, Error, better_auth_dist_shared_better_auth_CYegVoq1.P<{
            id: string;
        } & {
            fetchOptions?: {
                method?: string | undefined;
                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 | undefined;
                credentials?: RequestCredentials | undefined;
                integrity?: string | undefined;
                keepalive?: boolean | undefined;
                mode?: RequestMode | undefined;
                priority?: RequestPriority | undefined;
                redirect?: RequestRedirect | undefined;
                referrer?: string | undefined;
                referrerPolicy?: ReferrerPolicy | undefined;
                signal?: (AbortSignal | null) | undefined;
                window?: null | undefined;
                onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
                onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
                onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
                onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
                onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
                hookOptions?: {
                    cloneResponse?: boolean;
                } | undefined;
                timeout?: number | undefined;
                customFetchImpl?: better_auth_react.FetchEsque | undefined;
                plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
                baseURL?: string | undefined;
                throw?: boolean | undefined;
                auth?: ({
                    type: "Bearer";
                    token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<{
                    id: string;
                }> & Record<string, any>) | undefined;
                query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
                params?: Record<string, any> | undefined;
                duplex?: "full" | "half" | undefined;
                jsonParser?: ((text: string) => Promise<any> | any) | undefined;
                retry?: better_auth_react.RetryOptions | undefined;
                retryAttempt?: number | undefined;
                output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
                errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
                disableValidation?: boolean | undefined;
            } | undefined;
        }>, {
            previousData: {};
        }>;
        mutateAsync: {
            (params: Omit<better_auth_dist_shared_better_auth_CYegVoq1.P<{
                id: string;
            } & {
                fetchOptions?: {
                    method?: string | undefined;
                    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 | undefined;
                    credentials?: RequestCredentials | undefined;
                    integrity?: string | undefined;
                    keepalive?: boolean | undefined;
                    mode?: RequestMode | undefined;
                    priority?: RequestPriority | undefined;
                    redirect?: RequestRedirect | undefined;
                    referrer?: string | undefined;
                    referrerPolicy?: ReferrerPolicy | undefined;
                    signal?: (AbortSignal | null) | undefined;
                    window?: null | undefined;
                    onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
                    onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
                    onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
                    onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
                    onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
                    hookOptions?: {
                        cloneResponse?: boolean;
                    } | undefined;
                    timeout?: number | undefined;
                    customFetchImpl?: better_auth_react.FetchEsque | undefined;
                    plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
                    baseURL?: string | undefined;
                    throw?: boolean | undefined;
                    auth?: ({
                        type: "Bearer";
                        token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<{
                        id: string;
                    }> & Record<string, any>) | undefined;
                    query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
                    params?: Record<string, any> | undefined;
                    duplex?: "full" | "half" | undefined;
                    jsonParser?: ((text: string) => Promise<any> | any) | undefined;
                    retry?: better_auth_react.RetryOptions | undefined;
                    retryAttempt?: number | undefined;
                    output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
                    errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
                    disableValidation?: boolean | undefined;
                } | undefined;
            }>, "fetchOptions"> & {
                fetchOptions?: {
                    throw?: true;
                } | undefined;
            }): Promise<ThrowableResult>;
            (params: Omit<better_auth_dist_shared_better_auth_CYegVoq1.P<{
                id: string;
            } & {
                fetchOptions?: {
                    method?: string | undefined;
                    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 | undefined;
                    credentials?: RequestCredentials | undefined;
                    integrity?: string | undefined;
                    keepalive?: boolean | undefined;
                    mode?: RequestMode | undefined;
                    priority?: RequestPriority | undefined;
                    redirect?: RequestRedirect | undefined;
                    referrer?: string | undefined;
                    referrerPolicy?: ReferrerPolicy | undefined;
                    signal?: (AbortSignal | null) | undefined;
                    window?: null | undefined;
                    onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
                    onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
                    onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
                    onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
                    onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
                    hookOptions?: {
                        cloneResponse?: boolean;
                    } | undefined;
                    timeout?: number | undefined;
                    customFetchImpl?: better_auth_react.FetchEsque | undefined;
                    plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
                    baseURL?: string | undefined;
                    throw?: boolean | undefined;
                    auth?: ({
                        type: "Bearer";
                        token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<{
                        id: string;
                    }> & Record<string, any>) | undefined;
                    query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
                    params?: Record<string, any> | undefined;
                    duplex?: "full" | "half" | undefined;
                    jsonParser?: ((text: string) => Promise<any> | any) | undefined;
                    retry?: better_auth_react.RetryOptions | undefined;
                    retryAttempt?: number | undefined;
                    output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
                    errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
                    disableValidation?: boolean | undefined;
                } | undefined;
            }>, "fetchOptions"> & {
                fetchOptions?: better_auth_react.BetterFetchOption;
            }): Promise<NonThrowableResult>;
        };
        isPending: boolean;
        error: Error | null;
        data: undefined;
        variables: better_auth_dist_shared_better_auth_CYegVoq1.P<{
            id: string;
        } & {
            fetchOptions?: {
                method?: string | undefined;
                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 | undefined;
                credentials?: RequestCredentials | undefined;
                integrity?: string | undefined;
                keepalive?: boolean | undefined;
                mode?: RequestMode | undefined;
                priority?: RequestPriority | undefined;
                redirect?: RequestRedirect | undefined;
                referrer?: string | undefined;
                referrerPolicy?: ReferrerPolicy | undefined;
                signal?: (AbortSignal | null) | undefined;
                window?: null | undefined;
                onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
                onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
                onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
                onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
                onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
                hookOptions?: {
                    cloneResponse?: boolean;
                } | undefined;
                timeout?: number | undefined;
                customFetchImpl?: better_auth_react.FetchEsque | undefined;
                plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
                baseURL?: string | undefined;
                throw?: boolean | undefined;
                auth?: ({
                    type: "Bearer";
                    token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<{
                    id: string;
                }> & Record<string, any>) | undefined;
                query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
                params?: Record<string, any> | undefined;
                duplex?: "full" | "half" | undefined;
                jsonParser?: ((text: string) => Promise<any> | any) | undefined;
                retry?: better_auth_react.RetryOptions | undefined;
                retryAttempt?: number | undefined;
                output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
                errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
                disableValidation?: boolean | undefined;
            } | undefined;
        }>;
        isError: true;
        isIdle: false;
        isSuccess: false;
        status: "error";
        reset: () => void;
        context: {
            previousData: {};
        } | undefined;
        failureCount: number;
        failureReason: Error | null;
        isPaused: boolean;
        submittedAt: number;
    } | {
        mutate: _tanstack_react_query.UseMutateFunction<NonThrowableResult | ThrowableResult, Error, better_auth_dist_shared_better_auth_CYegVoq1.P<{
            id: string;
        } & {
            fetchOptions?: {
                method?: string | undefined;
                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 | undefined;
                credentials?: RequestCredentials | undefined;
                integrity?: string | undefined;
                keepalive?: boolean | undefined;
                mode?: RequestMode | undefined;
                priority?: RequestPriority | undefined;
                redirect?: RequestRedirect | undefined;
                referrer?: string | undefined;
                referrerPolicy?: ReferrerPolicy | undefined;
                signal?: (AbortSignal | null) | undefined;
                window?: null | undefined;
                onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
                onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
                onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
                onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
                onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
                hookOptions?: {
                    cloneResponse?: boolean;
                } | undefined;
                timeout?: number | undefined;
                customFetchImpl?: better_auth_react.FetchEsque | undefined;
                plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
                baseURL?: string | undefined;
                throw?: boolean | undefined;
                auth?: ({
                    type: "Bearer";
                    token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<{
                    id: string;
                }> & Record<string, any>) | undefined;
                query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
                params?: Record<string, any> | undefined;
                duplex?: "full" | "half" | undefined;
                jsonParser?: ((text: string) => Promise<any> | any) | undefined;
                retry?: better_auth_react.RetryOptions | undefined;
                retryAttempt?: number | undefined;
                output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
                errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
                disableValidation?: boolean | undefined;
            } | undefined;
        }>, {
            previousData: {};
        }>;
        mutateAsync: {
            (params: Omit<better_auth_dist_shared_better_auth_CYegVoq1.P<{
                id: string;
            } & {
                fetchOptions?: {
                    method?: string | undefined;
                    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 | undefined;
                    credentials?: RequestCredentials | undefined;
                    integrity?: string | undefined;
                    keepalive?: boolean | undefined;
                    mode?: RequestMode | undefined;
                    priority?: RequestPriority | undefined;
                    redirect?: RequestRedirect | undefined;
                    referrer?: string | undefined;
                    referrerPolicy?: ReferrerPolicy | undefined;
                    signal?: (AbortSignal | null) | undefined;
                    window?: null | undefined;
                    onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
                    onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
                    onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
                    onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
                    onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
                    hookOptions?: {
                        cloneResponse?: boolean;
                    } | undefined;
                    timeout?: number | undefined;
                    customFetchImpl?: better_auth_react.FetchEsque | undefined;
                    plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
                    baseURL?: string | undefined;
                    throw?: boolean | undefined;
                    auth?: ({
                        type: "Bearer";
                        token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<{
                        id: string;
                    }> & Record<string, any>) | undefined;
                    query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
                    params?: Record<string, any> | undefined;
                    duplex?: "full" | "half" | undefined;
                    jsonParser?: ((text: string) => Promise<any> | any) | undefined;
                    retry?: better_auth_react.RetryOptions | undefined;
                    retryAttempt?: number | undefined;
                    output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
                    errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
                    disableValidation?: boolean | undefined;
                } | undefined;
            }>, "fetchOptions"> & {
                fetchOptions?: {
                    throw?: true;
                } | undefined;
            }): Promise<ThrowableResult>;
            (params: Omit<better_auth_dist_shared_better_auth_CYegVoq1.P<{
                id: string;
            } & {
                fetchOptions?: {
                    method?: string | undefined;
                    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 | undefined;
                    credentials?: RequestCredentials | undefined;
                    integrity?: string | undefined;
                    keepalive?: boolean | undefined;
                    mode?: RequestMode | undefined;
                    priority?: RequestPriority | undefined;
                    redirect?: RequestRedirect | undefined;
                    referrer?: string | undefined;
                    referrerPolicy?: ReferrerPolicy | undefined;
                    signal?: (AbortSignal | null) | undefined;
                    window?: null | undefined;
                    onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
                    onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
                    onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
                    onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
                    onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
                    hookOptions?: {
                        cloneResponse?: boolean;
                    } | undefined;
                    timeout?: number | undefined;
                    customFetchImpl?: better_auth_react.FetchEsque | undefined;
                    plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
                    baseURL?: string | undefined;
                    throw?: boolean | undefined;
                    auth?: ({
                        type: "Bearer";
                        token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<{
                        id: string;
                    }> & Record<string, any>) | undefined;
                    query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
                    params?: Record<string, any> | undefined;
                    duplex?: "full" | "half" | undefined;
                    jsonParser?: ((text: string) => Promise<any> | any) | undefined;
                    retry?: better_auth_react.RetryOptions | undefined;
                    retryAttempt?: number | undefined;
                    output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
                    errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
                    disableValidation?: boolean | undefined;
                } | undefined;
            }>, "fetchOptions"> & {
                fetchOptions?: better_auth_react.BetterFetchOption;
            }): Promise<NonThrowableResult>;
        };
        isPending: boolean;
        error: Error | null;
        data: NonThrowableResult | ThrowableResult;
        variables: better_auth_dist_shared_better_auth_CYegVoq1.P<{
            id: string;
        } & {
            fetchOptions?: {
                method?: string | undefined;
                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 | undefined;
                credentials?: RequestCredentials | undefined;
                integrity?: string | undefined;
                keepalive?: boolean | undefined;
                mode?: RequestMode | undefined;
                priority?: RequestPriority | undefined;
                redirect?: RequestRedirect | undefined;
                referrer?: string | undefined;
                referrerPolicy?: ReferrerPolicy | undefined;
                signal?: (AbortSignal | null) | undefined;
                window?: null | undefined;
                onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
                onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
                onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
                onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
                onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
                hookOptions?: {
                    cloneResponse?: boolean;
                } | undefined;
                timeout?: number | undefined;
                customFetchImpl?: better_auth_react.FetchEsque | undefined;
                plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
                baseURL?: string | undefined;
                throw?: boolean | undefined;
                auth?: ({
                    type: "Bearer";
                    token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<{
                    id: string;
                }> & Record<string, any>) | undefined;
                query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
                params?: Record<string, any> | undefined;
                duplex?: "full" | "half" | undefined;
                jsonParser?: ((text: string) => Promise<any> | any) | undefined;
                retry?: better_auth_react.RetryOptions | undefined;
                retryAttempt?: number | undefined;
                output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
                errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
                disableValidation?: boolean | undefined;
            } | undefined;
        }>;
        isError: false;
        isIdle: false;
        isSuccess: true;
        status: "success";
        reset: () => void;
        context: {
            previousData: {};
        } | undefined;
        failureCount: number;
        failureReason: Error | null;
        isPaused: boolean;
        submittedAt: number;
    };
    useListApiKeys: (options?: Partial<AnyUseQueryOptions>) => _tanstack_react_query.UseQueryResult<{
        permissions: {
            [key: string]: string[];
        } | null;
        id: string;
        name: string | null;
        start: string | null;
        prefix: string | null;
        userId: string;
        refillInterval: number | null;
        refillAmount: number | null;
        lastRefillAt: Date | null;
        enabled: boolean;
        rateLimitEnabled: boolean;
        rateLimitTimeWindow: number | null;
        rateLimitMax: number | null;
        requestCount: number;
        remaining: number | null;
        lastRequest: Date | null;
        expiresAt: Date | null;
        createdAt: Date;
        updatedAt: Date;
        metadata: Record<string, any> | null;
    }[], Error>;
    useCreateApiKey: (options?: Partial<AuthQueryOptions>) => {
        mutate: _tanstack_react_query.UseMutateFunction<NonThrowableResult | ThrowableResult, Error, better_auth_dist_shared_better_auth_CYegVoq1.P<{
            metadata?: any;
            name?: string | undefined;
            userId?: string | undefined;
            prefix?: string | undefined;
            expiresIn?: number | null | undefined;
            permissions?: Record<string, string[]> | undefined;
            rateLimitMax?: number | undefined;
            refillInterval?: number | undefined;
            refillAmount?: number | undefined;
            rateLimitEnabled?: boolean | undefined;
            rateLimitTimeWindow?: number | undefined;
            remaining?: number | null | undefined;
        } & {
            fetchOptions?: {
                method?: string | undefined;
                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 | undefined;
                credentials?: RequestCredentials | undefined;
                integrity?: string | undefined;
                keepalive?: boolean | undefined;
                mode?: RequestMode | undefined;
                priority?: RequestPriority | undefined;
                redirect?: RequestRedirect | undefined;
                referrer?: string | undefined;
                referrerPolicy?: ReferrerPolicy | undefined;
                signal?: (AbortSignal | null) | undefined;
                window?: null | undefined;
                onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
                onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
                onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
                onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
                onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
                hookOptions?: {
                    cloneResponse?: boolean;
                } | undefined;
                timeout?: number | undefined;
                customFetchImpl?: better_auth_react.FetchEsque | undefined;
                plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
                baseURL?: string | undefined;
                throw?: boolean | undefined;
                auth?: ({
                    type: "Bearer";
                    token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<{
                    metadata?: any;
                    name?: string | undefined;
                    userId?: string | undefined;
                    prefix?: string | undefined;
                    expiresIn?: number | null | undefined;
                    permissions?: Record<string, string[]> | undefined;
                    rateLimitMax?: number | undefined;
                    refillInterval?: number | undefined;
                    refillAmount?: number | undefined;
                    rateLimitEnabled?: boolean | undefined;
                    rateLimitTimeWindow?: number | undefined;
                    remaining?: number | null | undefined;
                }> & Record<string, any>) | undefined;
                query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
                params?: Record<string, any> | undefined;
                duplex?: "full" | "half" | undefined;
                jsonParser?: ((text: string) => Promise<any> | any) | undefined;
                retry?: better_auth_react.RetryOptions | undefined;
                retryAttempt?: number | undefined;
                output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
                errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
                disableValidation?: boolean | undefined;
            } | undefined;
        }> | undefined, {
            previousData: {};
        }>;
        mutateAsync: {
            (params: Omit<better_auth_dist_shared_better_auth_CYegVoq1.P<{
                metadata?: any;
                name?: string | undefined;
                userId?: string | undefined;
                prefix?: string | undefined;
                expiresIn?: number | null | undefined;
                permissions?: Record<string, string[]> | undefined;
                rateLimitMax?: number | undefined;
                refillInterval?: number | undefined;
                refillAmount?: number | undefined;
                rateLimitEnabled?: boolean | undefined;
                rateLimitTimeWindow?: number | undefined;
                remaining?: number | null | undefined;
            } & {
                fetchOptions?: {
                    method?: string | undefined;
                    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 | undefined;
                    credentials?: RequestCredentials | undefined;
                    integrity?: string | undefined;
                    keepalive?: boolean | undefined;
                    mode?: RequestMode | undefined;
                    priority?: RequestPriority | undefined;
                    redirect?: RequestRedirect | undefined;
                    referrer?: string | undefined;
                    referrerPolicy?: ReferrerPolicy | undefined;
                    signal?: (AbortSignal | null) | undefined;
                    window?: null | undefined;
                    onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
                    onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
                    onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
                    onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
                    onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
                    hookOptions?: {
                        cloneResponse?: boolean;
                    } | undefined;
                    timeout?: number | undefined;
                    customFetchImpl?: better_auth_react.FetchEsque | undefined;
                    plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
                    baseURL?: string | undefined;
                    throw?: boolean | undefined;
                    auth?: ({
                        type: "Bearer";
                        token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<{
                        metadata?: any;
                        name?: string | undefined;
                        userId?: string | undefined;
                        prefix?: string | undefined;
                        expiresIn?: number | null | undefined;
                        permissions?: Record<string, string[]> | undefined;
                        rateLimitMax?: number | undefined;
                        refillInterval?: number | undefined;
                        refillAmount?: number | undefined;
                        rateLimitEnabled?: boolean | undefined;
                        rateLimitTimeWindow?: number | undefined;
                        remaining?: number | null | undefined;
                    }> & Record<string, any>) | undefined;
                    query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
                    params?: Record<string, any> | undefined;
                    duplex?: "full" | "half" | undefined;
                    jsonParser?: ((text: string) => Promise<any> | any) | undefined;
                    retry?: better_auth_react.RetryOptions | undefined;
                    retryAttempt?: number | undefined;
                    output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
                    errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
                    disableValidation?: boolean | undefined;
                } | undefined;
            }> | undefined, "fetchOptions"> & {
                fetchOptions?: {
                    throw?: true;
                } | undefined;
            }): Promise<ThrowableResult>;
            (params: Omit<better_auth_dist_shared_better_auth_CYegVoq1.P<{
                metadata?: any;
                name?: string | undefined;
                userId?: string | undefined;
                prefix?: string | undefined;
                expiresIn?: number | null | undefined;
                permissions?: Record<string, string[]> | undefined;
                rateLimitMax?: number | undefined;
                refillInterval?: number | undefined;
                refillAmount?: number | undefined;
                rateLimitEnabled?: boolean | undefined;
                rateLimitTimeWindow?: number | undefined;
                remaining?: number | null | undefined;
            } & {
                fetchOptions?: {
                    method?: string | undefined;
                    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 | undefined;
                    credentials?: RequestCredentials | undefined;
                    integrity?: string | undefined;
                    keepalive?: boolean | undefined;
                    mode?: RequestMode | undefined;
                    priority?: RequestPriority | undefined;
                    redirect?: RequestRedirect | undefined;
                    referrer?: string | undefined;
                    referrerPolicy?: ReferrerPolicy | undefined;
                    signal?: (AbortSignal | null) | undefined;
                    window?: null | undefined;
                    onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
                    onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
                    onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
                    onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
                    onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
                    hookOptions?: {
                        cloneResponse?: boolean;
                    } | undefined;
                    timeout?: number | undefined;
                    customFetchImpl?: better_auth_react.FetchEsque | undefined;
                    plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
                    baseURL?: string | undefined;
                    throw?: boolean | undefined;
                    auth?: ({
                        type: "Bearer";
                        token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<{
                        metadata?: any;
                        name?: string | undefined;
                        userId?: string | undefined;
                        prefix?: string | undefined;
                        expiresIn?: number | null | undefined;
                        permissions?: Record<string, string[]> | undefined;
                        rateLimitMax?: number | undefined;
                        refillInterval?: number | undefined;
                        refillAmount?: number | undefined;
                        rateLimitEnabled?: boolean | undefined;
                        rateLimitTimeWindow?: number | undefined;
                        remaining?: number | null | undefined;
                    }> & Record<string, any>) | undefined;
                    query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
                    params?: Record<string, any> | undefined;
                    duplex?: "full" | "half" | undefined;
                    jsonParser?: ((text: string) => Promise<any> | any) | undefined;
                    retry?: better_auth_react.RetryOptions | undefined;
                    retryAttempt?: number | undefined;
                    output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
                    errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
                    disableValidation?: boolean | undefined;
                } | undefined;
            }> | undefined, "fetchOptions"> & {
                fetchOptions?: better_auth_react.BetterFetchOption;
            }): Promise<NonThrowableResult>;
        };
        isPending: boolean;
        error: Error | null;
        data: undefined;
        variables: undefined;
        isError: false;
        isIdle: true;
        isSuccess: false;
        status: "idle";
        reset: () => void;
        context: {
            previousData: {};
        } | undefined;
        failureCount: number;
        failureReason: Error | null;
        isPaused: boolean;
        submittedAt: number;
    } | {
        mutate: _tanstack_react_query.UseMutateFunction<NonThrowableResult | ThrowableResult, Error, better_auth_dist_shared_better_auth_CYegVoq1.P<{
            metadata?: any;
            name?: string | undefined;
            userId?: string | undefined;
            prefix?: string | undefined;
            expiresIn?: number | null | undefined;
            permissions?: Record<string, string[]> | undefined;
            rateLimitMax?: number | undefined;
            refillInterval?: number | undefined;
            refillAmount?: number | undefined;
            rateLimitEnabled?: boolean | undefined;
            rateLimitTimeWindow?: number | undefined;
            remaining?: number | null | undefined;
        } & {
            fetchOptions?: {
                method?: string | undefined;
                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 | undefined;
                credentials?: RequestCredentials | undefined;
                integrity?: string | undefined;
                keepalive?: boolean | undefined;
                mode?: RequestMode | undefined;
                priority?: RequestPriority | undefined;
                redirect?: RequestRedirect | undefined;
                referrer?: string | undefined;
                referrerPolicy?: ReferrerPolicy | undefined;
                signal?: (AbortSignal | null) | undefined;
                window?: null | undefined;
                onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
                onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
                onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
                onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
                onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
                hookOptions?: {
                    cloneResponse?: boolean;
                } | undefined;
                timeout?: number | undefined;
                customFetchImpl?: better_auth_react.FetchEsque | undefined;
                plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
                baseURL?: string | undefined;
                throw?: boolean | undefined;
                auth?: ({
                    type: "Bearer";
                    token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<{
                    metadata?: any;
                    name?: string | undefined;
                    userId?: string | undefined;
                    prefix?: string | undefined;
                    expiresIn?: number | null | undefined;
                    permissions?: Record<string, string[]> | undefined;
                    rateLimitMax?: number | undefined;
                    refillInterval?: number | undefined;
                    refillAmount?: number | undefined;
                    rateLimitEnabled?: boolean | undefined;
                    rateLimitTimeWindow?: number | undefined;
                    remaining?: number | null | undefined;
                }> & Record<string, any>) | undefined;
                query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
                params?: Record<string, any> | undefined;
                duplex?: "full" | "half" | undefined;
                jsonParser?: ((text: string) => Promise<any> | any) | undefined;
                retry?: better_auth_react.RetryOptions | undefined;
                retryAttempt?: number | undefined;
                output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
                errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
                disableValidation?: boolean | undefined;
            } | undefined;
        }> | undefined, {
            previousData: {};
        }>;
        mutateAsync: {
            (params: Omit<better_auth_dist_shared_better_auth_CYegVoq1.P<{
                metadata?: any;
                name?: string | undefined;
                userId?: string | undefined;
                prefix?: string | undefined;
                expiresIn?: number | null | undefined;
                permissions?: Record<string, string[]> | undefined;
                rateLimitMax?: number | undefined;
                refillInterval?: number | undefined;
                refillAmount?: number | undefined;
                rateLimitEnabled?: boolean | undefined;
                rateLimitTimeWindow?: number | undefined;
                remaining?: number | null | undefined;
            } & {
                fetchOptions?: {
                    method?: string | undefined;
                    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 | undefined;
                    credentials?: RequestCredentials | undefined;
                    integrity?: string | undefined;
                    keepalive?: boolean | undefined;
                    mode?: RequestMode | undefined;
                    priority?: RequestPriority | undefined;
                    redirect?: RequestRedirect | undefined;
                    referrer?: string | undefined;
                    referrerPolicy?: ReferrerPolicy | undefined;
                    signal?: (AbortSignal | null) | undefined;
                    window?: null | undefined;
                    onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
                    onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
                    onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
                    onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
                    onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
                    hookOptions?: {
                        cloneResponse?: boolean;
                    } | undefined;
                    timeout?: number | undefined;
                    customFetchImpl?: better_auth_react.FetchEsque | undefined;
                    plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
                    baseURL?: string | undefined;
                    throw?: boolean | undefined;
                    auth?: ({
                        type: "Bearer";
                        token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<{
                        metadata?: any;
                        name?: string | undefined;
                        userId?: string | undefined;
                        prefix?: string | undefined;
                        expiresIn?: number | null | undefined;
                        permissions?: Record<string, string[]> | undefined;
                        rateLimitMax?: number | undefined;
                        refillInterval?: number | undefined;
                        refillAmount?: number | undefined;
                        rateLimitEnabled?: boolean | undefined;
                        rateLimitTimeWindow?: number | undefined;
                        remaining?: number | null | undefined;
                    }> & Record<string, any>) | undefined;
                    query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
                    params?: Record<string, any> | undefined;
                    duplex?: "full" | "half" | undefined;
                    jsonParser?: ((text: string) => Promise<any> | any) | undefined;
                    retry?: better_auth_react.RetryOptions | undefined;
                    retryAttempt?: number | undefined;
                    output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
                    errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
                    disableValidation?: boolean | undefined;
                } | undefined;
            }> | undefined, "fetchOptions"> & {
                fetchOptions?: {
                    throw?: true;
                } | undefined;
            }): Promise<ThrowableResult>;
            (params: Omit<better_auth_dist_shared_better_auth_CYegVoq1.P<{
                metadata?: any;
                name?: string | undefined;
                userId?: string | undefined;
                prefix?: string | undefined;
                expiresIn?: number | null | undefined;
                permissions?: Record<string, string[]> | undefined;
                rateLimitMax?: number | undefined;
                refillInterval?: number | undefined;
                refillAmount?: number | undefined;
                rateLimitEnabled?: boolean | undefined;
                rateLimitTimeWindow?: number | undefined;
                remaining?: number | null | undefined;
            } & {
                fetchOptions?: {
                    method?: string | undefined;
                    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 | undefined;
                    credentials?: RequestCredentials | undefined;
                    integrity?: string | undefined;
                    keepalive?: boolean | undefined;
                    mode?: RequestMode | undefined;
                    priority?: RequestPriority | undefined;
                    redirect?: RequestRedirect | undefined;
                    referrer?: string | undefined;
                    referrerPolicy?: ReferrerPolicy | undefined;
                    signal?: (AbortSignal | null) | undefined;
                    window?: null | undefined;
                    onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
                    onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
                    onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
                    onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
                    onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
                    hookOptions?: {
                        cloneResponse?: boolean;
                    } | undefined;
                    timeout?: number | undefined;
                    customFetchImpl?: better_auth_react.FetchEsque | undefined;
                    plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
                    baseURL?: string | undefined;
                    throw?: boolean | undefined;
                    auth?: ({
                        type: "Bearer";
                        token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<{
                        metadata?: any;
                        name?: string | undefined;
                        userId?: string | undefined;
                        prefix?: string | undefined;
                        expiresIn?: number | null | undefined;
                        permissions?: Record<string, string[]> | undefined;
                        rateLimitMax?: number | undefined;
                        refillInterval?: number | undefined;
                        refillAmount?: number | undefined;
                        rateLimitEnabled?: boolean | undefined;
                        rateLimitTimeWindow?: number | undefined;
                        remaining?: number | null | undefined;
                    }> & Record<string, any>) | undefined;
                    query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
                    params?: Record<string, any> | undefined;
                    duplex?: "full" | "half" | undefined;
                    jsonParser?: ((text: string) => Promise<any> | any) | undefined;
                    retry?: better_auth_react.RetryOptions | undefined;
                    retryAttempt?: number | undefined;
                    output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
                    errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
                    disableValidation?: boolean | undefined;
                } | undefined;
            }> | undefined, "fetchOptions"> & {
                fetchOptions?: better_auth_react.BetterFetchOption;
            }): Promise<NonThrowableResult>;
        };
        isPending: boolean;
        error: Error | null;
        data: undefined;
        variables: better_auth_dist_shared_better_auth_CYegVoq1.P<{
            metadata?: any;
            name?: string | undefined;
            userId?: string | undefined;
            prefix?: string | undefined;
            expiresIn?: number | null | undefined;
            permissions?: Record<string, string[]> | undefined;
            rateLimitMax?: number | undefined;
            refillInterval?: number | undefined;
            refillAmount?: number | undefined;
            rateLimitEnabled?: boolean | undefined;
            rateLimitTimeWindow?: number | undefined;
            remaining?: number | null | undefined;
        } & {
            fetchOptions?: {
                method?: string | undefined;
                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 | undefined;
                credentials?: RequestCredentials | undefined;
                integrity?: string | undefined;
                keepalive?: boolean | undefined;
                mode?: RequestMode | undefined;
                priority?: RequestPriority | undefined;
                redirect?: RequestRedirect | undefined;
                referrer?: string | undefined;
                referrerPolicy?: ReferrerPolicy | undefined;
                signal?: (AbortSignal | null) | undefined;
                window?: null | undefined;
                onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
                onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
                onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
                onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
                onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
                hookOptions?: {
                    cloneResponse?: boolean;
                } | undefined;
                timeout?: number | undefined;
                customFetchImpl?: better_auth_react.FetchEsque | undefined;
                plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
                baseURL?: string | undefined;
                throw?: boolean | undefined;
                auth?: ({
                    type: "Bearer";
                    token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<{
                    metadata?: any;
                    name?: string | undefined;
                    userId?: string | undefined;
                    prefix?: string | undefined;
                    expiresIn?: number | null | undefined;
                    permissions?: Record<string, string[]> | undefined;
                    rateLimitMax?: number | undefined;
                    refillInterval?: number | undefined;
                    refillAmount?: number | undefined;
                    rateLimitEnabled?: boolean | undefined;
                    rateLimitTimeWindow?: number | undefined;
                    remaining?: number | null | undefined;
                }> & Record<string, any>) | undefined;
                query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
                params?: Record<string, any> | undefined;
                duplex?: "full" | "half" | undefined;
                jsonParser?: ((text: string) => Promise<any> | any) | undefined;
                retry?: better_auth_react.RetryOptions | undefined;
                retryAttempt?: number | undefined;
                output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
                errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
                disableValidation?: boolean | undefined;
            } | undefined;
        }> | undefined;
        isError: false;
        isIdle: false;
        isSuccess: false;
        status: "pending";
        reset: () => void;
        context: {
            previousData: {};
        } | undefined;
        failureCount: number;
        failureReason: Error | null;
        isPaused: boolean;
        submittedAt: number;
    } | {
        mutate: _tanstack_react_query.UseMutateFunction<NonThrowableResult | ThrowableResult, Error, better_auth_dist_shared_better_auth_CYegVoq1.P<{
            metadata?: any;
            name?: string | undefined;
            userId?: string | undefined;
            prefix?: string | undefined;
            expiresIn?: number | null | undefined;
            permissions?: Record<string, string[]> | undefined;
            rateLimitMax?: number | undefined;
            refillInterval?: number | undefined;
            refillAmount?: number | undefined;
            rateLimitEnabled?: boolean | undefined;
            rateLimitTimeWindow?: number | undefined;
            remaining?: number | null | undefined;
        } & {
            fetchOptions?: {
                method?: string | undefined;
                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 | undefined;
                credentials?: RequestCredentials | undefined;
                integrity?: string | undefined;
                keepalive?: boolean | undefined;
                mode?: RequestMode | undefined;
                priority?: RequestPriority | undefined;
                redirect?: RequestRedirect | undefined;
                referrer?: string | undefined;
                referrerPolicy?: ReferrerPolicy | undefined;
                signal?: (AbortSignal | null) | undefined;
                window?: null | undefined;
                onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
                onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
                onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
                onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
                onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
                hookOptions?: {
                    cloneResponse?: boolean;
                } | undefined;
                timeout?: number | undefined;
                customFetchImpl?: better_auth_react.FetchEsque | undefined;
                plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
                baseURL?: string | undefined;
                throw?: boolean | undefined;
                auth?: ({
                    type: "Bearer";
                    token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<{
                    metadata?: any;
                    name?: string | undefined;
                    userId?: string | undefined;
                    prefix?: string | undefined;
                    expiresIn?: number | null | undefined;
                    permissions?: Record<string, string[]> | undefined;
                    rateLimitMax?: number | undefined;
                    refillInterval?: number | undefined;
                    refillAmount?: number | undefined;
                    rateLimitEnabled?: boolean | undefined;
                    rateLimitTimeWindow?: number | undefined;
                    remaining?: number | null | undefined;
                }> & Record<string, any>) | undefined;
                query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
                params?: Record<string, any> | undefined;
                duplex?: "full" | "half" | undefined;
                jsonParser?: ((text: string) => Promise<any> | any) | undefined;
                retry?: better_auth_react.RetryOptions | undefined;
                retryAttempt?: number | undefined;
                output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
                errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
                disableValidation?: boolean | undefined;
            } | undefined;
        }> | undefined, {
            previousData: {};
        }>;
        mutateAsync: {
            (params: Omit<better_auth_dist_shared_better_auth_CYegVoq1.P<{
                metadata?: any;
                name?: string | undefined;
                userId?: string | undefined;
                prefix?: string | undefined;
                expiresIn?: number | null | undefined;
                permissions?: Record<string, string[]> | undefined;
                rateLimitMax?: number | undefined;
                refillInterval?: number | undefined;
                refillAmount?: number | undefined;
                rateLimitEnabled?: boolean | undefined;
                rateLimitTimeWindow?: number | undefined;
                remaining?: number | null | undefined;
            } & {
                fetchOptions?: {
                    method?: string | undefined;
                    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 | undefined;
                    credentials?: RequestCredentials | undefined;
                    integrity?: string | undefined;
                    keepalive?: boolean | undefined;
                    mode?: RequestMode | undefined;
                    priority?: RequestPriority | undefined;
                    redirect?: RequestRedirect | undefined;
                    referrer?: string | undefined;
                    referrerPolicy?: ReferrerPolicy | undefined;
                    signal?: (AbortSignal | null) | undefined;
                    window?: null | undefined;
                    onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
                    onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
                    onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
                    onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
                    onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
                    hookOptions?: {
                        cloneResponse?: boolean;
                    } | undefined;
                    timeout?: number | undefined;
                    customFetchImpl?: better_auth_react.FetchEsque | undefined;
                    plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
                    baseURL?: string | undefined;
                    throw?: boolean | undefined;
                    auth?: ({
                        type: "Bearer";
                        token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<{
                        metadata?: any;
                        name?: string | undefined;
                        userId?: string | undefined;
                        prefix?: string | undefined;
                        expiresIn?: number | null | undefined;
                        permissions?: Record<string, string[]> | undefined;
                        rateLimitMax?: number | undefined;
                        refillInterval?: number | undefined;
                        refillAmount?: number | undefined;
                        rateLimitEnabled?: boolean | undefined;
                        rateLimitTimeWindow?: number | undefined;
                        remaining?: number | null | undefined;
                    }> & Record<string, any>) | undefined;
                    query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
                    params?: Record<string, any> | undefined;
                    duplex?: "full" | "half" | undefined;
                    jsonParser?: ((text: string) => Promise<any> | any) | undefined;
                    retry?: better_auth_react.RetryOptions | undefined;
                    retryAttempt?: number | undefined;
                    output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
                    errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
                    disableValidation?: boolean | undefined;
                } | undefined;
            }> | undefined, "fetchOptions"> & {
                fetchOptions?: {
                    throw?: true;
                } | undefined;
            }): Promise<ThrowableResult>;
            (params: Omit<better_auth_dist_shared_better_auth_CYegVoq1.P<{
                metadata?: any;
                name?: string | undefined;
                userId?: string | undefined;
                prefix?: string | undefined;
                expiresIn?: number | null | undefined;
                permissions?: Record<string, string[]> | undefined;
                rateLimitMax?: number | undefined;
                refillInterval?: number | undefined;
                refillAmount?: number | undefined;
                rateLimitEnabled?: boolean | undefined;
                rateLimitTimeWindow?: number | undefined;
                remaining?: number | null | undefined;
            } & {
                fetchOptions?: {
                    method?: string | undefined;
                    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 | undefined;
                    credentials?: RequestCredentials | undefined;
                    integrity?: string | undefined;
                    keepalive?: boolean | undefined;
                    mode?: RequestMode | undefined;
                    priority?: RequestPriority | undefined;
                    redirect?: RequestRedirect | undefined;
                    referrer?: string | undefined;
                    referrerPolicy?: ReferrerPolicy | undefined;
                    signal?: (AbortSignal | null) | undefined;
                    window?: null | undefined;
                    onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
                    onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
                    onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
                    onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
                    onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
                    hookOptions?: {
                        cloneResponse?: boolean;
                    } | undefined;
                    timeout?: number | undefined;
                    customFetchImpl?: better_auth_react.FetchEsque | undefined;
                    plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
                    baseURL?: string | undefined;
                    throw?: boolean | undefined;
                    auth?: ({
                        type: "Bearer";
                        token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<{
                        metadata?: any;
                        name?: string | undefined;
                        userId?: string | undefined;
                        prefix?: string | undefined;
                        expiresIn?: number | null | undefined;
                        permissions?: Record<string, string[]> | undefined;
                        rateLimitMax?: number | undefined;
                        refillInterval?: number | undefined;
                        refillAmount?: number | undefined;
                        rateLimitEnabled?: boolean | undefined;
                        rateLimitTimeWindow?: number | undefined;
                        remaining?: number | null | undefined;
                    }> & Record<string, any>) | undefined;
                    query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
                    params?: Record<string, any> | undefined;
                    duplex?: "full" | "half" | undefined;
                    jsonParser?: ((text: string) => Promise<any> | any) | undefined;
                    retry?: better_auth_react.RetryOptions | undefined;
                    retryAttempt?: number | undefined;
                    output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
                    errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
                    disableValidation?: boolean | undefined;
                } | undefined;
            }> | undefined, "fetchOptions"> & {
                fetchOptions?: better_auth_react.BetterFetchOption;
            }): Promise<NonThrowableResult>;
        };
        isPending: boolean;
        error: Error | null;
        data: undefined;
        variables: better_auth_dist_shared_better_auth_CYegVoq1.P<{
            metadata?: any;
            name?: string | undefined;
            userId?: string | undefined;
            prefix?: string | undefined;
            expiresIn?: number | null | undefined;
            permissions?: Record<string, string[]> | undefined;
            rateLimitMax?: number | undefined;
            refillInterval?: number | undefined;
            refillAmount?: number | undefined;
            rateLimitEnabled?: boolean | undefined;
            rateLimitTimeWindow?: number | undefined;
            remaining?: number | null | undefined;
        } & {
            fetchOptions?: {
                method?: string | undefined;
                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 | undefined;
                credentials?: RequestCredentials | undefined;
                integrity?: string | undefined;
                keepalive?: boolean | undefined;
                mode?: RequestMode | undefined;
                priority?: RequestPriority | undefined;
                redirect?: RequestRedirect | undefined;
                referrer?: string | undefined;
                referrerPolicy?: ReferrerPolicy | undefined;
                signal?: (AbortSignal | null) | undefined;
                window?: null | undefined;
                onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
                onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
                onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
                onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
                onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
                hookOptions?: {
                    cloneResponse?: boolean;
                } | undefined;
                timeout?: number | undefined;
                customFetchImpl?: better_auth_react.FetchEsque | undefined;
                plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
                baseURL?: string | undefined;
                throw?: boolean | undefined;
                auth?: ({
                    type: "Bearer";
                    token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<{
                    metadata?: any;
                    name?: string | undefined;
                    userId?: string | undefined;
                    prefix?: string | undefined;
                    expiresIn?: number | null | undefined;
                    permissions?: Record<string, string[]> | undefined;
                    rateLimitMax?: number | undefined;
                    refillInterval?: number | undefined;
                    refillAmount?: number | undefined;
                    rateLimitEnabled?: boolean | undefined;
                    rateLimitTimeWindow?: number | undefined;
                    remaining?: number | null | undefined;
                }> & Record<string, any>) | undefined;
                query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
                params?: Record<string, any> | undefined;
                duplex?: "full" | "half" | undefined;
                jsonParser?: ((text: string) => Promise<any> | any) | undefined;
                retry?: better_auth_react.RetryOptions | undefined;
                retryAttempt?: number | undefined;
                output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
                errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
                disableValidation?: boolean | undefined;
            } | undefined;
        }> | undefined;
        isError: true;
        isIdle: false;
        isSuccess: false;
        status: "error";
        reset: () => void;
        context: {
            previousData: {};
        } | undefined;
        failureCount: number;
        failureReason: Error | null;
        isPaused: boolean;
        submittedAt: number;
    } | {
        mutate: _tanstack_react_query.UseMutateFunction<NonThrowableResult | ThrowableResult, Error, better_auth_dist_shared_better_auth_CYegVoq1.P<{
            metadata?: any;
            name?: string | undefined;
            userId?: string | undefined;
            prefix?: string | undefined;
            expiresIn?: number | null | undefined;
            permissions?: Record<string, string[]> | undefined;
            rateLimitMax?: number | undefined;
            refillInterval?: number | undefined;
            refillAmount?: number | undefined;
            rateLimitEnabled?: boolean | undefined;
            rateLimitTimeWindow?: number | undefined;
            remaining?: number | null | undefined;
        } & {
            fetchOptions?: {
                method?: string | undefined;
                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 | undefined;
                credentials?: RequestCredentials | undefined;
                integrity?: string | undefined;
                keepalive?: boolean | undefined;
                mode?: RequestMode | undefined;
                priority?: RequestPriority | undefined;
                redirect?: RequestRedirect | undefined;
                referrer?: string | undefined;
                referrerPolicy?: ReferrerPolicy | undefined;
                signal?: (AbortSignal | null) | undefined;
                window?: null | undefined;
                onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
                onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
                onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
                onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
                onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
                hookOptions?: {
                    cloneResponse?: boolean;
                } | undefined;
                timeout?: number | undefined;
                customFetchImpl?: better_auth_react.FetchEsque | undefined;
                plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
                baseURL?: string | undefined;
                throw?: boolean | undefined;
                auth?: ({
                    type: "Bearer";
                    token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<{
                    metadata?: any;
                    name?: string | undefined;
                    userId?: string | undefined;
                    prefix?: string | undefined;
                    expiresIn?: number | null | undefined;
                    permissions?: Record<string, string[]> | undefined;
                    rateLimitMax?: number | undefined;
                    refillInterval?: number | undefined;
                    refillAmount?: number | undefined;
                    rateLimitEnabled?: boolean | undefined;
                    rateLimitTimeWindow?: number | undefined;
                    remaining?: number | null | undefined;
                }> & Record<string, any>) | undefined;
                query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
                params?: Record<string, any> | undefined;
                duplex?: "full" | "half" | undefined;
                jsonParser?: ((text: string) => Promise<any> | any) | undefined;
                retry?: better_auth_react.RetryOptions | undefined;
                retryAttempt?: number | undefined;
                output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
                errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
                disableValidation?: boolean | undefined;
            } | undefined;
        }> | undefined, {
            previousData: {};
        }>;
        mutateAsync: {
            (params: Omit<better_auth_dist_shared_better_auth_CYegVoq1.P<{
                metadata?: any;
                name?: string | undefined;
                userId?: string | undefined;
                prefix?: string | undefined;
                expiresIn?: number | null | undefined;
                permissions?: Record<string, string[]> | undefined;
                rateLimitMax?: number | undefined;
                refillInterval?: number | undefined;
                refillAmount?: number | undefined;
                rateLimitEnabled?: boolean | undefined;
                rateLimitTimeWindow?: number | undefined;
                remaining?: number | null | undefined;
            } & {
                fetchOptions?: {
                    method?: string | undefined;
                    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 | undefined;
                    credentials?: RequestCredentials | undefined;
                    integrity?: string | undefined;
                    keepalive?: boolean | undefined;
                    mode?: RequestMode | undefined;
                    priority?: RequestPriority | undefined;
                    redirect?: RequestRedirect | undefined;
                    referrer?: string | undefined;
                    referrerPolicy?: ReferrerPolicy | undefined;
                    signal?: (AbortSignal | null) | undefined;
                    window?: null | undefined;
                    onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
                    onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
                    onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
                    onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
                    onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
                    hookOptions?: {
                        cloneResponse?: boolean;
                    } | undefined;
                    timeout?: number | undefined;
                    customFetchImpl?: better_auth_react.FetchEsque | undefined;
                    plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
                    baseURL?: string | undefined;
                    throw?: boolean | undefined;
                    auth?: ({
                        type: "Bearer";
                        token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<{
                        metadata?: any;
                        name?: string | undefined;
                        userId?: string | undefined;
                        prefix?: string | undefined;
                        expiresIn?: number | null | undefined;
                        permissions?: Record<string, string[]> | undefined;
                        rateLimitMax?: number | undefined;
                        refillInterval?: number | undefined;
                        refillAmount?: number | undefined;
                        rateLimitEnabled?: boolean | undefined;
                        rateLimitTimeWindow?: number | undefined;
                        remaining?: number | null | undefined;
                    }> & Record<string, any>) | undefined;
                    query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
                    params?: Record<string, any> | undefined;
                    duplex?: "full" | "half" | undefined;
                    jsonParser?: ((text: string) => Promise<any> | any) | undefined;
                    retry?: better_auth_react.RetryOptions | undefined;
                    retryAttempt?: number | undefined;
                    output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
                    errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
                    disableValidation?: boolean | undefined;
                } | undefined;
            }> | undefined, "fetchOptions"> & {
                fetchOptions?: {
                    throw?: true;
                } | undefined;
            }): Promise<ThrowableResult>;
            (params: Omit<better_auth_dist_shared_better_auth_CYegVoq1.P<{
                metadata?: any;
                name?: string | undefined;
                userId?: string | undefined;
                prefix?: string | undefined;
                expiresIn?: number | null | undefined;
                permissions?: Record<string, string[]> | undefined;
                rateLimitMax?: number | undefined;
                refillInterval?: number | undefined;
                refillAmount?: number | undefined;
                rateLimitEnabled?: boolean | undefined;
                rateLimitTimeWindow?: number | undefined;
                remaining?: number | null | undefined;
            } & {
                fetchOptions?: {
                    method?: string | undefined;
                    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 | undefined;
                    credentials?: RequestCredentials | undefined;
                    integrity?: string | undefined;
                    keepalive?: boolean | undefined;
                    mode?: RequestMode | undefined;
                    priority?: RequestPriority | undefined;
                    redirect?: RequestRedirect | undefined;
                    referrer?: string | undefined;
                    referrerPolicy?: ReferrerPolicy | undefined;
                    signal?: (AbortSignal | null) | undefined;
                    window?: null | undefined;
                    onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
                    onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
                    onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
                    onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
                    onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
                    hookOptions?: {
                        cloneResponse?: boolean;
                    } | undefined;
                    timeout?: number | undefined;
                    customFetchImpl?: better_auth_react.FetchEsque | undefined;
                    plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
                    baseURL?: string | undefined;
                    throw?: boolean | undefined;
                    auth?: ({
                        type: "Bearer";
                        token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<{
                        metadata?: any;
                        name?: string | undefined;
                        userId?: string | undefined;
                        prefix?: string | undefined;
                        expiresIn?: number | null | undefined;
                        permissions?: Record<string, string[]> | undefined;
                        rateLimitMax?: number | undefined;
                        refillInterval?: number | undefined;
                        refillAmount?: number | undefined;
                        rateLimitEnabled?: boolean | undefined;
                        rateLimitTimeWindow?: number | undefined;
                        remaining?: number | null | undefined;
                    }> & Record<string, any>) | undefined;
                    query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
                    params?: Record<string, any> | undefined;
                    duplex?: "full" | "half" | undefined;
                    jsonParser?: ((text: string) => Promise<any> | any) | undefined;
                    retry?: better_auth_react.RetryOptions | undefined;
                    retryAttempt?: number | undefined;
                    output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
                    errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
                    disableValidation?: boolean | undefined;
                } | undefined;
            }> | undefined, "fetchOptions"> & {
                fetchOptions?: better_auth_react.BetterFetchOption;
            }): Promise<NonThrowableResult>;
        };
        isPending: boolean;
        error: Error | null;
        data: NonThrowableResult | ThrowableResult;
        variables: better_auth_dist_shared_better_auth_CYegVoq1.P<{
            metadata?: any;
            name?: string | undefined;
            userId?: string | undefined;
            prefix?: string | undefined;
            expiresIn?: number | null | undefined;
            permissions?: Record<string, string[]> | undefined;
            rateLimitMax?: number | undefined;
            refillInterval?: number | undefined;
            refillAmount?: number | undefined;
            rateLimitEnabled?: boolean | undefined;
            rateLimitTimeWindow?: number | undefined;
            remaining?: number | null | undefined;
        } & {
            fetchOptions?: {
                method?: string | undefined;
                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 | undefined;
                credentials?: RequestCredentials | undefined;
                integrity?: string | undefined;
                keepalive?: boolean | undefined;
                mode?: RequestMode | undefined;
                priority?: RequestPriority | undefined;
                redirect?: RequestRedirect | undefined;
                referrer?: string | undefined;
                referrerPolicy?: ReferrerPolicy | undefined;
                signal?: (AbortSignal | null) | undefined;
                window?: null | undefined;
                onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
                onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
                onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
                onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
                onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
                hookOptions?: {
                    cloneResponse?: boolean;
                } | undefined;
                timeout?: number | undefined;
                customFetchImpl?: better_auth_react.FetchEsque | undefined;
                plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
                baseURL?: string | undefined;
                throw?: boolean | undefined;
                auth?: ({
                    type: "Bearer";
                    token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<{
                    metadata?: any;
                    name?: string | undefined;
                    userId?: string | undefined;
                    prefix?: string | undefined;
                    expiresIn?: number | null | undefined;
                    permissions?: Record<string, string[]> | undefined;
                    rateLimitMax?: number | undefined;
                    refillInterval?: number | undefined;
                    refillAmount?: number | undefined;
                    rateLimitEnabled?: boolean | undefined;
                    rateLimitTimeWindow?: number | undefined;
                    remaining?: number | null | undefined;
                }> & Record<string, any>) | undefined;
                query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
                params?: Record<string, any> | undefined;
                duplex?: "full" | "half" | undefined;
                jsonParser?: ((text: string) => Promise<any> | any) | undefined;
                retry?: better_auth_react.RetryOptions | undefined;
                retryAttempt?: number | undefined;
                output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
                errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
                disableValidation?: boolean | undefined;
            } | undefined;
        }> | undefined;
        isError: false;
        isIdle: false;
        isSuccess: true;
        status: "success";
        reset: () => void;
        context: {
            previousData: {};
        } | undefined;
        failureCount: number;
        failureReason: Error | null;
        isPaused: boolean;
        submittedAt: number;
    };
    useDeleteApiKey: (options?: Partial<AuthQueryOptions>) => {
        mutate: _tanstack_react_query.UseMutateFunction<NonThrowableResult | ThrowableResult, Error, better_auth_dist_shared_better_auth_CYegVoq1.P<{
            keyId: string;
        } & {
            fetchOptions?: {
                method?: string | undefined;
                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 | undefined;
                credentials?: RequestCredentials | undefined;
                integrity?: string | undefined;
                keepalive?: boolean | undefined;
                mode?: RequestMode | undefined;
                priority?: RequestPriority | undefined;
                redirect?: RequestRedirect | undefined;
                referrer?: string | undefined;
                referrerPolicy?: ReferrerPolicy | undefined;
                signal?: (AbortSignal | null) | undefined;
                window?: null | undefined;
                onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
                onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
                onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
                onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
                onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
                hookOptions?: {
                    cloneResponse?: boolean;
                } | undefined;
                timeout?: number | undefined;
                customFetchImpl?: better_auth_react.FetchEsque | undefined;
                plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
                baseURL?: string | undefined;
                throw?: boolean | undefined;
                auth?: ({
                    type: "Bearer";
                    token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<{
                    keyId: string;
                }> & Record<string, any>) | undefined;
                query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
                params?: Record<string, any> | undefined;
                duplex?: "full" | "half" | undefined;
                jsonParser?: ((text: string) => Promise<any> | any) | undefined;
                retry?: better_auth_react.RetryOptions | undefined;
                retryAttempt?: number | undefined;
                output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
                errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
                disableValidation?: boolean | undefined;
            } | undefined;
        }>, {
            previousData: {};
        }>;
        mutateAsync: {
            (params: Omit<better_auth_dist_shared_better_auth_CYegVoq1.P<{
                keyId: string;
            } & {
                fetchOptions?: {
                    method?: string | undefined;
                    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 | undefined;
                    credentials?: RequestCredentials | undefined;
                    integrity?: string | undefined;
                    keepalive?: boolean | undefined;
                    mode?: RequestMode | undefined;
                    priority?: RequestPriority | undefined;
                    redirect?: RequestRedirect | undefined;
                    referrer?: string | undefined;
                    referrerPolicy?: ReferrerPolicy | undefined;
                    signal?: (AbortSignal | null) | undefined;
                    window?: null | undefined;
                    onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
                    onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
                    onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
                    onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
                    onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
                    hookOptions?: {
                        cloneResponse?: boolean;
                    } | undefined;
                    timeout?: number | undefined;
                    customFetchImpl?: better_auth_react.FetchEsque | undefined;
                    plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
                    baseURL?: string | undefined;
                    throw?: boolean | undefined;
                    auth?: ({
                        type: "Bearer";
                        token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<{
                        keyId: string;
                    }> & Record<string, any>) | undefined;
                    query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
                    params?: Record<string, any> | undefined;
                    duplex?: "full" | "half" | undefined;
                    jsonParser?: ((text: string) => Promise<any> | any) | undefined;
                    retry?: better_auth_react.RetryOptions | undefined;
                    retryAttempt?: number | undefined;
                    output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
                    errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
                    disableValidation?: boolean | undefined;
                } | undefined;
            }>, "fetchOptions"> & {
                fetchOptions?: {
                    throw?: true;
                } | undefined;
            }): Promise<ThrowableResult>;
            (params: Omit<better_auth_dist_shared_better_auth_CYegVoq1.P<{
                keyId: string;
            } & {
                fetchOptions?: {
                    method?: string | undefined;
                    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 | undefined;
                    credentials?: RequestCredentials | undefined;
                    integrity?: string | undefined;
                    keepalive?: boolean | undefined;
                    mode?: RequestMode | undefined;
                    priority?: RequestPriority | undefined;
                    redirect?: RequestRedirect | undefined;
                    referrer?: string | undefined;
                    referrerPolicy?: ReferrerPolicy | undefined;
                    signal?: (AbortSignal | null) | undefined;
                    window?: null | undefined;
                    onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
                    onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
                    onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
                    onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
                    onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
                    hookOptions?: {
                        cloneResponse?: boolean;
                    } | undefined;
                    timeout?: number | undefined;
                    customFetchImpl?: better_auth_react.FetchEsque | undefined;
                    plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
                    baseURL?: string | undefined;
                    throw?: boolean | undefined;
                    auth?: ({
                        type: "Bearer";
                        token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<{
                        keyId: string;
                    }> & Record<string, any>) | undefined;
                    query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
                    params?: Record<string, any> | undefined;
                    duplex?: "full" | "half" | undefined;
                    jsonParser?: ((text: string) => Promise<any> | any) | undefined;
                    retry?: better_auth_react.RetryOptions | undefined;
                    retryAttempt?: number | undefined;
                    output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
                    errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
                    disableValidation?: boolean | undefined;
                } | undefined;
            }>, "fetchOptions"> & {
                fetchOptions?: better_auth_react.BetterFetchOption;
            }): Promise<NonThrowableResult>;
        };
        isPending: boolean;
        error: Error | null;
        data: undefined;
        variables: undefined;
        isError: false;
        isIdle: true;
        isSuccess: false;
        status: "idle";
        reset: () => void;
        context: {
            previousData: {};
        } | undefined;
        failureCount: number;
        failureReason: Error | null;
        isPaused: boolean;
        submittedAt: number;
    } | {
        mutate: _tanstack_react_query.UseMutateFunction<NonThrowableResult | ThrowableResult, Error, better_auth_dist_shared_better_auth_CYegVoq1.P<{
            keyId: string;
        } & {
            fetchOptions?: {
                method?: string | undefined;
                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 | undefined;
                credentials?: RequestCredentials | undefined;
                integrity?: string | undefined;
                keepalive?: boolean | undefined;
                mode?: RequestMode | undefined;
                priority?: RequestPriority | undefined;
                redirect?: RequestRedirect | undefined;
                referrer?: string | undefined;
                referrerPolicy?: ReferrerPolicy | undefined;
                signal?: (AbortSignal | null) | undefined;
                window?: null | undefined;
                onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
                onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
                onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
                onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
                onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
                hookOptions?: {
                    cloneResponse?: boolean;
                } | undefined;
                timeout?: number | undefined;
                customFetchImpl?: better_auth_react.FetchEsque | undefined;
                plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
                baseURL?: string | undefined;
                throw?: boolean | undefined;
                auth?: ({
                    type: "Bearer";
                    token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<{
                    keyId: string;
                }> & Record<string, any>) | undefined;
                query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
                params?: Record<string, any> | undefined;
                duplex?: "full" | "half" | undefined;
                jsonParser?: ((text: string) => Promise<any> | any) | undefined;
                retry?: better_auth_react.RetryOptions | undefined;
                retryAttempt?: number | undefined;
                output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
                errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
                disableValidation?: boolean | undefined;
            } | undefined;
        }>, {
            previousData: {};
        }>;
        mutateAsync: {
            (params: Omit<better_auth_dist_shared_better_auth_CYegVoq1.P<{
                keyId: string;
            } & {
                fetchOptions?: {
                    method?: string | undefined;
                    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 | undefined;
                    credentials?: RequestCredentials | undefined;
                    integrity?: string | undefined;
                    keepalive?: boolean | undefined;
                    mode?: RequestMode | undefined;
                    priority?: RequestPriority | undefined;
                    redirect?: RequestRedirect | undefined;
                    referrer?: string | undefined;
                    referrerPolicy?: ReferrerPolicy | undefined;
                    signal?: (AbortSignal | null) | undefined;
                    window?: null | undefined;
                    onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
                    onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
                    onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
                    onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
                    onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
                    hookOptions?: {
                        cloneResponse?: boolean;
                    } | undefined;
                    timeout?: number | undefined;
                    customFetchImpl?: better_auth_react.FetchEsque | undefined;
                    plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
                    baseURL?: string | undefined;
                    throw?: boolean | undefined;
                    auth?: ({
                        type: "Bearer";
                        token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<{
                        keyId: string;
                    }> & Record<string, any>) | undefined;
                    query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
                    params?: Record<string, any> | undefined;
                    duplex?: "full" | "half" | undefined;
                    jsonParser?: ((text: string) => Promise<any> | any) | undefined;
                    retry?: better_auth_react.RetryOptions | undefined;
                    retryAttempt?: number | undefined;
                    output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
                    errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
                    disableValidation?: boolean | undefined;
                } | undefined;
            }>, "fetchOptions"> & {
                fetchOptions?: {
                    throw?: true;
                } | undefined;
            }): Promise<ThrowableResult>;
            (params: Omit<better_auth_dist_shared_better_auth_CYegVoq1.P<{
                keyId: string;
            } & {
                fetchOptions?: {
                    method?: string | undefined;
                    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 | undefined;
                    credentials?: RequestCredentials | undefined;
                    integrity?: string | undefined;
                    keepalive?: boolean | undefined;
                    mode?: RequestMode | undefined;
                    priority?: RequestPriority | undefined;
                    redirect?: RequestRedirect | undefined;
                    referrer?: string | undefined;
                    referrerPolicy?: ReferrerPolicy | undefined;
                    signal?: (AbortSignal | null) | undefined;
                    window?: null | undefined;
                    onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
                    onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
                    onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
                    onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
                    onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
                    hookOptions?: {
                        cloneResponse?: boolean;
                    } | undefined;
                    timeout?: number | undefined;
                    customFetchImpl?: better_auth_react.FetchEsque | undefined;
                    plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
                    baseURL?: string | undefined;
                    throw?: boolean | undefined;
                    auth?: ({
                        type: "Bearer";
                        token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<{
                        keyId: string;
                    }> & Record<string, any>) | undefined;
                    query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
                    params?: Record<string, any> | undefined;
                    duplex?: "full" | "half" | undefined;
                    jsonParser?: ((text: string) => Promise<any> | any) | undefined;
                    retry?: better_auth_react.RetryOptions | undefined;
                    retryAttempt?: number | undefined;
                    output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
                    errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
                    disableValidation?: boolean | undefined;
                } | undefined;
            }>, "fetchOptions"> & {
                fetchOptions?: better_auth_react.BetterFetchOption;
            }): Promise<NonThrowableResult>;
        };
        isPending: boolean;
        error: Error | null;
        data: undefined;
        variables: better_auth_dist_shared_better_auth_CYegVoq1.P<{
            keyId: string;
        } & {
            fetchOptions?: {
                method?: string | undefined;
                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 | undefined;
                credentials?: RequestCredentials | undefined;
                integrity?: string | undefined;
                keepalive?: boolean | undefined;
                mode?: RequestMode | undefined;
                priority?: RequestPriority | undefined;
                redirect?: RequestRedirect | undefined;
                referrer?: string | undefined;
                referrerPolicy?: ReferrerPolicy | undefined;
                signal?: (AbortSignal | null) | undefined;
                window?: null | undefined;
                onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
                onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
                onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
                onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
                onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
                hookOptions?: {
                    cloneResponse?: boolean;
                } | undefined;
                timeout?: number | undefined;
                customFetchImpl?: better_auth_react.FetchEsque | undefined;
                plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
                baseURL?: string | undefined;
                throw?: boolean | undefined;
                auth?: ({
                    type: "Bearer";
                    token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<{
                    keyId: string;
                }> & Record<string, any>) | undefined;
                query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
                params?: Record<string, any> | undefined;
                duplex?: "full" | "half" | undefined;
                jsonParser?: ((text: string) => Promise<any> | any) | undefined;
                retry?: better_auth_react.RetryOptions | undefined;
                retryAttempt?: number | undefined;
                output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
                errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
                disableValidation?: boolean | undefined;
            } | undefined;
        }>;
        isError: false;
        isIdle: false;
        isSuccess: false;
        status: "pending";
        reset: () => void;
        context: {
            previousData: {};
        } | undefined;
        failureCount: number;
        failureReason: Error | null;
        isPaused: boolean;
        submittedAt: number;
    } | {
        mutate: _tanstack_react_query.UseMutateFunction<NonThrowableResult | ThrowableResult, Error, better_auth_dist_shared_better_auth_CYegVoq1.P<{
            keyId: string;
        } & {
            fetchOptions?: {
                method?: string | undefined;
                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 | undefined;
                credentials?: RequestCredentials | undefined;
                integrity?: string | undefined;
                keepalive?: boolean | undefined;
                mode?: RequestMode | undefined;
                priority?: RequestPriority | undefined;
                redirect?: RequestRedirect | undefined;
                referrer?: string | undefined;
                referrerPolicy?: ReferrerPolicy | undefined;
                signal?: (AbortSignal | null) | undefined;
                window?: null | undefined;
                onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
                onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
                onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
                onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
                onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
                hookOptions?: {
                    cloneResponse?: boolean;
                } | undefined;
                timeout?: number | undefined;
                customFetchImpl?: better_auth_react.FetchEsque | undefined;
                plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
                baseURL?: string | undefined;
                throw?: boolean | undefined;
                auth?: ({
                    type: "Bearer";
                    token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<{
                    keyId: string;
                }> & Record<string, any>) | undefined;
                query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
                params?: Record<string, any> | undefined;
                duplex?: "full" | "half" | undefined;
                jsonParser?: ((text: string) => Promise<any> | any) | undefined;
                retry?: better_auth_react.RetryOptions | undefined;
                retryAttempt?: number | undefined;
                output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
                errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
                disableValidation?: boolean | undefined;
            } | undefined;
        }>, {
            previousData: {};
        }>;
        mutateAsync: {
            (params: Omit<better_auth_dist_shared_better_auth_CYegVoq1.P<{
                keyId: string;
            } & {
                fetchOptions?: {
                    method?: string | undefined;
                    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 | undefined;
                    credentials?: RequestCredentials | undefined;
                    integrity?: string | undefined;
                    keepalive?: boolean | undefined;
                    mode?: RequestMode | undefined;
                    priority?: RequestPriority | undefined;
                    redirect?: RequestRedirect | undefined;
                    referrer?: string | undefined;
                    referrerPolicy?: ReferrerPolicy | undefined;
                    signal?: (AbortSignal | null) | undefined;
                    window?: null | undefined;
                    onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
                    onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
                    onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
                    onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
                    onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
                    hookOptions?: {
                        cloneResponse?: boolean;
                    } | undefined;
                    timeout?: number | undefined;
                    customFetchImpl?: better_auth_react.FetchEsque | undefined;
                    plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
                    baseURL?: string | undefined;
                    throw?: boolean | undefined;
                    auth?: ({
                        type: "Bearer";
                        token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<{
                        keyId: string;
                    }> & Record<string, any>) | undefined;
                    query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
                    params?: Record<string, any> | undefined;
                    duplex?: "full" | "half" | undefined;
                    jsonParser?: ((text: string) => Promise<any> | any) | undefined;
                    retry?: better_auth_react.RetryOptions | undefined;
                    retryAttempt?: number | undefined;
                    output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
                    errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
                    disableValidation?: boolean | undefined;
                } | undefined;
            }>, "fetchOptions"> & {
                fetchOptions?: {
                    throw?: true;
                } | undefined;
            }): Promise<ThrowableResult>;
            (params: Omit<better_auth_dist_shared_better_auth_CYegVoq1.P<{
                keyId: string;
            } & {
                fetchOptions?: {
                    method?: string | undefined;
                    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 | undefined;
                    credentials?: RequestCredentials | undefined;
                    integrity?: string | undefined;
                    keepalive?: boolean | undefined;
                    mode?: RequestMode | undefined;
                    priority?: RequestPriority | undefined;
                    redirect?: RequestRedirect | undefined;
                    referrer?: string | undefined;
                    referrerPolicy?: ReferrerPolicy | undefined;
                    signal?: (AbortSignal | null) | undefined;
                    window?: null | undefined;
                    onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
                    onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
                    onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
                    onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
                    onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
                    hookOptions?: {
                        cloneResponse?: boolean;
                    } | undefined;
                    timeout?: number | undefined;
                    customFetchImpl?: better_auth_react.FetchEsque | undefined;
                    plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
                    baseURL?: string | undefined;
                    throw?: boolean | undefined;
                    auth?: ({
                        type: "Bearer";
                        token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<{
                        keyId: string;
                    }> & Record<string, any>) | undefined;
                    query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
                    params?: Record<string, any> | undefined;
                    duplex?: "full" | "half" | undefined;
                    jsonParser?: ((text: string) => Promise<any> | any) | undefined;
                    retry?: better_auth_react.RetryOptions | undefined;
                    retryAttempt?: number | undefined;
                    output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
                    errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
                    disableValidation?: boolean | undefined;
                } | undefined;
            }>, "fetchOptions"> & {
                fetchOptions?: better_auth_react.BetterFetchOption;
            }): Promise<NonThrowableResult>;
        };
        isPending: boolean;
        error: Error | null;
        data: undefined;
        variables: better_auth_dist_shared_better_auth_CYegVoq1.P<{
            keyId: string;
        } & {
            fetchOptions?: {
                method?: string | undefined;
                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 | undefined;
                credentials?: RequestCredentials | undefined;
                integrity?: string | undefined;
                keepalive?: boolean | undefined;
                mode?: RequestMode | undefined;
                priority?: RequestPriority | undefined;
                redirect?: RequestRedirect | undefined;
                referrer?: string | undefined;
                referrerPolicy?: ReferrerPolicy | undefined;
                signal?: (AbortSignal | null) | undefined;
                window?: null | undefined;
                onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
                onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
                onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
                onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
                onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
                hookOptions?: {
                    cloneResponse?: boolean;
                } | undefined;
                timeout?: number | undefined;
                customFetchImpl?: better_auth_react.FetchEsque | undefined;
                plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
                baseURL?: string | undefined;
                throw?: boolean | undefined;
                auth?: ({
                    type: "Bearer";
                    token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<{
                    keyId: string;
                }> & Record<string, any>) | undefined;
                query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
                params?: Record<string, any> | undefined;
                duplex?: "full" | "half" | undefined;
                jsonParser?: ((text: string) => Promise<any> | any) | undefined;
                retry?: better_auth_react.RetryOptions | undefined;
                retryAttempt?: number | undefined;
                output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
                errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
                disableValidation?: boolean | undefined;
            } | undefined;
        }>;
        isError: true;
        isIdle: false;
        isSuccess: false;
        status: "error";
        reset: () => void;
        context: {
            previousData: {};
        } | undefined;
        failureCount: number;
        failureReason: Error | null;
        isPaused: boolean;
        submittedAt: number;
    } | {
        mutate: _tanstack_react_query.UseMutateFunction<NonThrowableResult | ThrowableResult, Error, better_auth_dist_shared_better_auth_CYegVoq1.P<{
            keyId: string;
        } & {
            fetchOptions?: {
                method?: string | undefined;
                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 | undefined;
                credentials?: RequestCredentials | undefined;
                integrity?: string | undefined;
                keepalive?: boolean | undefined;
                mode?: RequestMode | undefined;
                priority?: RequestPriority | undefined;
                redirect?: RequestRedirect | undefined;
                referrer?: string | undefined;
                referrerPolicy?: ReferrerPolicy | undefined;
                signal?: (AbortSignal | null) | undefined;
                window?: null | undefined;
                onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
                onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
                onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
                onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
                onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
                hookOptions?: {
                    cloneResponse?: boolean;
                } | undefined;
                timeout?: number | undefined;
                customFetchImpl?: better_auth_react.FetchEsque | undefined;
                plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
                baseURL?: string | undefined;
                throw?: boolean | undefined;
                auth?: ({
                    type: "Bearer";
                    token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<{
                    keyId: string;
                }> & Record<string, any>) | undefined;
                query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
                params?: Record<string, any> | undefined;
                duplex?: "full" | "half" | undefined;
                jsonParser?: ((text: string) => Promise<any> | any) | undefined;
                retry?: better_auth_react.RetryOptions | undefined;
                retryAttempt?: number | undefined;
                output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
                errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
                disableValidation?: boolean | undefined;
            } | undefined;
        }>, {
            previousData: {};
        }>;
        mutateAsync: {
            (params: Omit<better_auth_dist_shared_better_auth_CYegVoq1.P<{
                keyId: string;
            } & {
                fetchOptions?: {
                    method?: string | undefined;
                    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 | undefined;
                    credentials?: RequestCredentials | undefined;
                    integrity?: string | undefined;
                    keepalive?: boolean | undefined;
                    mode?: RequestMode | undefined;
                    priority?: RequestPriority | undefined;
                    redirect?: RequestRedirect | undefined;
                    referrer?: string | undefined;
                    referrerPolicy?: ReferrerPolicy | undefined;
                    signal?: (AbortSignal | null) | undefined;
                    window?: null | undefined;
                    onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
                    onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
                    onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
                    onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
                    onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
                    hookOptions?: {
                        cloneResponse?: boolean;
                    } | undefined;
                    timeout?: number | undefined;
                    customFetchImpl?: better_auth_react.FetchEsque | undefined;
                    plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
                    baseURL?: string | undefined;
                    throw?: boolean | undefined;
                    auth?: ({
                        type: "Bearer";
                        token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<{
                        keyId: string;
                    }> & Record<string, any>) | undefined;
                    query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
                    params?: Record<string, any> | undefined;
                    duplex?: "full" | "half" | undefined;
                    jsonParser?: ((text: string) => Promise<any> | any) | undefined;
                    retry?: better_auth_react.RetryOptions | undefined;
                    retryAttempt?: number | undefined;
                    output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
                    errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
                    disableValidation?: boolean | undefined;
                } | undefined;
            }>, "fetchOptions"> & {
                fetchOptions?: {
                    throw?: true;
                } | undefined;
            }): Promise<ThrowableResult>;
            (params: Omit<better_auth_dist_shared_better_auth_CYegVoq1.P<{
                keyId: string;
            } & {
                fetchOptions?: {
                    method?: string | undefined;
                    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 | undefined;
                    credentials?: RequestCredentials | undefined;
                    integrity?: string | undefined;
                    keepalive?: boolean | undefined;
                    mode?: RequestMode | undefined;
                    priority?: RequestPriority | undefined;
                    redirect?: RequestRedirect | undefined;
                    referrer?: string | undefined;
                    referrerPolicy?: ReferrerPolicy | undefined;
                    signal?: (AbortSignal | null) | undefined;
                    window?: null | undefined;
                    onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
                    onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
                    onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
                    onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
                    onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
                    hookOptions?: {
                        cloneResponse?: boolean;
                    } | undefined;
                    timeout?: number | undefined;
                    customFetchImpl?: better_auth_react.FetchEsque | undefined;
                    plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
                    baseURL?: string | undefined;
                    throw?: boolean | undefined;
                    auth?: ({
                        type: "Bearer";
                        token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<{
                        keyId: string;
                    }> & Record<string, any>) | undefined;
                    query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
                    params?: Record<string, any> | undefined;
                    duplex?: "full" | "half" | undefined;
                    jsonParser?: ((text: string) => Promise<any> | any) | undefined;
                    retry?: better_auth_react.RetryOptions | undefined;
                    retryAttempt?: number | undefined;
                    output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
                    errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
                    disableValidation?: boolean | undefined;
                } | undefined;
            }>, "fetchOptions"> & {
                fetchOptions?: better_auth_react.BetterFetchOption;
            }): Promise<NonThrowableResult>;
        };
        isPending: boolean;
        error: Error | null;
        data: NonThrowableResult | ThrowableResult;
        variables: better_auth_dist_shared_better_auth_CYegVoq1.P<{
            keyId: string;
        } & {
            fetchOptions?: {
                method?: string | undefined;
                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 | undefined;
                credentials?: RequestCredentials | undefined;
                integrity?: string | undefined;
                keepalive?: boolean | undefined;
                mode?: RequestMode | undefined;
                priority?: RequestPriority | undefined;
                redirect?: RequestRedirect | undefined;
                referrer?: string | undefined;
                referrerPolicy?: ReferrerPolicy | undefined;
                signal?: (AbortSignal | null) | undefined;
                window?: null | undefined;
                onRequest?: (<T extends Record<string, any>>(context: better_auth_react.RequestContext<T>) => Promise<better_auth_react.RequestContext | void> | better_auth_react.RequestContext | void) | undefined;
                onResponse?: ((context: better_auth_react.ResponseContext) => Promise<Response | void | better_auth_react.ResponseContext> | Response | better_auth_react.ResponseContext | void) | undefined;
                onSuccess?: ((context: better_auth_react.SuccessContext<any>) => Promise<void> | void) | undefined;
                onError?: ((context: better_auth_react.ErrorContext) => Promise<void> | void) | undefined;
                onRetry?: ((response: better_auth_react.ResponseContext) => Promise<void> | void) | undefined;
                hookOptions?: {
                    cloneResponse?: boolean;
                } | undefined;
                timeout?: number | undefined;
                customFetchImpl?: better_auth_react.FetchEsque | undefined;
                plugins?: better_auth_react.BetterFetchPlugin[] | undefined;
                baseURL?: string | undefined;
                throw?: boolean | undefined;
                auth?: ({
                    type: "Bearer";
                    token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | 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<{
                    keyId: string;
                }> & Record<string, any>) | undefined;
                query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
                params?: Record<string, any> | undefined;
                duplex?: "full" | "half" | undefined;
                jsonParser?: ((text: string) => Promise<any> | any) | undefined;
                retry?: better_auth_react.RetryOptions | undefined;
                retryAttempt?: number | undefined;
                output?: (better_auth_react.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
                errorSchema?: better_auth_react.StandardSchemaV1 | undefined;
                disableValidation?: boolean | undefined;
            } | undefined;
        }>;
        isError: false;
        isIdle: false;
        isSuccess: true;
        status: "success";
        reset: () => void;
        context: {
            previousData: {};
        } | undefined;
        failureCount: number;
        failureReason: Error | null;
        isPaused: boolean;
        submittedAt: number;
    };
    useActiveOrganization: (options?: Partial<AnyUseQueryOptions>) => _tanstack_react_query.UseQueryResult<{
        members: {
            id: string;
            organizationId: string;
            role: "member" | "admin" | "owner";
            createdAt: Date;
            userId: string;
            user: {
                email: string;
                name: string;
                image?: string;
            };
        }[];
        invitations: {
            id: string;
            organizationId: string;
            email: string;
            role: "member" | "admin" | "owner";
            status: better_auth_plugins_organization.InvitationStatus;
            inviterId: string;
            expiresAt: Date;
        }[];
    } & {
        id: string;
        name: string;
        createdAt: Date;
        slug: string;
        metadata?: any;
        logo?: string | null | undefined;
    }, Error>;
    useListOrganizations: (options?: Partial<AnyUseQueryOptions>) => _tanstack_react_query.UseQueryResult<{
        id: string;
        name: string;
        createdAt: Date;
        slug: string;
        metadata?: any;
        logo?: string | null | undefined;
    }[], Error>;
    useHasPermission: (params: Parameters<AuthClient["organization"]["hasPermission"]>[0], options?: Partial<AnyUseQueryOptions>) => _tanstack_react_query.UseQueryResult<{
        error: null;
        success: boolean;
    }, Error>;
    useInvitation: (params: Parameters<AuthClient["organization"]["getInvitation"]>[0], options?: Partial<AnyUseQueryOptions>) => _tanstack_react_query.UseQueryResult<{
        organizationName: string;
        organizationSlug: string;
        inviterEmail: string;
        id: string;
        email: string;
        status: "pending" | "accepted" | "rejected" | "canceled";
        expiresAt: Date;
        organizationId: string;
        role: string;
        inviterId: string;
        teamId?: string | undefined;
    }, Error>;
    useAuthMutation: typeof useAuthMutation;
};

declare function createAuthPrefetches<TAuthClient extends AnyAuthClient>(authClient: TAuthClient, queryOptions?: AuthQueryOptions): {
    prefetchSession: (queryClient: QueryClient, options?: Partial<AnyUseQueryOptions>) => Promise<{
        error: {
            code?: string | undefined;
            message?: string | undefined;
            status: number;
            statusText: string;
        } | null;
        data: {
            user: {
                id: string;
                name: string;
                email: string;
                emailVerified: boolean;
                createdAt: Date;
                updatedAt: Date;
                image?: string | null | undefined | undefined;
                isAnonymous?: boolean | null | undefined;
                username?: string | null | undefined;
                displayUsername?: string | null | undefined;
                twoFactorEnabled: boolean | null | undefined;
            };
            session: {
                id: string;
                createdAt: Date;
                updatedAt: Date;
                userId: string;
                expiresAt: Date;
                token: string;
                ipAddress?: string | null | undefined | undefined;
                userAgent?: string | null | undefined | undefined;
                activeOrganizationId?: string | null | undefined;
            };
        } | null;
        session: TAuthClient["$Infer"]["Session"]["session"] | undefined;
        user: TAuthClient["$Infer"]["Session"]["user"] | undefined;
    }>;
};

declare function prefetchSession<TAuthClient extends AnyAuthClient>(authClient: TAuthClient, queryClient: QueryClient, queryOptions?: AuthQueryOptions, options?: Partial<AnyUseQueryOptions>): Promise<{
    error: {
        code?: string | undefined;
        message?: string | undefined;
        status: number;
        statusText: string;
    } | null;
    data: {
        user: {
            id: string;
            name: string;
            email: string;
            emailVerified: boolean;
            createdAt: Date;
            updatedAt: Date;
            image?: string | null | undefined | undefined;
            isAnonymous?: boolean | null | undefined;
            username?: string | null | undefined;
            displayUsername?: string | null | undefined;
            twoFactorEnabled: boolean | null | undefined;
        };
        session: {
            id: string;
            createdAt: Date;
            updatedAt: Date;
            userId: string;
            expiresAt: Date;
            token: string;
            ipAddress?: string | null | undefined | undefined;
            userAgent?: string | null | undefined | undefined;
            activeOrganizationId?: string | null | undefined;
        };
    } | null;
    session: TAuthClient["$Infer"]["Session"]["session"] | undefined;
    user: TAuthClient["$Infer"]["Session"]["user"] | undefined;
}>;

type NonThrowableResult = {
    data: {
        status?: boolean;
        success?: boolean;
        [key: string]: unknown;
    } | null;
    error: {
        code?: string | undefined;
        message?: string | undefined;
        status: number;
        statusText: string;
    } | null;
};
type ThrowableResult = {
    status?: boolean;
    [key: string]: unknown;
};

export { AuthQueryContext, type AuthQueryOptions, AuthQueryProvider, type NonThrowableResult, type ThrowableResult, createAuthHooks, createAuthPrefetches, defaultAuthQueryOptions, prefetchSession };
