declare const _default: import("#app").Plugin<{ auth: { client: { useActiveOrganization: import("nanostores").PreinitializedWritableAtom<{ data: import("better-auth").Prettify<{ id: string; name: string; slug: string; createdAt: Date; logo?: string | null | undefined; metadata?: any; } & { members: (import("better-auth/plugins").Member & { user: { id: string; name: string; email: string; image: string | undefined; }; })[]; invitations: import("better-auth/plugins").Invitation[]; }> | null; error: null | import("@better-fetch/fetch").BetterFetchError; isPending: boolean; isRefetching: boolean; refetch: (queryParams?: { query?: import("better-auth").SessionQueryParams; } | undefined) => void; }> & object; useListOrganizations: import("nanostores").PreinitializedWritableAtom<{ data: { id: string; name: string; slug: string; createdAt: Date; logo?: string | null | undefined; metadata?: any; }[] | null; error: null | import("@better-fetch/fetch").BetterFetchError; isPending: boolean; isRefetching: boolean; refetch: (queryParams?: { query?: import("better-auth").SessionQueryParams; } | undefined) => void; }> & object; useActiveMember: import("nanostores").PreinitializedWritableAtom<{ data: { id: string; organizationId: string; userId: string; role: string; createdAt: Date; } | null; error: null | import("@better-fetch/fetch").BetterFetchError; isPending: boolean; isRefetching: boolean; refetch: (queryParams?: { query?: import("better-auth").SessionQueryParams; } | undefined) => void; }> & object; useActiveMemberRole: import("nanostores").PreinitializedWritableAtom<{ data: { role: string; } | null; error: null | import("@better-fetch/fetch").BetterFetchError; isPending: boolean; isRefetching: boolean; refetch: (queryParams?: { query?: import("better-auth").SessionQueryParams; } | undefined) => void; }> & object; } & { customEndpoints: { teams: { ":id": { members: >(context: import("@better-fetch/fetch").RequestContext) => Promise | import("@better-fetch/fetch").RequestContext | void) | undefined; onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined; onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext) => Promise | void) | undefined; onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise | void) | undefined; onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise | void) | undefined; hookOptions?: { cloneResponse?: boolean; } | undefined; timeout?: number | undefined; customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined; plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined; baseURL?: string | undefined; throw?: boolean | undefined; auth?: ({ type: "Bearer"; token: string | Promise | (() => string | Promise | undefined) | undefined; } | { type: "Basic"; username: string | (() => string | undefined) | undefined; password: string | (() => string | undefined) | undefined; } | { type: "Custom"; prefix: string | (() => string | undefined) | undefined; value: string | (() => string | undefined) | undefined; }) | undefined; body?: undefined; query?: (Partial> & Record) | undefined; params?: { id: string; } | undefined; duplex?: "full" | "half" | undefined; jsonParser?: ((text: string) => Promise | any) | undefined; retry?: import("@better-fetch/fetch").RetryOptions | undefined; retryAttempt?: number | undefined; output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined; errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined; disableValidation?: boolean | undefined; }>(data_0?: import("better-auth").Prettify<{ query?: Record | undefined; fetchOptions?: FetchOptions | undefined; }> | undefined, data_1?: FetchOptions | undefined) => Promise>; }; }; }; } & { organization: { rejectInvitation: >(context: import("@better-fetch/fetch").RequestContext) => Promise | import("@better-fetch/fetch").RequestContext | void) | undefined; onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined; onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext) => Promise | void) | undefined; onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise | void) | undefined; onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise | void) | undefined; hookOptions?: { cloneResponse?: boolean; } | undefined; timeout?: number | undefined; customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined; plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined; baseURL?: string | undefined; throw?: boolean | undefined; auth?: ({ type: "Bearer"; token: string | Promise | (() => string | Promise | undefined) | undefined; } | { type: "Basic"; username: string | (() => string | undefined) | undefined; password: string | (() => string | undefined) | undefined; } | { type: "Custom"; prefix: string | (() => string | undefined) | undefined; value: string | (() => string | undefined) | undefined; }) | undefined; body?: (Partial<{ invitationId: string; }> & Record) | undefined; query?: (Partial> & Record) | undefined; params?: Record | undefined; duplex?: "full" | "half" | undefined; jsonParser?: ((text: string) => Promise | any) | undefined; retry?: import("@better-fetch/fetch").RetryOptions | undefined; retryAttempt?: number | undefined; output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined; errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined; disableValidation?: boolean | undefined; }>(data_0: import("better-auth").Prettify<{ invitationId: string; } & { fetchOptions?: FetchOptions | undefined; }>, data_1?: FetchOptions | undefined) => Promise>; }; } & { organization: { getActiveMember: >(context: import("@better-fetch/fetch").RequestContext) => Promise | import("@better-fetch/fetch").RequestContext | void) | undefined; onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined; onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext) => Promise | void) | undefined; onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise | void) | undefined; onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise | void) | undefined; hookOptions?: { cloneResponse?: boolean; } | undefined; timeout?: number | undefined; customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined; plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined; baseURL?: string | undefined; throw?: boolean | undefined; auth?: ({ type: "Bearer"; token: string | Promise | (() => string | Promise | undefined) | undefined; } | { type: "Basic"; username: string | (() => string | undefined) | undefined; password: string | (() => string | undefined) | undefined; } | { type: "Custom"; prefix: string | (() => string | undefined) | undefined; value: string | (() => string | undefined) | undefined; }) | undefined; body?: undefined; query?: (Partial> & Record) | undefined; params?: Record | undefined; duplex?: "full" | "half" | undefined; jsonParser?: ((text: string) => Promise | any) | undefined; retry?: import("@better-fetch/fetch").RetryOptions | undefined; retryAttempt?: number | undefined; output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined; errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined; disableValidation?: boolean | undefined; }>(data_0?: import("better-auth").Prettify<{ query?: Record | undefined; fetchOptions?: FetchOptions | undefined; }> | undefined, data_1?: FetchOptions | undefined) => Promise>; }; } & { organization: { checkSlug: >(context: import("@better-fetch/fetch").RequestContext) => Promise | import("@better-fetch/fetch").RequestContext | void) | undefined; onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined; onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext) => Promise | void) | undefined; onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise | void) | undefined; onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise | void) | undefined; hookOptions?: { cloneResponse?: boolean; } | undefined; timeout?: number | undefined; customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined; plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined; baseURL?: string | undefined; throw?: boolean | undefined; auth?: ({ type: "Bearer"; token: string | Promise | (() => string | Promise | undefined) | undefined; } | { type: "Basic"; username: string | (() => string | undefined) | undefined; password: string | (() => string | undefined) | undefined; } | { type: "Custom"; prefix: string | (() => string | undefined) | undefined; value: string | (() => string | undefined) | undefined; }) | undefined; body?: (Partial<{ slug: string; }> & Record) | undefined; query?: (Partial> & Record) | undefined; params?: Record | undefined; duplex?: "full" | "half" | undefined; jsonParser?: ((text: string) => Promise | any) | undefined; retry?: import("@better-fetch/fetch").RetryOptions | undefined; retryAttempt?: number | undefined; output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined; errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined; disableValidation?: boolean | undefined; }>(data_0: import("better-auth").Prettify<{ slug: string; } & { fetchOptions?: FetchOptions | undefined; }>, data_1?: FetchOptions | undefined) => Promise>; }; } & { organization: { removeMember: >(context: import("@better-fetch/fetch").RequestContext) => Promise | import("@better-fetch/fetch").RequestContext | void) | undefined; onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined; onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext) => Promise | void) | undefined; onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise | void) | undefined; onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise | void) | undefined; hookOptions?: { cloneResponse?: boolean; } | undefined; timeout?: number | undefined; customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined; plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined; baseURL?: string | undefined; throw?: boolean | undefined; auth?: ({ type: "Bearer"; token: string | Promise | (() => string | Promise | undefined) | undefined; } | { type: "Basic"; username: string | (() => string | undefined) | undefined; password: string | (() => string | undefined) | undefined; } | { type: "Custom"; prefix: string | (() => string | undefined) | undefined; value: string | (() => string | undefined) | undefined; }) | undefined; body?: (Partial<{ memberIdOrEmail: string; organizationId?: string | undefined; }> & Record) | undefined; query?: (Partial> & Record) | undefined; params?: Record | undefined; duplex?: "full" | "half" | undefined; jsonParser?: ((text: string) => Promise | any) | undefined; retry?: import("@better-fetch/fetch").RetryOptions | undefined; retryAttempt?: number | undefined; output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined; errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined; disableValidation?: boolean | undefined; }>(data_0: import("better-auth").Prettify<{ memberIdOrEmail: string; organizationId?: string | undefined; } & { fetchOptions?: FetchOptions | undefined; }>, data_1?: FetchOptions | undefined) => Promise>; }; } & { organization: { leave: >(context: import("@better-fetch/fetch").RequestContext) => Promise | import("@better-fetch/fetch").RequestContext | void) | undefined; onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined; onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext) => Promise | void) | undefined; onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise | void) | undefined; onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise | void) | undefined; hookOptions?: { cloneResponse?: boolean; } | undefined; timeout?: number | undefined; customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined; plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined; baseURL?: string | undefined; throw?: boolean | undefined; auth?: ({ type: "Bearer"; token: string | Promise | (() => string | Promise | undefined) | undefined; } | { type: "Basic"; username: string | (() => string | undefined) | undefined; password: string | (() => string | undefined) | undefined; } | { type: "Custom"; prefix: string | (() => string | undefined) | undefined; value: string | (() => string | undefined) | undefined; }) | undefined; body?: (Partial<{ organizationId: string; }> & Record) | undefined; query?: (Partial> & Record) | undefined; params?: Record | undefined; duplex?: "full" | "half" | undefined; jsonParser?: ((text: string) => Promise | any) | undefined; retry?: import("@better-fetch/fetch").RetryOptions | undefined; retryAttempt?: number | undefined; output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined; errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined; disableValidation?: boolean | undefined; }>(data_0: import("better-auth").Prettify<{ organizationId: string; } & { fetchOptions?: FetchOptions | undefined; }>, data_1?: FetchOptions | undefined) => Promise>; }; } & { organization: { listMembers: >(context: import("@better-fetch/fetch").RequestContext) => Promise | import("@better-fetch/fetch").RequestContext | void) | undefined; onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined; onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext) => Promise | void) | undefined; onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise | void) | undefined; onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise | void) | undefined; hookOptions?: { cloneResponse?: boolean; } | undefined; timeout?: number | undefined; customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined; plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined; baseURL?: string | undefined; throw?: boolean | undefined; auth?: ({ type: "Bearer"; token: string | Promise | (() => string | Promise | undefined) | undefined; } | { type: "Basic"; username: string | (() => string | undefined) | undefined; password: string | (() => string | undefined) | undefined; } | { type: "Custom"; prefix: string | (() => string | undefined) | undefined; value: string | (() => string | undefined) | undefined; }) | undefined; body?: undefined; query?: (Partial<{ limit?: string | number | undefined; offset?: string | number | undefined; sortBy?: string | undefined; sortDirection?: "asc" | "desc" | undefined; filterField?: string | undefined; filterValue?: string | number | boolean | undefined; filterOperator?: "contains" | "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | undefined; organizationId?: string | undefined; }> & Record) | undefined; params?: Record | undefined; duplex?: "full" | "half" | undefined; jsonParser?: ((text: string) => Promise | any) | undefined; retry?: import("@better-fetch/fetch").RetryOptions | undefined; retryAttempt?: number | undefined; output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined; errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined; disableValidation?: boolean | undefined; }>(data_0?: import("better-auth").Prettify<{ query?: { limit?: string | number | undefined; offset?: string | number | undefined; sortBy?: string | undefined; sortDirection?: "asc" | "desc" | undefined; filterField?: string | undefined; filterValue?: string | number | boolean | undefined; filterOperator?: "contains" | "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | undefined; organizationId?: string | undefined; } | undefined; fetchOptions?: FetchOptions | undefined; }> | undefined, data_1?: FetchOptions | undefined) => Promise>; }; } & { organization: { getActiveMemberRole: >(context: import("@better-fetch/fetch").RequestContext) => Promise | import("@better-fetch/fetch").RequestContext | void) | undefined; onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined; onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext) => Promise | void) | undefined; onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise | void) | undefined; onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise | void) | undefined; hookOptions?: { cloneResponse?: boolean; } | undefined; timeout?: number | undefined; customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined; plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined; baseURL?: string | undefined; throw?: boolean | undefined; auth?: ({ type: "Bearer"; token: string | Promise | (() => string | Promise | undefined) | undefined; } | { type: "Basic"; username: string | (() => string | undefined) | undefined; password: string | (() => string | undefined) | undefined; } | { type: "Custom"; prefix: string | (() => string | undefined) | undefined; value: string | (() => string | undefined) | undefined; }) | undefined; body?: undefined; query?: (Partial<{ userId?: string | undefined; organizationId?: string | undefined; }> & Record) | undefined; params?: Record | undefined; duplex?: "full" | "half" | undefined; jsonParser?: ((text: string) => Promise | any) | undefined; retry?: import("@better-fetch/fetch").RetryOptions | undefined; retryAttempt?: number | undefined; output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined; errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined; disableValidation?: boolean | undefined; }>(data_0?: import("better-auth").Prettify<{ query?: { userId?: string | undefined; organizationId?: string | undefined; } | undefined; fetchOptions?: FetchOptions | undefined; }> | undefined, data_1?: FetchOptions | undefined) => Promise>; }; } & { organization: { listTeams: >(context: import("@better-fetch/fetch").RequestContext) => Promise | import("@better-fetch/fetch").RequestContext | void) | undefined; onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined; onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext) => Promise | void) | undefined; onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise | void) | undefined; onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise | void) | undefined; hookOptions?: { cloneResponse?: boolean; } | undefined; timeout?: number | undefined; customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined; plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined; baseURL?: string | undefined; throw?: boolean | undefined; auth?: ({ type: "Bearer"; token: string | Promise | (() => string | Promise | undefined) | undefined; } | { type: "Basic"; username: string | (() => string | undefined) | undefined; password: string | (() => string | undefined) | undefined; } | { type: "Custom"; prefix: string | (() => string | undefined) | undefined; value: string | (() => string | undefined) | undefined; }) | undefined; body?: undefined; query?: (Partial<{ organizationId?: string | undefined; }> & Record) | undefined; params?: Record | undefined; duplex?: "full" | "half" | undefined; jsonParser?: ((text: string) => Promise | any) | undefined; retry?: import("@better-fetch/fetch").RetryOptions | undefined; retryAttempt?: number | undefined; output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined; errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined; disableValidation?: boolean | undefined; }>(data_0?: import("better-auth").Prettify<{ query?: { organizationId?: string | undefined; } | undefined; fetchOptions?: FetchOptions | undefined; }> | undefined, data_1?: FetchOptions | undefined) => Promise>; }; } & { organization: { removeTeam: >(context: import("@better-fetch/fetch").RequestContext) => Promise | import("@better-fetch/fetch").RequestContext | void) | undefined; onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined; onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext) => Promise | void) | undefined; onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise | void) | undefined; onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise | void) | undefined; hookOptions?: { cloneResponse?: boolean; } | undefined; timeout?: number | undefined; customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined; plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined; baseURL?: string | undefined; throw?: boolean | undefined; auth?: ({ type: "Bearer"; token: string | Promise | (() => string | Promise | undefined) | undefined; } | { type: "Basic"; username: string | (() => string | undefined) | undefined; password: string | (() => string | undefined) | undefined; } | { type: "Custom"; prefix: string | (() => string | undefined) | undefined; value: string | (() => string | undefined) | undefined; }) | undefined; body?: (Partial<{ teamId: string; organizationId?: string | undefined; }> & Record) | undefined; query?: (Partial> & Record) | undefined; params?: Record | undefined; duplex?: "full" | "half" | undefined; jsonParser?: ((text: string) => Promise | any) | undefined; retry?: import("@better-fetch/fetch").RetryOptions | undefined; retryAttempt?: number | undefined; output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined; errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined; disableValidation?: boolean | undefined; }>(data_0: import("better-auth").Prettify<{ teamId: string; organizationId?: string | undefined; } & { fetchOptions?: FetchOptions | undefined; }>, data_1?: FetchOptions | undefined) => Promise>; }; } & { organization: { setActiveTeam: >(context: import("@better-fetch/fetch").RequestContext) => Promise | import("@better-fetch/fetch").RequestContext | void) | undefined; onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined; onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext) => Promise | void) | undefined; onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise | void) | undefined; onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise | void) | undefined; hookOptions?: { cloneResponse?: boolean; } | undefined; timeout?: number | undefined; customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined; plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined; baseURL?: string | undefined; throw?: boolean | undefined; auth?: ({ type: "Bearer"; token: string | Promise | (() => string | Promise | undefined) | undefined; } | { type: "Basic"; username: string | (() => string | undefined) | undefined; password: string | (() => string | undefined) | undefined; } | { type: "Custom"; prefix: string | (() => string | undefined) | undefined; value: string | (() => string | undefined) | undefined; }) | undefined; body?: (Partial<{ teamId?: string | null | undefined; }> & Record) | undefined; query?: (Partial> & Record) | undefined; params?: Record | undefined; duplex?: "full" | "half" | undefined; jsonParser?: ((text: string) => Promise | any) | undefined; retry?: import("@better-fetch/fetch").RetryOptions | undefined; retryAttempt?: number | undefined; output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined; errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined; disableValidation?: boolean | undefined; }>(data_0?: import("better-auth").Prettify<{ teamId?: string | null | undefined; } & { fetchOptions?: FetchOptions | undefined; }> | undefined, data_1?: FetchOptions | undefined) => Promise>; }; } & { organization: { listUserTeams: >(context: import("@better-fetch/fetch").RequestContext) => Promise | import("@better-fetch/fetch").RequestContext | void) | undefined; onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined; onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext) => Promise | void) | undefined; onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise | void) | undefined; onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise | void) | undefined; hookOptions?: { cloneResponse?: boolean; } | undefined; timeout?: number | undefined; customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined; plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined; baseURL?: string | undefined; throw?: boolean | undefined; auth?: ({ type: "Bearer"; token: string | Promise | (() => string | Promise | undefined) | undefined; } | { type: "Basic"; username: string | (() => string | undefined) | undefined; password: string | (() => string | undefined) | undefined; } | { type: "Custom"; prefix: string | (() => string | undefined) | undefined; value: string | (() => string | undefined) | undefined; }) | undefined; body?: undefined; query?: (Partial> & Record) | undefined; params?: Record | undefined; duplex?: "full" | "half" | undefined; jsonParser?: ((text: string) => Promise | any) | undefined; retry?: import("@better-fetch/fetch").RetryOptions | undefined; retryAttempt?: number | undefined; output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined; errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined; disableValidation?: boolean | undefined; }>(data_0?: import("better-auth").Prettify<{ query?: Record | undefined; fetchOptions?: FetchOptions | undefined; }> | undefined, data_1?: FetchOptions | undefined) => Promise>; }; } & { organization: { listTeamMembers: >(context: import("@better-fetch/fetch").RequestContext) => Promise | import("@better-fetch/fetch").RequestContext | void) | undefined; onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined; onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext) => Promise | void) | undefined; onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise | void) | undefined; onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise | void) | undefined; hookOptions?: { cloneResponse?: boolean; } | undefined; timeout?: number | undefined; customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined; plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined; baseURL?: string | undefined; throw?: boolean | undefined; auth?: ({ type: "Bearer"; token: string | Promise | (() => string | Promise | undefined) | undefined; } | { type: "Basic"; username: string | (() => string | undefined) | undefined; password: string | (() => string | undefined) | undefined; } | { type: "Custom"; prefix: string | (() => string | undefined) | undefined; value: string | (() => string | undefined) | undefined; }) | undefined; body?: undefined; query?: (Partial<{ teamId?: string | undefined; }> & Record) | undefined; params?: Record | undefined; duplex?: "full" | "half" | undefined; jsonParser?: ((text: string) => Promise | any) | undefined; retry?: import("@better-fetch/fetch").RetryOptions | undefined; retryAttempt?: number | undefined; output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined; errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined; disableValidation?: boolean | undefined; }>(data_0?: import("better-auth").Prettify<{ query?: { teamId?: string | undefined; } | undefined; fetchOptions?: FetchOptions | undefined; }> | undefined, data_1?: FetchOptions | undefined) => Promise>; }; } & { organization: { addTeamMember: >(context: import("@better-fetch/fetch").RequestContext) => Promise | import("@better-fetch/fetch").RequestContext | void) | undefined; onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined; onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext) => Promise | void) | undefined; onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise | void) | undefined; onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise | void) | undefined; hookOptions?: { cloneResponse?: boolean; } | undefined; timeout?: number | undefined; customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined; plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined; baseURL?: string | undefined; throw?: boolean | undefined; auth?: ({ type: "Bearer"; token: string | Promise | (() => string | Promise | undefined) | undefined; } | { type: "Basic"; username: string | (() => string | undefined) | undefined; password: string | (() => string | undefined) | undefined; } | { type: "Custom"; prefix: string | (() => string | undefined) | undefined; value: string | (() => string | undefined) | undefined; }) | undefined; body?: (Partial<{ teamId: string; userId: unknown; }> & Record) | undefined; query?: (Partial> & Record) | undefined; params?: Record | undefined; duplex?: "full" | "half" | undefined; jsonParser?: ((text: string) => Promise | any) | undefined; retry?: import("@better-fetch/fetch").RetryOptions | undefined; retryAttempt?: number | undefined; output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined; errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined; disableValidation?: boolean | undefined; }>(data_0: import("better-auth").Prettify<{ teamId: string; userId: unknown; } & { fetchOptions?: FetchOptions | undefined; }>, data_1?: FetchOptions | undefined) => Promise>; }; } & { organization: { removeTeamMember: >(context: import("@better-fetch/fetch").RequestContext) => Promise | import("@better-fetch/fetch").RequestContext | void) | undefined; onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined; onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext) => Promise | void) | undefined; onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise | void) | undefined; onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise | void) | undefined; hookOptions?: { cloneResponse?: boolean; } | undefined; timeout?: number | undefined; customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined; plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined; baseURL?: string | undefined; throw?: boolean | undefined; auth?: ({ type: "Bearer"; token: string | Promise | (() => string | Promise | undefined) | undefined; } | { type: "Basic"; username: string | (() => string | undefined) | undefined; password: string | (() => string | undefined) | undefined; } | { type: "Custom"; prefix: string | (() => string | undefined) | undefined; value: string | (() => string | undefined) | undefined; }) | undefined; body?: (Partial<{ teamId: string; userId: unknown; }> & Record) | undefined; query?: (Partial> & Record) | undefined; params?: Record | undefined; duplex?: "full" | "half" | undefined; jsonParser?: ((text: string) => Promise | any) | undefined; retry?: import("@better-fetch/fetch").RetryOptions | undefined; retryAttempt?: number | undefined; output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined; errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined; disableValidation?: boolean | undefined; }>(data_0: import("better-auth").Prettify<{ teamId: string; userId: unknown; } & { fetchOptions?: FetchOptions | undefined; }>, data_1?: FetchOptions | undefined) => Promise>; }; } & { sso: { saml2: { sp: { metadata: >(context: import("@better-fetch/fetch").RequestContext) => Promise | import("@better-fetch/fetch").RequestContext | void) | undefined; onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined; onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext) => Promise | void) | undefined; onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise | void) | undefined; onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise | void) | undefined; hookOptions?: { cloneResponse?: boolean; } | undefined; timeout?: number | undefined; customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined; plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined; baseURL?: string | undefined; throw?: boolean | undefined; auth?: ({ type: "Bearer"; token: string | Promise | (() => string | Promise | undefined) | undefined; } | { type: "Basic"; username: string | (() => string | undefined) | undefined; password: string | (() => string | undefined) | undefined; } | { type: "Custom"; prefix: string | (() => string | undefined) | undefined; value: string | (() => string | undefined) | undefined; }) | undefined; body?: undefined; query?: (Partial<{ providerId: string; format?: "xml" | "json" | undefined; }> & Record) | undefined; params?: Record | undefined; duplex?: "full" | "half" | undefined; jsonParser?: ((text: string) => Promise | any) | undefined; retry?: import("@better-fetch/fetch").RetryOptions | undefined; retryAttempt?: number | undefined; output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined; errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined; disableValidation?: boolean | undefined; }>(data_0: import("better-auth").Prettify<{ query: { providerId: string; format?: "xml" | "json" | undefined; }; fetchOptions?: FetchOptions | undefined; }>, data_1?: FetchOptions | undefined) => Promise>; }; }; }; } & { sso: { register: >(context: import("@better-fetch/fetch").RequestContext) => Promise | import("@better-fetch/fetch").RequestContext | void) | undefined; onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined; onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext) => Promise | void) | undefined; onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise | void) | undefined; onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise | void) | undefined; hookOptions?: { cloneResponse?: boolean; } | undefined; timeout?: number | undefined; customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined; plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined; baseURL?: string | undefined; throw?: boolean | undefined; auth?: ({ type: "Bearer"; token: string | Promise | (() => string | Promise | undefined) | undefined; } | { type: "Basic"; username: string | (() => string | undefined) | undefined; password: string | (() => string | undefined) | undefined; } | { type: "Custom"; prefix: string | (() => string | undefined) | undefined; value: string | (() => string | undefined) | undefined; }) | undefined; body?: (Partial<{ providerId: string; issuer: string; domain: string; oidcConfig?: { clientId: string; clientSecret: string; authorizationEndpoint?: string | undefined; tokenEndpoint?: string | undefined; userInfoEndpoint?: string | undefined; tokenEndpointAuthentication?: "client_secret_post" | "client_secret_basic" | undefined; jwksEndpoint?: string | undefined; discoveryEndpoint?: string | undefined; scopes?: string[] | undefined; pkce?: boolean | undefined; mapping?: { id: string; email: string; name: string; emailVerified?: string | undefined; image?: string | undefined; extraFields?: Record | undefined; } | undefined; } | undefined; samlConfig?: { entryPoint: string; cert: string; callbackUrl: string; spMetadata: { metadata?: string | undefined; entityID?: string | undefined; binding?: string | undefined; privateKey?: string | undefined; privateKeyPass?: string | undefined; isAssertionEncrypted?: boolean | undefined; encPrivateKey?: string | undefined; encPrivateKeyPass?: string | undefined; }; audience?: string | undefined; idpMetadata?: { metadata?: string | undefined; entityID?: string | undefined; cert?: string | undefined; privateKey?: string | undefined; privateKeyPass?: string | undefined; isAssertionEncrypted?: boolean | undefined; encPrivateKey?: string | undefined; encPrivateKeyPass?: string | undefined; singleSignOnService?: { Binding: string; Location: string; }[] | undefined; } | undefined; wantAssertionsSigned?: boolean | undefined; signatureAlgorithm?: string | undefined; digestAlgorithm?: string | undefined; identifierFormat?: string | undefined; privateKey?: string | undefined; decryptionPvk?: string | undefined; additionalParams?: Record | undefined; mapping?: { id: string; email: string; name: string; emailVerified?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; extraFields?: Record | undefined; } | undefined; } | undefined; organizationId?: string | undefined; overrideUserInfo?: boolean | undefined; }> & Record) | undefined; query?: (Partial> & Record) | undefined; params?: Record | undefined; duplex?: "full" | "half" | undefined; jsonParser?: ((text: string) => Promise | any) | undefined; retry?: import("@better-fetch/fetch").RetryOptions | undefined; retryAttempt?: number | undefined; output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined; errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined; disableValidation?: boolean | undefined; }>(data_0: import("better-auth").Prettify<{ providerId: string; issuer: string; domain: string; oidcConfig?: { clientId: string; clientSecret: string; authorizationEndpoint?: string | undefined; tokenEndpoint?: string | undefined; userInfoEndpoint?: string | undefined; tokenEndpointAuthentication?: "client_secret_post" | "client_secret_basic" | undefined; jwksEndpoint?: string | undefined; discoveryEndpoint?: string | undefined; scopes?: string[] | undefined; pkce?: boolean | undefined; mapping?: { id: string; email: string; name: string; emailVerified?: string | undefined; image?: string | undefined; extraFields?: Record | undefined; } | undefined; } | undefined; samlConfig?: { entryPoint: string; cert: string; callbackUrl: string; spMetadata: { metadata?: string | undefined; entityID?: string | undefined; binding?: string | undefined; privateKey?: string | undefined; privateKeyPass?: string | undefined; isAssertionEncrypted?: boolean | undefined; encPrivateKey?: string | undefined; encPrivateKeyPass?: string | undefined; }; audience?: string | undefined; idpMetadata?: { metadata?: string | undefined; entityID?: string | undefined; cert?: string | undefined; privateKey?: string | undefined; privateKeyPass?: string | undefined; isAssertionEncrypted?: boolean | undefined; encPrivateKey?: string | undefined; encPrivateKeyPass?: string | undefined; singleSignOnService?: { Binding: string; Location: string; }[] | undefined; } | undefined; wantAssertionsSigned?: boolean | undefined; signatureAlgorithm?: string | undefined; digestAlgorithm?: string | undefined; identifierFormat?: string | undefined; privateKey?: string | undefined; decryptionPvk?: string | undefined; additionalParams?: Record | undefined; mapping?: { id: string; email: string; name: string; emailVerified?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; extraFields?: Record | undefined; } | undefined; } | undefined; organizationId?: string | undefined; overrideUserInfo?: boolean | undefined; } & { fetchOptions?: FetchOptions | undefined; }>, data_1?: FetchOptions | undefined) => Promise>; }; } & { signIn: { sso: >(context: import("@better-fetch/fetch").RequestContext) => Promise | import("@better-fetch/fetch").RequestContext | void) | undefined; onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined; onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext) => Promise | void) | undefined; onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise | void) | undefined; onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise | void) | undefined; hookOptions?: { cloneResponse?: boolean; } | undefined; timeout?: number | undefined; customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined; plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined; baseURL?: string | undefined; throw?: boolean | undefined; auth?: ({ type: "Bearer"; token: string | Promise | (() => string | Promise | undefined) | undefined; } | { type: "Basic"; username: string | (() => string | undefined) | undefined; password: string | (() => string | undefined) | undefined; } | { type: "Custom"; prefix: string | (() => string | undefined) | undefined; value: string | (() => string | undefined) | undefined; }) | undefined; body?: (Partial<{ callbackURL: string; email?: string | undefined; organizationSlug?: string | undefined; providerId?: string | undefined; domain?: string | undefined; errorCallbackURL?: string | undefined; newUserCallbackURL?: string | undefined; scopes?: string[] | undefined; requestSignUp?: boolean | undefined; providerType?: "oidc" | "saml" | undefined; }> & Record) | undefined; query?: (Partial> & Record) | undefined; params?: Record | undefined; duplex?: "full" | "half" | undefined; jsonParser?: ((text: string) => Promise | any) | undefined; retry?: import("@better-fetch/fetch").RetryOptions | undefined; retryAttempt?: number | undefined; output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined; errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined; disableValidation?: boolean | undefined; }>(data_0: import("better-auth").Prettify<{ callbackURL: string; email?: string | undefined; organizationSlug?: string | undefined; providerId?: string | undefined; domain?: string | undefined; errorCallbackURL?: string | undefined; newUserCallbackURL?: string | undefined; scopes?: string[] | undefined; requestSignUp?: boolean | undefined; providerType?: "oidc" | "saml" | undefined; } & { fetchOptions?: FetchOptions | undefined; }>, data_1?: FetchOptions | undefined) => Promise>; }; } & { sso: { callback: { ":providerid": >(context: import("@better-fetch/fetch").RequestContext) => Promise | import("@better-fetch/fetch").RequestContext | void) | undefined; onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined; onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext) => Promise | void) | undefined; onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise | void) | undefined; onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise | void) | undefined; hookOptions?: { cloneResponse?: boolean; } | undefined; timeout?: number | undefined; customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined; plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined; baseURL?: string | undefined; throw?: boolean | undefined; auth?: ({ type: "Bearer"; token: string | Promise | (() => string | Promise | undefined) | undefined; } | { type: "Basic"; username: string | (() => string | undefined) | undefined; password: string | (() => string | undefined) | undefined; } | { type: "Custom"; prefix: string | (() => string | undefined) | undefined; value: string | (() => string | undefined) | undefined; }) | undefined; body?: undefined; query?: (Partial<{ state: string; code?: string | undefined; error?: string | undefined; error_description?: string | undefined; }> & Record) | undefined; params?: { providerId: string; } | undefined; duplex?: "full" | "half" | undefined; jsonParser?: ((text: string) => Promise | any) | undefined; retry?: import("@better-fetch/fetch").RetryOptions | undefined; retryAttempt?: number | undefined; output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined; errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined; disableValidation?: boolean | undefined; }>(data_0: import("better-auth").Prettify<{ query: { state: string; code?: string | undefined; error?: string | undefined; error_description?: string | undefined; }; fetchOptions?: FetchOptions | undefined; }>, data_1?: FetchOptions | undefined) => Promise>; }; }; } & { sso: { saml2: { callback: { ":providerid": >(context: import("@better-fetch/fetch").RequestContext) => Promise | import("@better-fetch/fetch").RequestContext | void) | undefined; onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined; onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext) => Promise | void) | undefined; onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise | void) | undefined; onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise | void) | undefined; hookOptions?: { cloneResponse?: boolean; } | undefined; timeout?: number | undefined; customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined; plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined; baseURL?: string | undefined; throw?: boolean | undefined; auth?: ({ type: "Bearer"; token: string | Promise | (() => string | Promise | undefined) | undefined; } | { type: "Basic"; username: string | (() => string | undefined) | undefined; password: string | (() => string | undefined) | undefined; } | { type: "Custom"; prefix: string | (() => string | undefined) | undefined; value: string | (() => string | undefined) | undefined; }) | undefined; body?: (Partial<{ SAMLResponse: string; RelayState?: string | undefined; }> & Record) | undefined; query?: (Partial> & Record) | undefined; params?: { providerId: string; } | undefined; duplex?: "full" | "half" | undefined; jsonParser?: ((text: string) => Promise | any) | undefined; retry?: import("@better-fetch/fetch").RetryOptions | undefined; retryAttempt?: number | undefined; output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined; errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined; disableValidation?: boolean | undefined; }>(data_0: import("better-auth").Prettify<{ SAMLResponse: string; RelayState?: string | undefined; } & { fetchOptions?: FetchOptions | undefined; }>, data_1?: FetchOptions | undefined) => Promise>; }; }; }; } & { sso: { saml2: { sp: { acs: { ":providerid": >(context: import("@better-fetch/fetch").RequestContext) => Promise | import("@better-fetch/fetch").RequestContext | void) | undefined; onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined; onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext) => Promise | void) | undefined; onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise | void) | undefined; onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise | void) | undefined; hookOptions?: { cloneResponse?: boolean; } | undefined; timeout?: number | undefined; customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined; plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined; baseURL?: string | undefined; throw?: boolean | undefined; auth?: ({ type: "Bearer"; token: string | Promise | (() => string | Promise | undefined) | undefined; } | { type: "Basic"; username: string | (() => string | undefined) | undefined; password: string | (() => string | undefined) | undefined; } | { type: "Custom"; prefix: string | (() => string | undefined) | undefined; value: string | (() => string | undefined) | undefined; }) | undefined; body?: (Partial<{ SAMLResponse: string; RelayState?: string | undefined; }> & Record) | undefined; query?: (Partial> & Record) | undefined; params?: { providerId: string; } | undefined; duplex?: "full" | "half" | undefined; jsonParser?: ((text: string) => Promise | any) | undefined; retry?: import("@better-fetch/fetch").RetryOptions | undefined; retryAttempt?: number | undefined; output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined; errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined; disableValidation?: boolean | undefined; }>(data_0: import("better-auth").Prettify<{ SAMLResponse: string; RelayState?: string | undefined; } & { fetchOptions?: FetchOptions | undefined; }>, data_1?: FetchOptions | undefined) => Promise>; }; }; }; }; } & { organization: { create: >(context: import("@better-fetch/fetch").RequestContext) => Promise | import("@better-fetch/fetch").RequestContext | void) | undefined; onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined; onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext) => Promise | void) | undefined; onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise | void) | undefined; onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise | void) | undefined; hookOptions?: { cloneResponse?: boolean; } | undefined; timeout?: number | undefined; customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined; plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined; baseURL?: string | undefined; throw?: boolean | undefined; auth?: ({ type: "Bearer"; token: string | Promise | (() => string | Promise | undefined) | undefined; } | { type: "Basic"; username: string | (() => string | undefined) | undefined; password: string | (() => string | undefined) | undefined; } | { type: "Custom"; prefix: string | (() => string | undefined) | undefined; value: string | (() => string | undefined) | undefined; }) | undefined; body?: (Partial<{ name: string; slug: string; userId?: string | undefined; logo?: string | undefined; metadata?: Record | undefined; keepCurrentActiveOrganization?: boolean | undefined; }> & Record) | undefined; query?: (Partial> & Record) | undefined; params?: Record | undefined; duplex?: "full" | "half" | undefined; jsonParser?: ((text: string) => Promise | any) | undefined; retry?: import("@better-fetch/fetch").RetryOptions | undefined; retryAttempt?: number | undefined; output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined; errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined; disableValidation?: boolean | undefined; }>(data_0: import("better-auth").Prettify<{ name: string; slug: string; userId?: string | undefined; logo?: string | undefined; metadata?: Record | undefined; keepCurrentActiveOrganization?: boolean | undefined; } & { fetchOptions?: FetchOptions | undefined; }>, data_1?: FetchOptions | undefined) => Promise>; }; } & { organization: { update: >(context: import("@better-fetch/fetch").RequestContext) => Promise | import("@better-fetch/fetch").RequestContext | void) | undefined; onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined; onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext) => Promise | void) | undefined; onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise | void) | undefined; onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise | void) | undefined; hookOptions?: { cloneResponse?: boolean; } | undefined; timeout?: number | undefined; customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined; plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined; baseURL?: string | undefined; throw?: boolean | undefined; auth?: ({ type: "Bearer"; token: string | Promise | (() => string | Promise | undefined) | undefined; } | { type: "Basic"; username: string | (() => string | undefined) | undefined; password: string | (() => string | undefined) | undefined; } | { type: "Custom"; prefix: string | (() => string | undefined) | undefined; value: string | (() => string | undefined) | undefined; }) | undefined; body?: (Partial<{ data: { name?: string; slug?: string; logo?: string; metadata?: Record; } & Partial<{}>; organizationId?: string | undefined; }> & Record) | undefined; query?: (Partial> & Record) | undefined; params?: Record | undefined; duplex?: "full" | "half" | undefined; jsonParser?: ((text: string) => Promise | any) | undefined; retry?: import("@better-fetch/fetch").RetryOptions | undefined; retryAttempt?: number | undefined; output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined; errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined; disableValidation?: boolean | undefined; }>(data_0: import("better-auth").Prettify<{ data: { name?: string; slug?: string; logo?: string; metadata?: Record; } & Partial<{}>; organizationId?: string | undefined; } & { fetchOptions?: FetchOptions | undefined; }>, data_1?: FetchOptions | undefined) => Promise | undefined; }, { code?: string; message?: string; }, FetchOptions["throw"] extends true ? true : false>>; }; } & { organization: { delete: >(context: import("@better-fetch/fetch").RequestContext) => Promise | import("@better-fetch/fetch").RequestContext | void) | undefined; onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined; onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext) => Promise | void) | undefined; onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise | void) | undefined; onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise | void) | undefined; hookOptions?: { cloneResponse?: boolean; } | undefined; timeout?: number | undefined; customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined; plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined; baseURL?: string | undefined; throw?: boolean | undefined; auth?: ({ type: "Bearer"; token: string | Promise | (() => string | Promise | undefined) | undefined; } | { type: "Basic"; username: string | (() => string | undefined) | undefined; password: string | (() => string | undefined) | undefined; } | { type: "Custom"; prefix: string | (() => string | undefined) | undefined; value: string | (() => string | undefined) | undefined; }) | undefined; body?: (Partial<{ organizationId: string; }> & Record) | undefined; query?: (Partial> & Record) | undefined; params?: Record | undefined; duplex?: "full" | "half" | undefined; jsonParser?: ((text: string) => Promise | any) | undefined; retry?: import("@better-fetch/fetch").RetryOptions | undefined; retryAttempt?: number | undefined; output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined; errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined; disableValidation?: boolean | undefined; }>(data_0: import("better-auth").Prettify<{ organizationId: string; } & { fetchOptions?: FetchOptions | undefined; }>, data_1?: FetchOptions | undefined) => Promise>; }; } & { organization: { setActive: >(context: import("@better-fetch/fetch").RequestContext) => Promise | import("@better-fetch/fetch").RequestContext | void) | undefined; onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined; onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext) => Promise | void) | undefined; onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise | void) | undefined; onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise | void) | undefined; hookOptions?: { cloneResponse?: boolean; } | undefined; timeout?: number | undefined; customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined; plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined; baseURL?: string | undefined; throw?: boolean | undefined; auth?: ({ type: "Bearer"; token: string | Promise | (() => string | Promise | undefined) | undefined; } | { type: "Basic"; username: string | (() => string | undefined) | undefined; password: string | (() => string | undefined) | undefined; } | { type: "Custom"; prefix: string | (() => string | undefined) | undefined; value: string | (() => string | undefined) | undefined; }) | undefined; body?: (Partial<{ organizationId?: string | null | undefined; organizationSlug?: string | undefined; }> & Record) | undefined; query?: (Partial> & Record) | undefined; params?: Record | undefined; duplex?: "full" | "half" | undefined; jsonParser?: ((text: string) => Promise | any) | undefined; retry?: import("@better-fetch/fetch").RetryOptions | undefined; retryAttempt?: number | undefined; output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined; errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined; disableValidation?: boolean | undefined; }>(data_0?: import("better-auth").Prettify<{ organizationId?: string | null | undefined; organizationSlug?: string | undefined; } & { fetchOptions?: FetchOptions | undefined; }> | undefined, data_1?: FetchOptions | undefined) => Promise>; }; } & { organization: { getFullOrganization: >(context: import("@better-fetch/fetch").RequestContext) => Promise | import("@better-fetch/fetch").RequestContext | void) | undefined; onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined; onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext) => Promise | void) | undefined; onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise | void) | undefined; onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise | void) | undefined; hookOptions?: { cloneResponse?: boolean; } | undefined; timeout?: number | undefined; customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined; plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined; baseURL?: string | undefined; throw?: boolean | undefined; auth?: ({ type: "Bearer"; token: string | Promise | (() => string | Promise | undefined) | undefined; } | { type: "Basic"; username: string | (() => string | undefined) | undefined; password: string | (() => string | undefined) | undefined; } | { type: "Custom"; prefix: string | (() => string | undefined) | undefined; value: string | (() => string | undefined) | undefined; }) | undefined; body?: undefined; query?: (Partial<{ organizationId?: string | undefined; organizationSlug?: string | undefined; membersLimit?: string | number | undefined; }> & Record) | undefined; params?: Record | undefined; duplex?: "full" | "half" | undefined; jsonParser?: ((text: string) => Promise | any) | undefined; retry?: import("@better-fetch/fetch").RetryOptions | undefined; retryAttempt?: number | undefined; output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined; errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined; disableValidation?: boolean | undefined; }>(data_0?: import("better-auth").Prettify<{ query?: { organizationId?: string | undefined; organizationSlug?: string | undefined; membersLimit?: string | number | undefined; } | undefined; fetchOptions?: FetchOptions | undefined; }> | undefined, data_1?: FetchOptions | undefined) => Promise>; }; } & { organization: { list: >(context: import("@better-fetch/fetch").RequestContext) => Promise | import("@better-fetch/fetch").RequestContext | void) | undefined; onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined; onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext) => Promise | void) | undefined; onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise | void) | undefined; onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise | void) | undefined; hookOptions?: { cloneResponse?: boolean; } | undefined; timeout?: number | undefined; customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined; plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined; baseURL?: string | undefined; throw?: boolean | undefined; auth?: ({ type: "Bearer"; token: string | Promise | (() => string | Promise | undefined) | undefined; } | { type: "Basic"; username: string | (() => string | undefined) | undefined; password: string | (() => string | undefined) | undefined; } | { type: "Custom"; prefix: string | (() => string | undefined) | undefined; value: string | (() => string | undefined) | undefined; }) | undefined; body?: undefined; query?: (Partial> & Record) | undefined; params?: Record | undefined; duplex?: "full" | "half" | undefined; jsonParser?: ((text: string) => Promise | any) | undefined; retry?: import("@better-fetch/fetch").RetryOptions | undefined; retryAttempt?: number | undefined; output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined; errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined; disableValidation?: boolean | undefined; }>(data_0?: import("better-auth").Prettify<{ query?: Record | undefined; fetchOptions?: FetchOptions | undefined; }> | undefined, data_1?: FetchOptions | undefined) => Promise>; }; } & { organization: { inviteMember: >(context: import("@better-fetch/fetch").RequestContext) => Promise | import("@better-fetch/fetch").RequestContext | void) | undefined; onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined; onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext) => Promise | void) | undefined; onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise | void) | undefined; onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise | void) | undefined; hookOptions?: { cloneResponse?: boolean; } | undefined; timeout?: number | undefined; customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined; plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined; baseURL?: string | undefined; throw?: boolean | undefined; auth?: ({ type: "Bearer"; token: string | Promise | (() => string | Promise | undefined) | undefined; } | { type: "Basic"; username: string | (() => string | undefined) | undefined; password: string | (() => string | undefined) | undefined; } | { type: "Custom"; prefix: string | (() => string | undefined) | undefined; value: string | (() => string | undefined) | undefined; }) | undefined; body?: (Partial<{ email: string; role: "org:admin" | "org:member" | "org:reviewer" | ("org:admin" | "org:member" | "org:reviewer")[]; organizationId?: string | undefined; resend?: boolean; } & { teamId?: string | string[]; }> & Record) | undefined; query?: (Partial> & Record) | undefined; params?: Record | undefined; duplex?: "full" | "half" | undefined; jsonParser?: ((text: string) => Promise | any) | undefined; retry?: import("@better-fetch/fetch").RetryOptions | undefined; retryAttempt?: number | undefined; output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined; errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined; disableValidation?: boolean | undefined; }>(data_0: import("better-auth").Prettify<{ email: string; role: "org:admin" | "org:member" | "org:reviewer" | ("org:admin" | "org:member" | "org:reviewer")[]; organizationId?: string | undefined; resend?: boolean; } & { teamId?: string | string[]; } & { fetchOptions?: FetchOptions | undefined; }>, data_1?: FetchOptions | undefined) => Promise>; }; } & { organization: { cancelInvitation: >(context: import("@better-fetch/fetch").RequestContext) => Promise | import("@better-fetch/fetch").RequestContext | void) | undefined; onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined; onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext) => Promise | void) | undefined; onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise | void) | undefined; onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise | void) | undefined; hookOptions?: { cloneResponse?: boolean; } | undefined; timeout?: number | undefined; customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined; plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined; baseURL?: string | undefined; throw?: boolean | undefined; auth?: ({ type: "Bearer"; token: string | Promise | (() => string | Promise | undefined) | undefined; } | { type: "Basic"; username: string | (() => string | undefined) | undefined; password: string | (() => string | undefined) | undefined; } | { type: "Custom"; prefix: string | (() => string | undefined) | undefined; value: string | (() => string | undefined) | undefined; }) | undefined; body?: (Partial<{ invitationId: string; }> & Record) | undefined; query?: (Partial> & Record) | undefined; params?: Record | undefined; duplex?: "full" | "half" | undefined; jsonParser?: ((text: string) => Promise | any) | undefined; retry?: import("@better-fetch/fetch").RetryOptions | undefined; retryAttempt?: number | undefined; output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined; errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined; disableValidation?: boolean | undefined; }>(data_0: import("better-auth").Prettify<{ invitationId: string; } & { fetchOptions?: FetchOptions | undefined; }>, data_1?: FetchOptions | undefined) => Promise>; }; } & { organization: { acceptInvitation: >(context: import("@better-fetch/fetch").RequestContext) => Promise | import("@better-fetch/fetch").RequestContext | void) | undefined; onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined; onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext) => Promise | void) | undefined; onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise | void) | undefined; onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise | void) | undefined; hookOptions?: { cloneResponse?: boolean; } | undefined; timeout?: number | undefined; customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined; plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined; baseURL?: string | undefined; throw?: boolean | undefined; auth?: ({ type: "Bearer"; token: string | Promise | (() => string | Promise | undefined) | undefined; } | { type: "Basic"; username: string | (() => string | undefined) | undefined; password: string | (() => string | undefined) | undefined; } | { type: "Custom"; prefix: string | (() => string | undefined) | undefined; value: string | (() => string | undefined) | undefined; }) | undefined; body?: (Partial<{ invitationId: string; }> & Record) | undefined; query?: (Partial> & Record) | undefined; params?: Record | undefined; duplex?: "full" | "half" | undefined; jsonParser?: ((text: string) => Promise | any) | undefined; retry?: import("@better-fetch/fetch").RetryOptions | undefined; retryAttempt?: number | undefined; output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined; errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined; disableValidation?: boolean | undefined; }>(data_0: import("better-auth").Prettify<{ invitationId: string; } & { fetchOptions?: FetchOptions | undefined; }>, data_1?: FetchOptions | undefined) => Promise>; }; } & { organization: { getInvitation: >(context: import("@better-fetch/fetch").RequestContext) => Promise | import("@better-fetch/fetch").RequestContext | void) | undefined; onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined; onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext) => Promise | void) | undefined; onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise | void) | undefined; onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise | void) | undefined; hookOptions?: { cloneResponse?: boolean; } | undefined; timeout?: number | undefined; customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined; plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined; baseURL?: string | undefined; throw?: boolean | undefined; auth?: ({ type: "Bearer"; token: string | Promise | (() => string | Promise | undefined) | undefined; } | { type: "Basic"; username: string | (() => string | undefined) | undefined; password: string | (() => string | undefined) | undefined; } | { type: "Custom"; prefix: string | (() => string | undefined) | undefined; value: string | (() => string | undefined) | undefined; }) | undefined; body?: undefined; query?: (Partial<{ id: string; }> & Record) | undefined; params?: Record | undefined; duplex?: "full" | "half" | undefined; jsonParser?: ((text: string) => Promise | any) | undefined; retry?: import("@better-fetch/fetch").RetryOptions | undefined; retryAttempt?: number | undefined; output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined; errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined; disableValidation?: boolean | undefined; }>(data_0: import("better-auth").Prettify<{ query: { id: string; }; fetchOptions?: FetchOptions | undefined; }>, data_1?: FetchOptions | undefined) => Promise, { code?: string; message?: string; }, FetchOptions["throw"] extends true ? true : false>>; }; } & { organization: { listInvitations: >(context: import("@better-fetch/fetch").RequestContext) => Promise | import("@better-fetch/fetch").RequestContext | void) | undefined; onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined; onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext) => Promise | void) | undefined; onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise | void) | undefined; onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise | void) | undefined; hookOptions?: { cloneResponse?: boolean; } | undefined; timeout?: number | undefined; customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined; plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined; baseURL?: string | undefined; throw?: boolean | undefined; auth?: ({ type: "Bearer"; token: string | Promise | (() => string | Promise | undefined) | undefined; } | { type: "Basic"; username: string | (() => string | undefined) | undefined; password: string | (() => string | undefined) | undefined; } | { type: "Custom"; prefix: string | (() => string | undefined) | undefined; value: string | (() => string | undefined) | undefined; }) | undefined; body?: undefined; query?: (Partial<{ organizationId?: string | undefined; }> & Record) | undefined; params?: Record | undefined; duplex?: "full" | "half" | undefined; jsonParser?: ((text: string) => Promise | any) | undefined; retry?: import("@better-fetch/fetch").RetryOptions | undefined; retryAttempt?: number | undefined; output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined; errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined; disableValidation?: boolean | undefined; }>(data_0?: import("better-auth").Prettify<{ query?: { organizationId?: string | undefined; } | undefined; fetchOptions?: FetchOptions | undefined; }> | undefined, data_1?: FetchOptions | undefined) => Promise>; }; } & { organization: { updateMemberRole: >(context: import("@better-fetch/fetch").RequestContext) => Promise | import("@better-fetch/fetch").RequestContext | void) | undefined; onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined; onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext) => Promise | void) | undefined; onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise | void) | undefined; onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise | void) | undefined; hookOptions?: { cloneResponse?: boolean; } | undefined; timeout?: number | undefined; customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined; plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined; baseURL?: string | undefined; throw?: boolean | undefined; auth?: ({ type: "Bearer"; token: string | Promise | (() => string | Promise | undefined) | undefined; } | { type: "Basic"; username: string | (() => string | undefined) | undefined; password: string | (() => string | undefined) | undefined; } | { type: "Custom"; prefix: string | (() => string | undefined) | undefined; value: string | (() => string | undefined) | undefined; }) | undefined; body?: (Partial<{ role: import("better-auth").LiteralString | "org:admin" | "org:member" | "org:reviewer" | import("better-auth").LiteralString[] | ("org:admin" | "org:member" | "org:reviewer")[]; memberId: string; organizationId?: string; }> & Record) | undefined; query?: (Partial> & Record) | undefined; params?: Record | undefined; duplex?: "full" | "half" | undefined; jsonParser?: ((text: string) => Promise | any) | undefined; retry?: import("@better-fetch/fetch").RetryOptions | undefined; retryAttempt?: number | undefined; output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined; errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined; disableValidation?: boolean | undefined; }>(data_0: import("better-auth").Prettify<{ role: import("better-auth").LiteralString | "org:admin" | "org:member" | "org:reviewer" | import("better-auth").LiteralString[] | ("org:admin" | "org:member" | "org:reviewer")[]; memberId: string; organizationId?: string; } & { fetchOptions?: FetchOptions | undefined; }>, data_1?: FetchOptions | undefined) => Promise>; }; } & { organization: { listUserInvitations: >(context: import("@better-fetch/fetch").RequestContext) => Promise | import("@better-fetch/fetch").RequestContext | void) | undefined; onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined; onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext) => Promise | void) | undefined; onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise | void) | undefined; onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise | void) | undefined; hookOptions?: { cloneResponse?: boolean; } | undefined; timeout?: number | undefined; customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined; plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined; baseURL?: string | undefined; throw?: boolean | undefined; auth?: ({ type: "Bearer"; token: string | Promise | (() => string | Promise | undefined) | undefined; } | { type: "Basic"; username: string | (() => string | undefined) | undefined; password: string | (() => string | undefined) | undefined; } | { type: "Custom"; prefix: string | (() => string | undefined) | undefined; value: string | (() => string | undefined) | undefined; }) | undefined; body?: undefined; query?: (Partial<{ email?: string | undefined; }> & Record) | undefined; params?: Record | undefined; duplex?: "full" | "half" | undefined; jsonParser?: ((text: string) => Promise | any) | undefined; retry?: import("@better-fetch/fetch").RetryOptions | undefined; retryAttempt?: number | undefined; output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined; errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined; disableValidation?: boolean | undefined; }>(data_0?: import("better-auth").Prettify<{ query?: { email?: string | undefined; } | undefined; fetchOptions?: FetchOptions | undefined; }> | undefined, data_1?: FetchOptions | undefined) => Promise>; }; } & { organization: { createTeam: >(context: import("@better-fetch/fetch").RequestContext) => Promise | import("@better-fetch/fetch").RequestContext | void) | undefined; onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined; onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext) => Promise | void) | undefined; onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise | void) | undefined; onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise | void) | undefined; hookOptions?: { cloneResponse?: boolean; } | undefined; timeout?: number | undefined; customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined; plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined; baseURL?: string | undefined; throw?: boolean | undefined; auth?: ({ type: "Bearer"; token: string | Promise | (() => string | Promise | undefined) | undefined; } | { type: "Basic"; username: string | (() => string | undefined) | undefined; password: string | (() => string | undefined) | undefined; } | { type: "Custom"; prefix: string | (() => string | undefined) | undefined; value: string | (() => string | undefined) | undefined; }) | undefined; body?: (Partial<{ name: string; organizationId?: string | undefined; }> & Record) | undefined; query?: (Partial> & Record) | undefined; params?: Record | undefined; duplex?: "full" | "half" | undefined; jsonParser?: ((text: string) => Promise | any) | undefined; retry?: import("@better-fetch/fetch").RetryOptions | undefined; retryAttempt?: number | undefined; output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined; errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined; disableValidation?: boolean | undefined; }>(data_0: import("better-auth").Prettify<{ name: string; organizationId?: string | undefined; } & { fetchOptions?: FetchOptions | undefined; }>, data_1?: FetchOptions | undefined) => Promise>; }; } & { organization: { updateTeam: >(context: import("@better-fetch/fetch").RequestContext) => Promise | import("@better-fetch/fetch").RequestContext | void) | undefined; onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined; onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext) => Promise | void) | undefined; onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise | void) | undefined; onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise | void) | undefined; hookOptions?: { cloneResponse?: boolean; } | undefined; timeout?: number | undefined; customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined; plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined; baseURL?: string | undefined; throw?: boolean | undefined; auth?: ({ type: "Bearer"; token: string | Promise | (() => string | Promise | undefined) | undefined; } | { type: "Basic"; username: string | (() => string | undefined) | undefined; password: string | (() => string | undefined) | undefined; } | { type: "Custom"; prefix: string | (() => string | undefined) | undefined; value: string | (() => string | undefined) | undefined; }) | undefined; body?: (Partial<{ teamId: string; data: Partial<{ name: string; organizationId: string; }>; }> & Record) | undefined; query?: (Partial> & Record) | undefined; params?: Record | undefined; duplex?: "full" | "half" | undefined; jsonParser?: ((text: string) => Promise | any) | undefined; retry?: import("@better-fetch/fetch").RetryOptions | undefined; retryAttempt?: number | undefined; output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined; errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined; disableValidation?: boolean | undefined; }>(data_0: import("better-auth").Prettify<{ teamId: string; data: Partial<{ name: string; organizationId: string; }>; } & { fetchOptions?: FetchOptions | undefined; }>, data_1?: FetchOptions | undefined) => Promise>; }; } & { organization: { hasPermission: >(context: import("@better-fetch/fetch").RequestContext) => Promise | import("@better-fetch/fetch").RequestContext | void) | undefined; onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined; onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext) => Promise | void) | undefined; onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise | void) | undefined; onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise | void) | undefined; hookOptions?: { cloneResponse?: boolean; } | undefined; timeout?: number | undefined; customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined; plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined; baseURL?: string | undefined; throw?: boolean | undefined; auth?: ({ type: "Bearer"; token: string | Promise | (() => string | Promise | undefined) | undefined; } | { type: "Basic"; username: string | (() => string | undefined) | undefined; password: string | (() => string | undefined) | undefined; } | { type: "Custom"; prefix: string | (() => string | undefined) | undefined; value: string | (() => string | undefined) | undefined; }) | undefined; body?: (Partial<({ permission: { access?: string[] | undefined; organization?: ("delete" | "update")[] | undefined; member?: ("delete" | "update" | "create")[] | undefined; invitation?: ("create" | "cancel")[] | undefined; team?: ("delete" | "update" | "create")[] | undefined; ac?: ("delete" | "update" | "create" | "read")[] | undefined; }; permissions?: never; } | { permissions: { access?: string[] | undefined; organization?: ("delete" | "update")[] | undefined; member?: ("delete" | "update" | "create")[] | undefined; invitation?: ("create" | "cancel")[] | undefined; team?: ("delete" | "update" | "create")[] | undefined; ac?: ("delete" | "update" | "create" | "read")[] | undefined; }; permission?: never; }) & { organizationId?: string; }> & Record) | undefined; query?: (Partial> & Record) | undefined; params?: Record | undefined; duplex?: "full" | "half" | undefined; jsonParser?: ((text: string) => Promise | any) | undefined; retry?: import("@better-fetch/fetch").RetryOptions | undefined; retryAttempt?: number | undefined; output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined; errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined; disableValidation?: boolean | undefined; }>(data_0: import("better-auth").Prettify<(({ permission: { access?: string[] | undefined; organization?: ("delete" | "update")[] | undefined; member?: ("delete" | "update" | "create")[] | undefined; invitation?: ("create" | "cancel")[] | undefined; team?: ("delete" | "update" | "create")[] | undefined; ac?: ("delete" | "update" | "create" | "read")[] | undefined; }; permissions?: never; } | { permissions: { access?: string[] | undefined; organization?: ("delete" | "update")[] | undefined; member?: ("delete" | "update" | "create")[] | undefined; invitation?: ("create" | "cancel")[] | undefined; team?: ("delete" | "update" | "create")[] | undefined; ac?: ("delete" | "update" | "create" | "read")[] | undefined; }; permission?: never; }) & { organizationId?: string; }) & { fetchOptions?: FetchOptions | undefined; }>, data_1?: FetchOptions | undefined) => Promise>; }; } & { signIn: { social: >(context: import("@better-fetch/fetch").RequestContext) => Promise | import("@better-fetch/fetch").RequestContext | void) | undefined; onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined; onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext) => Promise | void) | undefined; onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise | void) | undefined; onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise | void) | undefined; hookOptions?: { cloneResponse?: boolean; } | undefined; timeout?: number | undefined; customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined; plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined; baseURL?: string | undefined; throw?: boolean | undefined; auth?: ({ type: "Bearer"; token: string | Promise | (() => string | Promise | undefined) | undefined; } | { type: "Basic"; username: string | (() => string | undefined) | undefined; password: string | (() => string | undefined) | undefined; } | { type: "Custom"; prefix: string | (() => string | undefined) | undefined; value: string | (() => string | undefined) | undefined; }) | undefined; body?: (Partial<{ provider: unknown; callbackURL?: string | undefined; newUserCallbackURL?: string | undefined; errorCallbackURL?: string | undefined; disableRedirect?: boolean | undefined; idToken?: { token: string; nonce?: string | undefined; accessToken?: string | undefined; refreshToken?: string | undefined; expiresAt?: number | undefined; } | undefined; scopes?: string[] | undefined; requestSignUp?: boolean | undefined; loginHint?: string | undefined; }> & Record) | undefined; query?: (Partial> & Record) | undefined; params?: Record | undefined; duplex?: "full" | "half" | undefined; jsonParser?: ((text: string) => Promise | any) | undefined; retry?: import("@better-fetch/fetch").RetryOptions | undefined; retryAttempt?: number | undefined; output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined; errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined; disableValidation?: boolean | undefined; }>(data_0: import("better-auth").Prettify<{ provider: unknown; callbackURL?: string | undefined; newUserCallbackURL?: string | undefined; errorCallbackURL?: string | undefined; disableRedirect?: boolean | undefined; idToken?: { token: string; nonce?: string | undefined; accessToken?: string | undefined; refreshToken?: string | undefined; expiresAt?: number | undefined; } | undefined; scopes?: string[] | undefined; requestSignUp?: boolean | undefined; loginHint?: string | undefined; } & { fetchOptions?: FetchOptions | undefined; }>, data_1?: FetchOptions | undefined) => Promise, { code?: string; message?: string; }, FetchOptions["throw"] extends true ? true : false>>; }; } & { signOut: >(context: import("@better-fetch/fetch").RequestContext) => Promise | import("@better-fetch/fetch").RequestContext | void) | undefined; onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined; onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext) => Promise | void) | undefined; onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise | void) | undefined; onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise | void) | undefined; hookOptions?: { cloneResponse?: boolean; } | undefined; timeout?: number | undefined; customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined; plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined; baseURL?: string | undefined; throw?: boolean | undefined; auth?: ({ type: "Bearer"; token: string | Promise | (() => string | Promise | undefined) | undefined; } | { type: "Basic"; username: string | (() => string | undefined) | undefined; password: string | (() => string | undefined) | undefined; } | { type: "Custom"; prefix: string | (() => string | undefined) | undefined; value: string | (() => string | undefined) | undefined; }) | undefined; body?: undefined; query?: (Partial> & Record) | undefined; params?: Record | undefined; duplex?: "full" | "half" | undefined; jsonParser?: ((text: string) => Promise | any) | undefined; retry?: import("@better-fetch/fetch").RetryOptions | undefined; retryAttempt?: number | undefined; output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined; errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined; disableValidation?: boolean | undefined; }>(data_0?: import("better-auth").Prettify<{ query?: Record | undefined; fetchOptions?: FetchOptions | undefined; }> | undefined, data_1?: FetchOptions | undefined) => Promise>; } & { signUp: { email: >(context: import("@better-fetch/fetch").RequestContext) => Promise | import("@better-fetch/fetch").RequestContext | void) | undefined; onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined; onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext) => Promise | void) | undefined; onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise | void) | undefined; onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise | void) | undefined; hookOptions?: { cloneResponse?: boolean; } | undefined; timeout?: number | undefined; customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined; plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined; baseURL?: string | undefined; throw?: boolean | undefined; auth?: ({ type: "Bearer"; token: string | Promise | (() => string | Promise | undefined) | undefined; } | { type: "Basic"; username: string | (() => string | undefined) | undefined; password: string | (() => string | undefined) | undefined; } | { type: "Custom"; prefix: string | (() => string | undefined) | undefined; value: string | (() => string | undefined) | undefined; }) | undefined; body?: (Partial<{ name: string; email: string; password: string; image?: string; callbackURL?: string; rememberMe?: boolean; }> & Record) | undefined; query?: (Partial> & Record) | undefined; params?: Record | undefined; duplex?: "full" | "half" | undefined; jsonParser?: ((text: string) => Promise | any) | undefined; retry?: import("@better-fetch/fetch").RetryOptions | undefined; retryAttempt?: number | undefined; output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined; errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined; disableValidation?: boolean | undefined; }>(data_0: import("better-auth").Prettify<{ email: string; name: string; password: string; image?: string; callbackURL?: string; fetchOptions?: FetchOptions | undefined; }>, data_1?: FetchOptions | undefined) => Promise, { code?: string; message?: string; }, FetchOptions["throw"] extends true ? true : false>>; }; } & { signIn: { email: >(context: import("@better-fetch/fetch").RequestContext) => Promise | import("@better-fetch/fetch").RequestContext | void) | undefined; onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined; onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext) => Promise | void) | undefined; onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise | void) | undefined; onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise | void) | undefined; hookOptions?: { cloneResponse?: boolean; } | undefined; timeout?: number | undefined; customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined; plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined; baseURL?: string | undefined; throw?: boolean | undefined; auth?: ({ type: "Bearer"; token: string | Promise | (() => string | Promise | undefined) | undefined; } | { type: "Basic"; username: string | (() => string | undefined) | undefined; password: string | (() => string | undefined) | undefined; } | { type: "Custom"; prefix: string | (() => string | undefined) | undefined; value: string | (() => string | undefined) | undefined; }) | undefined; body?: (Partial<{ email: string; password: string; callbackURL?: string | undefined; rememberMe?: boolean | undefined; }> & Record) | undefined; query?: (Partial> & Record) | undefined; params?: Record | undefined; duplex?: "full" | "half" | undefined; jsonParser?: ((text: string) => Promise | any) | undefined; retry?: import("@better-fetch/fetch").RetryOptions | undefined; retryAttempt?: number | undefined; output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined; errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined; disableValidation?: boolean | undefined; }>(data_0: import("better-auth").Prettify<{ email: string; password: string; callbackURL?: string | undefined; rememberMe?: boolean | undefined; } & { fetchOptions?: FetchOptions | undefined; }>, data_1?: FetchOptions | undefined) => Promise>; }; } & { forgetPassword: >(context: import("@better-fetch/fetch").RequestContext) => Promise | import("@better-fetch/fetch").RequestContext | void) | undefined; onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined; onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext) => Promise | void) | undefined; onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise | void) | undefined; onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise | void) | undefined; hookOptions?: { cloneResponse?: boolean; } | undefined; timeout?: number | undefined; customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined; plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined; baseURL?: string | undefined; throw?: boolean | undefined; auth?: ({ type: "Bearer"; token: string | Promise | (() => string | Promise | undefined) | undefined; } | { type: "Basic"; username: string | (() => string | undefined) | undefined; password: string | (() => string | undefined) | undefined; } | { type: "Custom"; prefix: string | (() => string | undefined) | undefined; value: string | (() => string | undefined) | undefined; }) | undefined; body?: (Partial<{ email: string; redirectTo?: string | undefined; }> & Record) | undefined; query?: (Partial> & Record) | undefined; params?: Record | undefined; duplex?: "full" | "half" | undefined; jsonParser?: ((text: string) => Promise | any) | undefined; retry?: import("@better-fetch/fetch").RetryOptions | undefined; retryAttempt?: number | undefined; output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined; errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined; disableValidation?: boolean | undefined; }>(data_0: import("better-auth").Prettify<{ email: string; redirectTo?: string | undefined; } & { fetchOptions?: FetchOptions | undefined; }>, data_1?: FetchOptions | undefined) => Promise>; } & { resetPassword: >(context: import("@better-fetch/fetch").RequestContext) => Promise | import("@better-fetch/fetch").RequestContext | void) | undefined; onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined; onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext) => Promise | void) | undefined; onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise | void) | undefined; onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise | void) | undefined; hookOptions?: { cloneResponse?: boolean; } | undefined; timeout?: number | undefined; customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined; plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined; baseURL?: string | undefined; throw?: boolean | undefined; auth?: ({ type: "Bearer"; token: string | Promise | (() => string | Promise | undefined) | undefined; } | { type: "Basic"; username: string | (() => string | undefined) | undefined; password: string | (() => string | undefined) | undefined; } | { type: "Custom"; prefix: string | (() => string | undefined) | undefined; value: string | (() => string | undefined) | undefined; }) | undefined; body?: (Partial<{ newPassword: string; token?: string | undefined; }> & Record) | undefined; query?: (Partial<{ token?: string | undefined; }> & Record) | undefined; params?: Record | undefined; duplex?: "full" | "half" | undefined; jsonParser?: ((text: string) => Promise | any) | undefined; retry?: import("@better-fetch/fetch").RetryOptions | undefined; retryAttempt?: number | undefined; output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined; errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined; disableValidation?: boolean | undefined; }>(data_0: import("better-auth").Prettify<{ newPassword: string; token?: string | undefined; } & { fetchOptions?: FetchOptions | undefined; }>, data_1?: FetchOptions | undefined) => Promise>; } & { verifyEmail: >(context: import("@better-fetch/fetch").RequestContext) => Promise | import("@better-fetch/fetch").RequestContext | void) | undefined; onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined; onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext) => Promise | void) | undefined; onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise | void) | undefined; onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise | void) | undefined; hookOptions?: { cloneResponse?: boolean; } | undefined; timeout?: number | undefined; customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined; plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined; baseURL?: string | undefined; throw?: boolean | undefined; auth?: ({ type: "Bearer"; token: string | Promise | (() => string | Promise | undefined) | undefined; } | { type: "Basic"; username: string | (() => string | undefined) | undefined; password: string | (() => string | undefined) | undefined; } | { type: "Custom"; prefix: string | (() => string | undefined) | undefined; value: string | (() => string | undefined) | undefined; }) | undefined; body?: undefined; query?: (Partial<{ token: string; callbackURL?: string | undefined; }> & Record) | undefined; params?: Record | undefined; duplex?: "full" | "half" | undefined; jsonParser?: ((text: string) => Promise | any) | undefined; retry?: import("@better-fetch/fetch").RetryOptions | undefined; retryAttempt?: number | undefined; output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined; errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined; disableValidation?: boolean | undefined; }>(data_0: import("better-auth").Prettify<{ query: { token: string; callbackURL?: string | undefined; }; fetchOptions?: FetchOptions | undefined; }>, data_1?: FetchOptions | undefined) => Promise, { code?: string; message?: string; }, FetchOptions["throw"] extends true ? true : false>>; } & { sendVerificationEmail: >(context: import("@better-fetch/fetch").RequestContext) => Promise | import("@better-fetch/fetch").RequestContext | void) | undefined; onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined; onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext) => Promise | void) | undefined; onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise | void) | undefined; onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise | void) | undefined; hookOptions?: { cloneResponse?: boolean; } | undefined; timeout?: number | undefined; customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined; plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined; baseURL?: string | undefined; throw?: boolean | undefined; auth?: ({ type: "Bearer"; token: string | Promise | (() => string | Promise | undefined) | undefined; } | { type: "Basic"; username: string | (() => string | undefined) | undefined; password: string | (() => string | undefined) | undefined; } | { type: "Custom"; prefix: string | (() => string | undefined) | undefined; value: string | (() => string | undefined) | undefined; }) | undefined; body?: (Partial<{ email: string; callbackURL?: string | undefined; }> & Record) | undefined; query?: (Partial> & Record) | undefined; params?: Record | undefined; duplex?: "full" | "half" | undefined; jsonParser?: ((text: string) => Promise | any) | undefined; retry?: import("@better-fetch/fetch").RetryOptions | undefined; retryAttempt?: number | undefined; output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined; errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined; disableValidation?: boolean | undefined; }>(data_0: import("better-auth").Prettify<{ email: string; callbackURL?: string | undefined; } & { fetchOptions?: FetchOptions | undefined; }>, data_1?: FetchOptions | undefined) => Promise>; } & { changeEmail: >(context: import("@better-fetch/fetch").RequestContext) => Promise | import("@better-fetch/fetch").RequestContext | void) | undefined; onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined; onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext) => Promise | void) | undefined; onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise | void) | undefined; onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise | void) | undefined; hookOptions?: { cloneResponse?: boolean; } | undefined; timeout?: number | undefined; customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined; plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined; baseURL?: string | undefined; throw?: boolean | undefined; auth?: ({ type: "Bearer"; token: string | Promise | (() => string | Promise | undefined) | undefined; } | { type: "Basic"; username: string | (() => string | undefined) | undefined; password: string | (() => string | undefined) | undefined; } | { type: "Custom"; prefix: string | (() => string | undefined) | undefined; value: string | (() => string | undefined) | undefined; }) | undefined; body?: (Partial<{ newEmail: string; callbackURL?: string | undefined; }> & Record) | undefined; query?: (Partial> & Record) | undefined; params?: Record | undefined; duplex?: "full" | "half" | undefined; jsonParser?: ((text: string) => Promise | any) | undefined; retry?: import("@better-fetch/fetch").RetryOptions | undefined; retryAttempt?: number | undefined; output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined; errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined; disableValidation?: boolean | undefined; }>(data_0: import("better-auth").Prettify<{ newEmail: string; callbackURL?: string | undefined; } & { fetchOptions?: FetchOptions | undefined; }>, data_1?: FetchOptions | undefined) => Promise>; } & { changePassword: >(context: import("@better-fetch/fetch").RequestContext) => Promise | import("@better-fetch/fetch").RequestContext | void) | undefined; onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined; onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext) => Promise | void) | undefined; onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise | void) | undefined; onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise | void) | undefined; hookOptions?: { cloneResponse?: boolean; } | undefined; timeout?: number | undefined; customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined; plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined; baseURL?: string | undefined; throw?: boolean | undefined; auth?: ({ type: "Bearer"; token: string | Promise | (() => string | Promise | undefined) | undefined; } | { type: "Basic"; username: string | (() => string | undefined) | undefined; password: string | (() => string | undefined) | undefined; } | { type: "Custom"; prefix: string | (() => string | undefined) | undefined; value: string | (() => string | undefined) | undefined; }) | undefined; body?: (Partial<{ newPassword: string; currentPassword: string; revokeOtherSessions?: boolean | undefined; }> & Record) | undefined; query?: (Partial> & Record) | undefined; params?: Record | undefined; duplex?: "full" | "half" | undefined; jsonParser?: ((text: string) => Promise | any) | undefined; retry?: import("@better-fetch/fetch").RetryOptions | undefined; retryAttempt?: number | undefined; output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined; errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined; disableValidation?: boolean | undefined; }>(data_0: import("better-auth").Prettify<{ newPassword: string; currentPassword: string; revokeOtherSessions?: boolean | undefined; } & { fetchOptions?: FetchOptions | undefined; }>, data_1?: FetchOptions | undefined) => Promise>; } & { updateUser: >(context: import("@better-fetch/fetch").RequestContext) => Promise | import("@better-fetch/fetch").RequestContext | void) | undefined; onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined; onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext) => Promise | void) | undefined; onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise | void) | undefined; onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise | void) | undefined; hookOptions?: { cloneResponse?: boolean; } | undefined; timeout?: number | undefined; customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined; plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined; baseURL?: string | undefined; throw?: boolean | undefined; auth?: ({ type: "Bearer"; token: string | Promise | (() => string | Promise | undefined) | undefined; } | { type: "Basic"; username: string | (() => string | undefined) | undefined; password: string | (() => string | undefined) | undefined; } | { type: "Custom"; prefix: string | (() => string | undefined) | undefined; value: string | (() => string | undefined) | undefined; }) | undefined; body?: (Partial & { name?: string; image?: string; }> & Record) | undefined; query?: (Partial> & Record) | undefined; params?: Record | undefined; duplex?: "full" | "half" | undefined; jsonParser?: ((text: string) => Promise | any) | undefined; retry?: import("@better-fetch/fetch").RetryOptions | undefined; retryAttempt?: number | undefined; output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined; errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined; disableValidation?: boolean | undefined; }>(data_0?: import("better-auth").Prettify<{ image?: string | null; name?: string; fetchOptions?: FetchOptions | undefined; } & Partial<{}>> | undefined, data_1?: FetchOptions | undefined) => Promise>; } & { deleteUser: >(context: import("@better-fetch/fetch").RequestContext) => Promise | import("@better-fetch/fetch").RequestContext | void) | undefined; onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined; onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext) => Promise | void) | undefined; onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise | void) | undefined; onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise | void) | undefined; hookOptions?: { cloneResponse?: boolean; } | undefined; timeout?: number | undefined; customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined; plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined; baseURL?: string | undefined; throw?: boolean | undefined; auth?: ({ type: "Bearer"; token: string | Promise | (() => string | Promise | undefined) | undefined; } | { type: "Basic"; username: string | (() => string | undefined) | undefined; password: string | (() => string | undefined) | undefined; } | { type: "Custom"; prefix: string | (() => string | undefined) | undefined; value: string | (() => string | undefined) | undefined; }) | undefined; body?: (Partial<{ callbackURL?: string | undefined; password?: string | undefined; token?: string | undefined; }> & Record) | undefined; query?: (Partial> & Record) | undefined; params?: Record | undefined; duplex?: "full" | "half" | undefined; jsonParser?: ((text: string) => Promise | any) | undefined; retry?: import("@better-fetch/fetch").RetryOptions | undefined; retryAttempt?: number | undefined; output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined; errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined; disableValidation?: boolean | undefined; }>(data_0?: import("better-auth").Prettify<{ callbackURL?: string | undefined; password?: string | undefined; token?: string | undefined; } & { fetchOptions?: FetchOptions | undefined; }> | undefined, data_1?: FetchOptions | undefined) => Promise>; } & { resetPassword: { ":token": >(context: import("@better-fetch/fetch").RequestContext) => Promise | import("@better-fetch/fetch").RequestContext | void) | undefined; onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined; onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext) => Promise | void) | undefined; onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise | void) | undefined; onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise | void) | undefined; hookOptions?: { cloneResponse?: boolean; } | undefined; timeout?: number | undefined; customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined; plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined; baseURL?: string | undefined; throw?: boolean | undefined; auth?: ({ type: "Bearer"; token: string | Promise | (() => string | Promise | undefined) | undefined; } | { type: "Basic"; username: string | (() => string | undefined) | undefined; password: string | (() => string | undefined) | undefined; } | { type: "Custom"; prefix: string | (() => string | undefined) | undefined; value: string | (() => string | undefined) | undefined; }) | undefined; body?: undefined; query?: (Partial<{ callbackURL: string; }> & Record) | undefined; params?: { token: string; } | undefined; duplex?: "full" | "half" | undefined; jsonParser?: ((text: string) => Promise | any) | undefined; retry?: import("@better-fetch/fetch").RetryOptions | undefined; retryAttempt?: number | undefined; output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined; errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined; disableValidation?: boolean | undefined; }>(data_0: import("better-auth").Prettify<{ query: { callbackURL: string; }; fetchOptions?: FetchOptions | undefined; }>, data_1?: FetchOptions | undefined) => Promise>; }; } & { requestPasswordReset: >(context: import("@better-fetch/fetch").RequestContext) => Promise | import("@better-fetch/fetch").RequestContext | void) | undefined; onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined; onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext) => Promise | void) | undefined; onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise | void) | undefined; onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise | void) | undefined; hookOptions?: { cloneResponse?: boolean; } | undefined; timeout?: number | undefined; customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined; plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined; baseURL?: string | undefined; throw?: boolean | undefined; auth?: ({ type: "Bearer"; token: string | Promise | (() => string | Promise | undefined) | undefined; } | { type: "Basic"; username: string | (() => string | undefined) | undefined; password: string | (() => string | undefined) | undefined; } | { type: "Custom"; prefix: string | (() => string | undefined) | undefined; value: string | (() => string | undefined) | undefined; }) | undefined; body?: (Partial<{ email: string; redirectTo?: string | undefined; }> & Record) | undefined; query?: (Partial> & Record) | undefined; params?: Record | undefined; duplex?: "full" | "half" | undefined; jsonParser?: ((text: string) => Promise | any) | undefined; retry?: import("@better-fetch/fetch").RetryOptions | undefined; retryAttempt?: number | undefined; output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined; errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined; disableValidation?: boolean | undefined; }>(data_0: import("better-auth").Prettify<{ email: string; redirectTo?: string | undefined; } & { fetchOptions?: FetchOptions | undefined; }>, data_1?: FetchOptions | undefined) => Promise>; } & { resetPassword: { ":token": >(context: import("@better-fetch/fetch").RequestContext) => Promise | import("@better-fetch/fetch").RequestContext | void) | undefined; onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined; onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext) => Promise | void) | undefined; onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise | void) | undefined; onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise | void) | undefined; hookOptions?: { cloneResponse?: boolean; } | undefined; timeout?: number | undefined; customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined; plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined; baseURL?: string | undefined; throw?: boolean | undefined; auth?: ({ type: "Bearer"; token: string | Promise | (() => string | Promise | undefined) | undefined; } | { type: "Basic"; username: string | (() => string | undefined) | undefined; password: string | (() => string | undefined) | undefined; } | { type: "Custom"; prefix: string | (() => string | undefined) | undefined; value: string | (() => string | undefined) | undefined; }) | undefined; body?: undefined; query?: (Partial<{ callbackURL: string; }> & Record) | undefined; params?: { token: string; } | undefined; duplex?: "full" | "half" | undefined; jsonParser?: ((text: string) => Promise | any) | undefined; retry?: import("@better-fetch/fetch").RetryOptions | undefined; retryAttempt?: number | undefined; output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined; errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined; disableValidation?: boolean | undefined; }>(data_0: import("better-auth").Prettify<{ query: { callbackURL: string; }; fetchOptions?: FetchOptions | undefined; }>, data_1?: FetchOptions | undefined) => Promise>; }; } & { listSessions: >(context: import("@better-fetch/fetch").RequestContext) => Promise | import("@better-fetch/fetch").RequestContext | void) | undefined; onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined; onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext) => Promise | void) | undefined; onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise | void) | undefined; onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise | void) | undefined; hookOptions?: { cloneResponse?: boolean; } | undefined; timeout?: number | undefined; customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined; plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined; baseURL?: string | undefined; throw?: boolean | undefined; auth?: ({ type: "Bearer"; token: string | Promise | (() => string | Promise | undefined) | undefined; } | { type: "Basic"; username: string | (() => string | undefined) | undefined; password: string | (() => string | undefined) | undefined; } | { type: "Custom"; prefix: string | (() => string | undefined) | undefined; value: string | (() => string | undefined) | undefined; }) | undefined; body?: undefined; query?: (Partial> & Record) | undefined; params?: Record | undefined; duplex?: "full" | "half" | undefined; jsonParser?: ((text: string) => Promise | any) | undefined; retry?: import("@better-fetch/fetch").RetryOptions | undefined; retryAttempt?: number | undefined; output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined; errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined; disableValidation?: boolean | undefined; }>(data_0?: import("better-auth").Prettify<{ query?: Record | undefined; fetchOptions?: FetchOptions | undefined; }> | undefined, data_1?: FetchOptions | undefined) => Promise[], { code?: string; message?: string; }, FetchOptions["throw"] extends true ? true : false>>; } & { revokeSession: >(context: import("@better-fetch/fetch").RequestContext) => Promise | import("@better-fetch/fetch").RequestContext | void) | undefined; onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined; onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext) => Promise | void) | undefined; onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise | void) | undefined; onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise | void) | undefined; hookOptions?: { cloneResponse?: boolean; } | undefined; timeout?: number | undefined; customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined; plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined; baseURL?: string | undefined; throw?: boolean | undefined; auth?: ({ type: "Bearer"; token: string | Promise | (() => string | Promise | undefined) | undefined; } | { type: "Basic"; username: string | (() => string | undefined) | undefined; password: string | (() => string | undefined) | undefined; } | { type: "Custom"; prefix: string | (() => string | undefined) | undefined; value: string | (() => string | undefined) | undefined; }) | undefined; body?: (Partial<{ token: string; }> & Record) | undefined; query?: (Partial> & Record) | undefined; params?: Record | undefined; duplex?: "full" | "half" | undefined; jsonParser?: ((text: string) => Promise | any) | undefined; retry?: import("@better-fetch/fetch").RetryOptions | undefined; retryAttempt?: number | undefined; output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined; errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined; disableValidation?: boolean | undefined; }>(data_0: import("better-auth").Prettify<{ token: string; } & { fetchOptions?: FetchOptions | undefined; }>, data_1?: FetchOptions | undefined) => Promise>; } & { revokeSessions: >(context: import("@better-fetch/fetch").RequestContext) => Promise | import("@better-fetch/fetch").RequestContext | void) | undefined; onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined; onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext) => Promise | void) | undefined; onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise | void) | undefined; onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise | void) | undefined; hookOptions?: { cloneResponse?: boolean; } | undefined; timeout?: number | undefined; customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined; plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined; baseURL?: string | undefined; throw?: boolean | undefined; auth?: ({ type: "Bearer"; token: string | Promise | (() => string | Promise | undefined) | undefined; } | { type: "Basic"; username: string | (() => string | undefined) | undefined; password: string | (() => string | undefined) | undefined; } | { type: "Custom"; prefix: string | (() => string | undefined) | undefined; value: string | (() => string | undefined) | undefined; }) | undefined; body?: undefined; query?: (Partial> & Record) | undefined; params?: Record | undefined; duplex?: "full" | "half" | undefined; jsonParser?: ((text: string) => Promise | any) | undefined; retry?: import("@better-fetch/fetch").RetryOptions | undefined; retryAttempt?: number | undefined; output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined; errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined; disableValidation?: boolean | undefined; }>(data_0?: import("better-auth").Prettify<{ query?: Record | undefined; fetchOptions?: FetchOptions | undefined; }> | undefined, data_1?: FetchOptions | undefined) => Promise>; } & { revokeOtherSessions: >(context: import("@better-fetch/fetch").RequestContext) => Promise | import("@better-fetch/fetch").RequestContext | void) | undefined; onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined; onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext) => Promise | void) | undefined; onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise | void) | undefined; onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise | void) | undefined; hookOptions?: { cloneResponse?: boolean; } | undefined; timeout?: number | undefined; customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined; plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined; baseURL?: string | undefined; throw?: boolean | undefined; auth?: ({ type: "Bearer"; token: string | Promise | (() => string | Promise | undefined) | undefined; } | { type: "Basic"; username: string | (() => string | undefined) | undefined; password: string | (() => string | undefined) | undefined; } | { type: "Custom"; prefix: string | (() => string | undefined) | undefined; value: string | (() => string | undefined) | undefined; }) | undefined; body?: undefined; query?: (Partial> & Record) | undefined; params?: Record | undefined; duplex?: "full" | "half" | undefined; jsonParser?: ((text: string) => Promise | any) | undefined; retry?: import("@better-fetch/fetch").RetryOptions | undefined; retryAttempt?: number | undefined; output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined; errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined; disableValidation?: boolean | undefined; }>(data_0?: import("better-auth").Prettify<{ query?: Record | undefined; fetchOptions?: FetchOptions | undefined; }> | undefined, data_1?: FetchOptions | undefined) => Promise>; } & { linkSocial: >(context: import("@better-fetch/fetch").RequestContext) => Promise | import("@better-fetch/fetch").RequestContext | void) | undefined; onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined; onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext) => Promise | void) | undefined; onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise | void) | undefined; onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise | void) | undefined; hookOptions?: { cloneResponse?: boolean; } | undefined; timeout?: number | undefined; customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined; plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined; baseURL?: string | undefined; throw?: boolean | undefined; auth?: ({ type: "Bearer"; token: string | Promise | (() => string | Promise | undefined) | undefined; } | { type: "Basic"; username: string | (() => string | undefined) | undefined; password: string | (() => string | undefined) | undefined; } | { type: "Custom"; prefix: string | (() => string | undefined) | undefined; value: string | (() => string | undefined) | undefined; }) | undefined; body?: (Partial<{ provider: unknown; callbackURL?: string | undefined; idToken?: { token: string; nonce?: string | undefined; accessToken?: string | undefined; refreshToken?: string | undefined; scopes?: string[] | undefined; } | undefined; requestSignUp?: boolean | undefined; scopes?: string[] | undefined; errorCallbackURL?: string | undefined; disableRedirect?: boolean | undefined; }> & Record) | undefined; query?: (Partial> & Record) | undefined; params?: Record | undefined; duplex?: "full" | "half" | undefined; jsonParser?: ((text: string) => Promise | any) | undefined; retry?: import("@better-fetch/fetch").RetryOptions | undefined; retryAttempt?: number | undefined; output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined; errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined; disableValidation?: boolean | undefined; }>(data_0: import("better-auth").Prettify<{ provider: unknown; callbackURL?: string | undefined; idToken?: { token: string; nonce?: string | undefined; accessToken?: string | undefined; refreshToken?: string | undefined; scopes?: string[] | undefined; } | undefined; requestSignUp?: boolean | undefined; scopes?: string[] | undefined; errorCallbackURL?: string | undefined; disableRedirect?: boolean | undefined; } & { fetchOptions?: FetchOptions | undefined; }>, data_1?: FetchOptions | undefined) => Promise>; } & { listAccounts: >(context: import("@better-fetch/fetch").RequestContext) => Promise | import("@better-fetch/fetch").RequestContext | void) | undefined; onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined; onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext) => Promise | void) | undefined; onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise | void) | undefined; onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise | void) | undefined; hookOptions?: { cloneResponse?: boolean; } | undefined; timeout?: number | undefined; customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined; plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined; baseURL?: string | undefined; throw?: boolean | undefined; auth?: ({ type: "Bearer"; token: string | Promise | (() => string | Promise | undefined) | undefined; } | { type: "Basic"; username: string | (() => string | undefined) | undefined; password: string | (() => string | undefined) | undefined; } | { type: "Custom"; prefix: string | (() => string | undefined) | undefined; value: string | (() => string | undefined) | undefined; }) | undefined; body?: undefined; query?: (Partial> & Record) | undefined; params?: Record | undefined; duplex?: "full" | "half" | undefined; jsonParser?: ((text: string) => Promise | any) | undefined; retry?: import("@better-fetch/fetch").RetryOptions | undefined; retryAttempt?: number | undefined; output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined; errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined; disableValidation?: boolean | undefined; }>(data_0?: import("better-auth").Prettify<{ query?: Record | undefined; fetchOptions?: FetchOptions | undefined; }> | undefined, data_1?: FetchOptions | undefined) => Promise>; } & { deleteUser: { callback: >(context: import("@better-fetch/fetch").RequestContext) => Promise | import("@better-fetch/fetch").RequestContext | void) | undefined; onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined; onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext) => Promise | void) | undefined; onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise | void) | undefined; onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise | void) | undefined; hookOptions?: { cloneResponse?: boolean; } | undefined; timeout?: number | undefined; customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined; plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined; baseURL?: string | undefined; throw?: boolean | undefined; auth?: ({ type: "Bearer"; token: string | Promise | (() => string | Promise | undefined) | undefined; } | { type: "Basic"; username: string | (() => string | undefined) | undefined; password: string | (() => string | undefined) | undefined; } | { type: "Custom"; prefix: string | (() => string | undefined) | undefined; value: string | (() => string | undefined) | undefined; }) | undefined; body?: undefined; query?: (Partial<{ token: string; callbackURL?: string | undefined; }> & Record) | undefined; params?: Record | undefined; duplex?: "full" | "half" | undefined; jsonParser?: ((text: string) => Promise | any) | undefined; retry?: import("@better-fetch/fetch").RetryOptions | undefined; retryAttempt?: number | undefined; output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined; errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined; disableValidation?: boolean | undefined; }>(data_0: import("better-auth").Prettify<{ query: { token: string; callbackURL?: string | undefined; }; fetchOptions?: FetchOptions | undefined; }>, data_1?: FetchOptions | undefined) => Promise>; }; } & { unlinkAccount: >(context: import("@better-fetch/fetch").RequestContext) => Promise | import("@better-fetch/fetch").RequestContext | void) | undefined; onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined; onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext) => Promise | void) | undefined; onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise | void) | undefined; onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise | void) | undefined; hookOptions?: { cloneResponse?: boolean; } | undefined; timeout?: number | undefined; customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined; plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined; baseURL?: string | undefined; throw?: boolean | undefined; auth?: ({ type: "Bearer"; token: string | Promise | (() => string | Promise | undefined) | undefined; } | { type: "Basic"; username: string | (() => string | undefined) | undefined; password: string | (() => string | undefined) | undefined; } | { type: "Custom"; prefix: string | (() => string | undefined) | undefined; value: string | (() => string | undefined) | undefined; }) | undefined; body?: (Partial<{ providerId: string; accountId?: string | undefined; }> & Record) | undefined; query?: (Partial> & Record) | undefined; params?: Record | undefined; duplex?: "full" | "half" | undefined; jsonParser?: ((text: string) => Promise | any) | undefined; retry?: import("@better-fetch/fetch").RetryOptions | undefined; retryAttempt?: number | undefined; output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined; errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined; disableValidation?: boolean | undefined; }>(data_0: import("better-auth").Prettify<{ providerId: string; accountId?: string | undefined; } & { fetchOptions?: FetchOptions | undefined; }>, data_1?: FetchOptions | undefined) => Promise>; } & { refreshToken: >(context: import("@better-fetch/fetch").RequestContext) => Promise | import("@better-fetch/fetch").RequestContext | void) | undefined; onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined; onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext) => Promise | void) | undefined; onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise | void) | undefined; onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise | void) | undefined; hookOptions?: { cloneResponse?: boolean; } | undefined; timeout?: number | undefined; customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined; plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined; baseURL?: string | undefined; throw?: boolean | undefined; auth?: ({ type: "Bearer"; token: string | Promise | (() => string | Promise | undefined) | undefined; } | { type: "Basic"; username: string | (() => string | undefined) | undefined; password: string | (() => string | undefined) | undefined; } | { type: "Custom"; prefix: string | (() => string | undefined) | undefined; value: string | (() => string | undefined) | undefined; }) | undefined; body?: (Partial<{ providerId: string; accountId?: string | undefined; userId?: string | undefined; }> & Record) | undefined; query?: (Partial> & Record) | undefined; params?: Record | undefined; duplex?: "full" | "half" | undefined; jsonParser?: ((text: string) => Promise | any) | undefined; retry?: import("@better-fetch/fetch").RetryOptions | undefined; retryAttempt?: number | undefined; output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined; errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined; disableValidation?: boolean | undefined; }>(data_0: import("better-auth").Prettify<{ providerId: string; accountId?: string | undefined; userId?: string | undefined; } & { fetchOptions?: FetchOptions | undefined; }>, data_1?: FetchOptions | undefined) => Promise>; } & { getAccessToken: >(context: import("@better-fetch/fetch").RequestContext) => Promise | import("@better-fetch/fetch").RequestContext | void) | undefined; onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined; onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext) => Promise | void) | undefined; onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise | void) | undefined; onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise | void) | undefined; hookOptions?: { cloneResponse?: boolean; } | undefined; timeout?: number | undefined; customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined; plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined; baseURL?: string | undefined; throw?: boolean | undefined; auth?: ({ type: "Bearer"; token: string | Promise | (() => string | Promise | undefined) | undefined; } | { type: "Basic"; username: string | (() => string | undefined) | undefined; password: string | (() => string | undefined) | undefined; } | { type: "Custom"; prefix: string | (() => string | undefined) | undefined; value: string | (() => string | undefined) | undefined; }) | undefined; body?: (Partial<{ providerId: string; accountId?: string | undefined; userId?: string | undefined; }> & Record) | undefined; query?: (Partial> & Record) | undefined; params?: Record | undefined; duplex?: "full" | "half" | undefined; jsonParser?: ((text: string) => Promise | any) | undefined; retry?: import("@better-fetch/fetch").RetryOptions | undefined; retryAttempt?: number | undefined; output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined; errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined; disableValidation?: boolean | undefined; }>(data_0: import("better-auth").Prettify<{ providerId: string; accountId?: string | undefined; userId?: string | undefined; } & { fetchOptions?: FetchOptions | undefined; }>, data_1?: FetchOptions | undefined) => Promise>; } & { accountInfo: >(context: import("@better-fetch/fetch").RequestContext) => Promise | import("@better-fetch/fetch").RequestContext | void) | undefined; onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined; onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext) => Promise | void) | undefined; onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise | void) | undefined; onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise | void) | undefined; hookOptions?: { cloneResponse?: boolean; } | undefined; timeout?: number | undefined; customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined; plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined; baseURL?: string | undefined; throw?: boolean | undefined; auth?: ({ type: "Bearer"; token: string | Promise | (() => string | Promise | undefined) | undefined; } | { type: "Basic"; username: string | (() => string | undefined) | undefined; password: string | (() => string | undefined) | undefined; } | { type: "Custom"; prefix: string | (() => string | undefined) | undefined; value: string | (() => string | undefined) | undefined; }) | undefined; body?: (Partial<{ accountId: string; }> & Record) | undefined; query?: (Partial> & Record) | undefined; params?: Record | undefined; duplex?: "full" | "half" | undefined; jsonParser?: ((text: string) => Promise | any) | undefined; retry?: import("@better-fetch/fetch").RetryOptions | undefined; retryAttempt?: number | undefined; output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined; errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined; disableValidation?: boolean | undefined; }>(data_0: import("better-auth").Prettify<{ accountId: string; } & { fetchOptions?: FetchOptions | undefined; }>, data_1?: FetchOptions | undefined) => Promise; }, { code?: string; message?: string; }, FetchOptions["throw"] extends true ? true : false>>; } & { getSession: >(context: import("@better-fetch/fetch").RequestContext) => Promise | import("@better-fetch/fetch").RequestContext | void) | undefined; onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined; onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext) => Promise | void) | undefined; onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise | void) | undefined; onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise | void) | undefined; hookOptions?: { cloneResponse?: boolean; } | undefined; timeout?: number | undefined; customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined; plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined; baseURL?: string | undefined; throw?: boolean | undefined; auth?: ({ type: "Bearer"; token: string | Promise | (() => string | Promise | undefined) | undefined; } | { type: "Basic"; username: string | (() => string | undefined) | undefined; password: string | (() => string | undefined) | undefined; } | { type: "Custom"; prefix: string | (() => string | undefined) | undefined; value: string | (() => string | undefined) | undefined; }) | undefined; body?: undefined; query?: (Partial<{ disableCookieCache?: unknown; disableRefresh?: unknown; }> & Record) | undefined; params?: Record | undefined; duplex?: "full" | "half" | undefined; jsonParser?: ((text: string) => Promise | any) | undefined; retry?: import("@better-fetch/fetch").RetryOptions | undefined; retryAttempt?: number | undefined; output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined; errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined; disableValidation?: boolean | undefined; }>(data_0?: import("better-auth").Prettify<{ query?: { disableCookieCache?: unknown; disableRefresh?: unknown; } | undefined; fetchOptions?: FetchOptions | undefined; }> | undefined, data_1?: FetchOptions | undefined) => Promise>; } & { $Infer: { ActiveOrganization: { members: { id: string; organizationId: string; role: "org:admin" | "org:member" | "org:reviewer"; createdAt: Date; userId: string; teamId?: string; user: { email: string; name: string; image?: string; }; }[]; invitations: { id: string; organizationId: string; email: string; role: "org:admin" | "org:member" | "org:reviewer"; status: import("better-auth/plugins").InvitationStatus; inviterId: string; expiresAt: Date; teamId?: string; }[]; teams: import("better-auth/plugins").Team[]; } & { id: string; name: string; slug: string; createdAt: Date; logo?: string | null | undefined; metadata?: any; }; Organization: import("better-auth/plugins").Organization; Invitation: { id: string; organizationId: string; email: string; role: "org:admin" | "org:member" | "org:reviewer"; status: import("better-auth/plugins").InvitationStatus; inviterId: string; expiresAt: Date; teamId?: string; }; Member: { id: string; organizationId: string; role: "org:admin" | "org:member" | "org:reviewer"; createdAt: Date; userId: string; teamId?: string; user: { email: string; name: string; image?: string; }; }; Team: import("better-auth/plugins").Team; }; organization: { checkRolePermission: (data: ({ permission: { access?: string[] | undefined; organization?: ("delete" | "update")[] | undefined; member?: ("delete" | "update" | "create")[] | undefined; invitation?: ("create" | "cancel")[] | undefined; team?: ("delete" | "update" | "create")[] | undefined; ac?: ("delete" | "update" | "create" | "read")[] | undefined; }; permissions?: never; } | { permissions: { access?: string[] | undefined; organization?: ("delete" | "update")[] | undefined; member?: ("delete" | "update" | "create")[] | undefined; invitation?: ("create" | "cancel")[] | undefined; team?: ("delete" | "update" | "create")[] | undefined; ac?: ("delete" | "update" | "create" | "read")[] | undefined; }; permission?: never; }) & { role: R; }) => boolean; }; } & { useSession: import("nanostores").Atom<{ data: { user: { id: string; createdAt: Date; updatedAt: Date; email: string; emailVerified: boolean; name: string; image?: string | null | undefined; }; session: { id: string; createdAt: Date; updatedAt: Date; userId: string; expiresAt: Date; token: string; ipAddress?: string | null | undefined; userAgent?: string | null | undefined; activeOrganizationId?: string | null | undefined; activeTeamId?: string | null | undefined; }; } | null; error: import("@better-fetch/fetch").BetterFetchError | null; isPending: boolean; }>; $fetch: import("@better-fetch/fetch").BetterFetch<{ plugins: (import("@better-fetch/fetch").BetterFetchPlugin | { id: string; name: string; hooks: { onSuccess: ((context: import("@better-fetch/fetch").SuccessContext) => Promise | void) | undefined; onError: ((context: import("@better-fetch/fetch").ErrorContext) => Promise | void) | undefined; onRequest: (>(context: import("@better-fetch/fetch").RequestContext) => Promise | import("@better-fetch/fetch").RequestContext | void) | undefined; onResponse: ((context: import("@better-fetch/fetch").ResponseContext) => Promise | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined; }; } | { id: string; name: string; hooks: { onSuccess(context: import("@better-fetch/fetch").SuccessContext): void; }; })[]; cache?: RequestCache | undefined; credentials?: RequestCredentials; 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; integrity?: string | undefined; keepalive?: boolean | undefined; method: string; mode?: RequestMode | undefined; priority?: RequestPriority | undefined; redirect?: RequestRedirect | undefined; referrer?: string | undefined; referrerPolicy?: ReferrerPolicy | undefined; signal?: (AbortSignal | null) | undefined; window?: null | undefined; onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise | void) | undefined; hookOptions?: { cloneResponse?: boolean; } | undefined; timeout?: number | undefined; customFetchImpl: import("@better-fetch/fetch").FetchEsque; baseURL: string; throw?: boolean | undefined; auth?: ({ type: "Bearer"; token: string | Promise | (() => string | Promise | undefined) | undefined; } | { type: "Basic"; username: string | (() => string | undefined) | undefined; password: string | (() => string | undefined) | undefined; } | { type: "Custom"; prefix: string | (() => string | undefined) | undefined; value: string | (() => string | undefined) | undefined; }) | undefined; body?: any; query?: any; params?: any; duplex?: "full" | "half" | undefined; jsonParser: (text: string) => Promise | any; retry?: import("@better-fetch/fetch").RetryOptions | undefined; retryAttempt?: number | undefined; output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined; errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined; disableValidation?: boolean | undefined; }, unknown, unknown, {}>; $store: { notify: (signal?: Omit | "$sessionSignal") => void; listen: (signal: Omit | "$sessionSignal", listener: (value: boolean, oldValue?: boolean | undefined) => void) => void; atoms: Record>; }; $Infer: { Session: { user: { id: string; createdAt: Date; updatedAt: Date; email: string; emailVerified: boolean; name: string; image?: string | null | undefined; }; session: { id: string; createdAt: Date; updatedAt: Date; userId: string; expiresAt: Date; token: string; ipAddress?: string | null | undefined; userAgent?: string | null | undefined; activeOrganizationId?: string | null | undefined; activeTeamId?: string | null | undefined; }; }; }; $ERROR_CODES: { readonly USER_NOT_FOUND: "User not found"; readonly FAILED_TO_CREATE_USER: "Failed to create user"; readonly FAILED_TO_CREATE_SESSION: "Failed to create session"; readonly FAILED_TO_UPDATE_USER: "Failed to update user"; readonly FAILED_TO_GET_SESSION: "Failed to get session"; readonly INVALID_PASSWORD: "Invalid password"; readonly INVALID_EMAIL: "Invalid email"; readonly INVALID_EMAIL_OR_PASSWORD: "Invalid email or password"; readonly SOCIAL_ACCOUNT_ALREADY_LINKED: "Social account already linked"; readonly PROVIDER_NOT_FOUND: "Provider not found"; readonly INVALID_TOKEN: "Invalid token"; readonly ID_TOKEN_NOT_SUPPORTED: "id_token not supported"; readonly FAILED_TO_GET_USER_INFO: "Failed to get user info"; readonly USER_EMAIL_NOT_FOUND: "User email not found"; readonly EMAIL_NOT_VERIFIED: "Email not verified"; readonly PASSWORD_TOO_SHORT: "Password too short"; readonly PASSWORD_TOO_LONG: "Password too long"; readonly USER_ALREADY_EXISTS: "User already exists."; readonly USER_ALREADY_EXISTS_USE_ANOTHER_EMAIL: "User already exists. Use another email."; readonly EMAIL_CAN_NOT_BE_UPDATED: "Email can not be updated"; readonly CREDENTIAL_ACCOUNT_NOT_FOUND: "Credential account not found"; readonly SESSION_EXPIRED: "Session expired. Re-authenticate to perform this action."; readonly FAILED_TO_UNLINK_LAST_ACCOUNT: "You can't unlink your last account"; readonly ACCOUNT_NOT_FOUND: "Account not found"; readonly USER_ALREADY_HAS_PASSWORD: "User already has a password. Provide that to delete the account."; }; }; getToken: () => Promise; refreshToken: () => Promise; }; }> & import("#app").ObjectPlugin<{ auth: { client: { useActiveOrganization: import("nanostores").PreinitializedWritableAtom<{ data: import("better-auth").Prettify<{ id: string; name: string; slug: string; createdAt: Date; logo?: string | null | undefined; metadata?: any; } & { members: (import("better-auth/plugins").Member & { user: { id: string; name: string; email: string; image: string | undefined; }; })[]; invitations: import("better-auth/plugins").Invitation[]; }> | null; error: null | import("@better-fetch/fetch").BetterFetchError; isPending: boolean; isRefetching: boolean; refetch: (queryParams?: { query?: import("better-auth").SessionQueryParams; } | undefined) => void; }> & object; useListOrganizations: import("nanostores").PreinitializedWritableAtom<{ data: { id: string; name: string; slug: string; createdAt: Date; logo?: string | null | undefined; metadata?: any; }[] | null; error: null | import("@better-fetch/fetch").BetterFetchError; isPending: boolean; isRefetching: boolean; refetch: (queryParams?: { query?: import("better-auth").SessionQueryParams; } | undefined) => void; }> & object; useActiveMember: import("nanostores").PreinitializedWritableAtom<{ data: { id: string; organizationId: string; userId: string; role: string; createdAt: Date; } | null; error: null | import("@better-fetch/fetch").BetterFetchError; isPending: boolean; isRefetching: boolean; refetch: (queryParams?: { query?: import("better-auth").SessionQueryParams; } | undefined) => void; }> & object; useActiveMemberRole: import("nanostores").PreinitializedWritableAtom<{ data: { role: string; } | null; error: null | import("@better-fetch/fetch").BetterFetchError; isPending: boolean; isRefetching: boolean; refetch: (queryParams?: { query?: import("better-auth").SessionQueryParams; } | undefined) => void; }> & object; } & { customEndpoints: { teams: { ":id": { members: >(context: import("@better-fetch/fetch").RequestContext) => Promise | import("@better-fetch/fetch").RequestContext | void) | undefined; onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined; onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext) => Promise | void) | undefined; onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise | void) | undefined; onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise | void) | undefined; hookOptions?: { cloneResponse?: boolean; } | undefined; timeout?: number | undefined; customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined; plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined; baseURL?: string | undefined; throw?: boolean | undefined; auth?: ({ type: "Bearer"; token: string | Promise | (() => string | Promise | undefined) | undefined; } | { type: "Basic"; username: string | (() => string | undefined) | undefined; password: string | (() => string | undefined) | undefined; } | { type: "Custom"; prefix: string | (() => string | undefined) | undefined; value: string | (() => string | undefined) | undefined; }) | undefined; body?: undefined; query?: (Partial> & Record) | undefined; params?: { id: string; } | undefined; duplex?: "full" | "half" | undefined; jsonParser?: ((text: string) => Promise | any) | undefined; retry?: import("@better-fetch/fetch").RetryOptions | undefined; retryAttempt?: number | undefined; output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined; errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined; disableValidation?: boolean | undefined; }>(data_0?: import("better-auth").Prettify<{ query?: Record | undefined; fetchOptions?: FetchOptions | undefined; }> | undefined, data_1?: FetchOptions | undefined) => Promise>; }; }; }; } & { organization: { rejectInvitation: >(context: import("@better-fetch/fetch").RequestContext) => Promise | import("@better-fetch/fetch").RequestContext | void) | undefined; onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined; onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext) => Promise | void) | undefined; onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise | void) | undefined; onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise | void) | undefined; hookOptions?: { cloneResponse?: boolean; } | undefined; timeout?: number | undefined; customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined; plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined; baseURL?: string | undefined; throw?: boolean | undefined; auth?: ({ type: "Bearer"; token: string | Promise | (() => string | Promise | undefined) | undefined; } | { type: "Basic"; username: string | (() => string | undefined) | undefined; password: string | (() => string | undefined) | undefined; } | { type: "Custom"; prefix: string | (() => string | undefined) | undefined; value: string | (() => string | undefined) | undefined; }) | undefined; body?: (Partial<{ invitationId: string; }> & Record) | undefined; query?: (Partial> & Record) | undefined; params?: Record | undefined; duplex?: "full" | "half" | undefined; jsonParser?: ((text: string) => Promise | any) | undefined; retry?: import("@better-fetch/fetch").RetryOptions | undefined; retryAttempt?: number | undefined; output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined; errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined; disableValidation?: boolean | undefined; }>(data_0: import("better-auth").Prettify<{ invitationId: string; } & { fetchOptions?: FetchOptions | undefined; }>, data_1?: FetchOptions | undefined) => Promise>; }; } & { organization: { getActiveMember: >(context: import("@better-fetch/fetch").RequestContext) => Promise | import("@better-fetch/fetch").RequestContext | void) | undefined; onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined; onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext) => Promise | void) | undefined; onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise | void) | undefined; onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise | void) | undefined; hookOptions?: { cloneResponse?: boolean; } | undefined; timeout?: number | undefined; customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined; plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined; baseURL?: string | undefined; throw?: boolean | undefined; auth?: ({ type: "Bearer"; token: string | Promise | (() => string | Promise | undefined) | undefined; } | { type: "Basic"; username: string | (() => string | undefined) | undefined; password: string | (() => string | undefined) | undefined; } | { type: "Custom"; prefix: string | (() => string | undefined) | undefined; value: string | (() => string | undefined) | undefined; }) | undefined; body?: undefined; query?: (Partial> & Record) | undefined; params?: Record | undefined; duplex?: "full" | "half" | undefined; jsonParser?: ((text: string) => Promise | any) | undefined; retry?: import("@better-fetch/fetch").RetryOptions | undefined; retryAttempt?: number | undefined; output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined; errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined; disableValidation?: boolean | undefined; }>(data_0?: import("better-auth").Prettify<{ query?: Record | undefined; fetchOptions?: FetchOptions | undefined; }> | undefined, data_1?: FetchOptions | undefined) => Promise>; }; } & { organization: { checkSlug: >(context: import("@better-fetch/fetch").RequestContext) => Promise | import("@better-fetch/fetch").RequestContext | void) | undefined; onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined; onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext) => Promise | void) | undefined; onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise | void) | undefined; onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise | void) | undefined; hookOptions?: { cloneResponse?: boolean; } | undefined; timeout?: number | undefined; customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined; plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined; baseURL?: string | undefined; throw?: boolean | undefined; auth?: ({ type: "Bearer"; token: string | Promise | (() => string | Promise | undefined) | undefined; } | { type: "Basic"; username: string | (() => string | undefined) | undefined; password: string | (() => string | undefined) | undefined; } | { type: "Custom"; prefix: string | (() => string | undefined) | undefined; value: string | (() => string | undefined) | undefined; }) | undefined; body?: (Partial<{ slug: string; }> & Record) | undefined; query?: (Partial> & Record) | undefined; params?: Record | undefined; duplex?: "full" | "half" | undefined; jsonParser?: ((text: string) => Promise | any) | undefined; retry?: import("@better-fetch/fetch").RetryOptions | undefined; retryAttempt?: number | undefined; output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined; errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined; disableValidation?: boolean | undefined; }>(data_0: import("better-auth").Prettify<{ slug: string; } & { fetchOptions?: FetchOptions | undefined; }>, data_1?: FetchOptions | undefined) => Promise>; }; } & { organization: { removeMember: >(context: import("@better-fetch/fetch").RequestContext) => Promise | import("@better-fetch/fetch").RequestContext | void) | undefined; onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined; onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext) => Promise | void) | undefined; onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise | void) | undefined; onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise | void) | undefined; hookOptions?: { cloneResponse?: boolean; } | undefined; timeout?: number | undefined; customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined; plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined; baseURL?: string | undefined; throw?: boolean | undefined; auth?: ({ type: "Bearer"; token: string | Promise | (() => string | Promise | undefined) | undefined; } | { type: "Basic"; username: string | (() => string | undefined) | undefined; password: string | (() => string | undefined) | undefined; } | { type: "Custom"; prefix: string | (() => string | undefined) | undefined; value: string | (() => string | undefined) | undefined; }) | undefined; body?: (Partial<{ memberIdOrEmail: string; organizationId?: string | undefined; }> & Record) | undefined; query?: (Partial> & Record) | undefined; params?: Record | undefined; duplex?: "full" | "half" | undefined; jsonParser?: ((text: string) => Promise | any) | undefined; retry?: import("@better-fetch/fetch").RetryOptions | undefined; retryAttempt?: number | undefined; output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined; errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined; disableValidation?: boolean | undefined; }>(data_0: import("better-auth").Prettify<{ memberIdOrEmail: string; organizationId?: string | undefined; } & { fetchOptions?: FetchOptions | undefined; }>, data_1?: FetchOptions | undefined) => Promise>; }; } & { organization: { leave: >(context: import("@better-fetch/fetch").RequestContext) => Promise | import("@better-fetch/fetch").RequestContext | void) | undefined; onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined; onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext) => Promise | void) | undefined; onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise | void) | undefined; onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise | void) | undefined; hookOptions?: { cloneResponse?: boolean; } | undefined; timeout?: number | undefined; customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined; plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined; baseURL?: string | undefined; throw?: boolean | undefined; auth?: ({ type: "Bearer"; token: string | Promise | (() => string | Promise | undefined) | undefined; } | { type: "Basic"; username: string | (() => string | undefined) | undefined; password: string | (() => string | undefined) | undefined; } | { type: "Custom"; prefix: string | (() => string | undefined) | undefined; value: string | (() => string | undefined) | undefined; }) | undefined; body?: (Partial<{ organizationId: string; }> & Record) | undefined; query?: (Partial> & Record) | undefined; params?: Record | undefined; duplex?: "full" | "half" | undefined; jsonParser?: ((text: string) => Promise | any) | undefined; retry?: import("@better-fetch/fetch").RetryOptions | undefined; retryAttempt?: number | undefined; output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined; errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined; disableValidation?: boolean | undefined; }>(data_0: import("better-auth").Prettify<{ organizationId: string; } & { fetchOptions?: FetchOptions | undefined; }>, data_1?: FetchOptions | undefined) => Promise>; }; } & { organization: { listMembers: >(context: import("@better-fetch/fetch").RequestContext) => Promise | import("@better-fetch/fetch").RequestContext | void) | undefined; onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined; onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext) => Promise | void) | undefined; onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise | void) | undefined; onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise | void) | undefined; hookOptions?: { cloneResponse?: boolean; } | undefined; timeout?: number | undefined; customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined; plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined; baseURL?: string | undefined; throw?: boolean | undefined; auth?: ({ type: "Bearer"; token: string | Promise | (() => string | Promise | undefined) | undefined; } | { type: "Basic"; username: string | (() => string | undefined) | undefined; password: string | (() => string | undefined) | undefined; } | { type: "Custom"; prefix: string | (() => string | undefined) | undefined; value: string | (() => string | undefined) | undefined; }) | undefined; body?: undefined; query?: (Partial<{ limit?: string | number | undefined; offset?: string | number | undefined; sortBy?: string | undefined; sortDirection?: "asc" | "desc" | undefined; filterField?: string | undefined; filterValue?: string | number | boolean | undefined; filterOperator?: "contains" | "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | undefined; organizationId?: string | undefined; }> & Record) | undefined; params?: Record | undefined; duplex?: "full" | "half" | undefined; jsonParser?: ((text: string) => Promise | any) | undefined; retry?: import("@better-fetch/fetch").RetryOptions | undefined; retryAttempt?: number | undefined; output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined; errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined; disableValidation?: boolean | undefined; }>(data_0?: import("better-auth").Prettify<{ query?: { limit?: string | number | undefined; offset?: string | number | undefined; sortBy?: string | undefined; sortDirection?: "asc" | "desc" | undefined; filterField?: string | undefined; filterValue?: string | number | boolean | undefined; filterOperator?: "contains" | "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | undefined; organizationId?: string | undefined; } | undefined; fetchOptions?: FetchOptions | undefined; }> | undefined, data_1?: FetchOptions | undefined) => Promise>; }; } & { organization: { getActiveMemberRole: >(context: import("@better-fetch/fetch").RequestContext) => Promise | import("@better-fetch/fetch").RequestContext | void) | undefined; onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined; onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext) => Promise | void) | undefined; onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise | void) | undefined; onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise | void) | undefined; hookOptions?: { cloneResponse?: boolean; } | undefined; timeout?: number | undefined; customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined; plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined; baseURL?: string | undefined; throw?: boolean | undefined; auth?: ({ type: "Bearer"; token: string | Promise | (() => string | Promise | undefined) | undefined; } | { type: "Basic"; username: string | (() => string | undefined) | undefined; password: string | (() => string | undefined) | undefined; } | { type: "Custom"; prefix: string | (() => string | undefined) | undefined; value: string | (() => string | undefined) | undefined; }) | undefined; body?: undefined; query?: (Partial<{ userId?: string | undefined; organizationId?: string | undefined; }> & Record) | undefined; params?: Record | undefined; duplex?: "full" | "half" | undefined; jsonParser?: ((text: string) => Promise | any) | undefined; retry?: import("@better-fetch/fetch").RetryOptions | undefined; retryAttempt?: number | undefined; output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined; errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined; disableValidation?: boolean | undefined; }>(data_0?: import("better-auth").Prettify<{ query?: { userId?: string | undefined; organizationId?: string | undefined; } | undefined; fetchOptions?: FetchOptions | undefined; }> | undefined, data_1?: FetchOptions | undefined) => Promise>; }; } & { organization: { listTeams: >(context: import("@better-fetch/fetch").RequestContext) => Promise | import("@better-fetch/fetch").RequestContext | void) | undefined; onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined; onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext) => Promise | void) | undefined; onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise | void) | undefined; onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise | void) | undefined; hookOptions?: { cloneResponse?: boolean; } | undefined; timeout?: number | undefined; customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined; plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined; baseURL?: string | undefined; throw?: boolean | undefined; auth?: ({ type: "Bearer"; token: string | Promise | (() => string | Promise | undefined) | undefined; } | { type: "Basic"; username: string | (() => string | undefined) | undefined; password: string | (() => string | undefined) | undefined; } | { type: "Custom"; prefix: string | (() => string | undefined) | undefined; value: string | (() => string | undefined) | undefined; }) | undefined; body?: undefined; query?: (Partial<{ organizationId?: string | undefined; }> & Record) | undefined; params?: Record | undefined; duplex?: "full" | "half" | undefined; jsonParser?: ((text: string) => Promise | any) | undefined; retry?: import("@better-fetch/fetch").RetryOptions | undefined; retryAttempt?: number | undefined; output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined; errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined; disableValidation?: boolean | undefined; }>(data_0?: import("better-auth").Prettify<{ query?: { organizationId?: string | undefined; } | undefined; fetchOptions?: FetchOptions | undefined; }> | undefined, data_1?: FetchOptions | undefined) => Promise>; }; } & { organization: { removeTeam: >(context: import("@better-fetch/fetch").RequestContext) => Promise | import("@better-fetch/fetch").RequestContext | void) | undefined; onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined; onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext) => Promise | void) | undefined; onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise | void) | undefined; onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise | void) | undefined; hookOptions?: { cloneResponse?: boolean; } | undefined; timeout?: number | undefined; customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined; plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined; baseURL?: string | undefined; throw?: boolean | undefined; auth?: ({ type: "Bearer"; token: string | Promise | (() => string | Promise | undefined) | undefined; } | { type: "Basic"; username: string | (() => string | undefined) | undefined; password: string | (() => string | undefined) | undefined; } | { type: "Custom"; prefix: string | (() => string | undefined) | undefined; value: string | (() => string | undefined) | undefined; }) | undefined; body?: (Partial<{ teamId: string; organizationId?: string | undefined; }> & Record) | undefined; query?: (Partial> & Record) | undefined; params?: Record | undefined; duplex?: "full" | "half" | undefined; jsonParser?: ((text: string) => Promise | any) | undefined; retry?: import("@better-fetch/fetch").RetryOptions | undefined; retryAttempt?: number | undefined; output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined; errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined; disableValidation?: boolean | undefined; }>(data_0: import("better-auth").Prettify<{ teamId: string; organizationId?: string | undefined; } & { fetchOptions?: FetchOptions | undefined; }>, data_1?: FetchOptions | undefined) => Promise>; }; } & { organization: { setActiveTeam: >(context: import("@better-fetch/fetch").RequestContext) => Promise | import("@better-fetch/fetch").RequestContext | void) | undefined; onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined; onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext) => Promise | void) | undefined; onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise | void) | undefined; onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise | void) | undefined; hookOptions?: { cloneResponse?: boolean; } | undefined; timeout?: number | undefined; customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined; plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined; baseURL?: string | undefined; throw?: boolean | undefined; auth?: ({ type: "Bearer"; token: string | Promise | (() => string | Promise | undefined) | undefined; } | { type: "Basic"; username: string | (() => string | undefined) | undefined; password: string | (() => string | undefined) | undefined; } | { type: "Custom"; prefix: string | (() => string | undefined) | undefined; value: string | (() => string | undefined) | undefined; }) | undefined; body?: (Partial<{ teamId?: string | null | undefined; }> & Record) | undefined; query?: (Partial> & Record) | undefined; params?: Record | undefined; duplex?: "full" | "half" | undefined; jsonParser?: ((text: string) => Promise | any) | undefined; retry?: import("@better-fetch/fetch").RetryOptions | undefined; retryAttempt?: number | undefined; output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined; errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined; disableValidation?: boolean | undefined; }>(data_0?: import("better-auth").Prettify<{ teamId?: string | null | undefined; } & { fetchOptions?: FetchOptions | undefined; }> | undefined, data_1?: FetchOptions | undefined) => Promise>; }; } & { organization: { listUserTeams: >(context: import("@better-fetch/fetch").RequestContext) => Promise | import("@better-fetch/fetch").RequestContext | void) | undefined; onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined; onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext) => Promise | void) | undefined; onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise | void) | undefined; onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise | void) | undefined; hookOptions?: { cloneResponse?: boolean; } | undefined; timeout?: number | undefined; customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined; plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined; baseURL?: string | undefined; throw?: boolean | undefined; auth?: ({ type: "Bearer"; token: string | Promise | (() => string | Promise | undefined) | undefined; } | { type: "Basic"; username: string | (() => string | undefined) | undefined; password: string | (() => string | undefined) | undefined; } | { type: "Custom"; prefix: string | (() => string | undefined) | undefined; value: string | (() => string | undefined) | undefined; }) | undefined; body?: undefined; query?: (Partial> & Record) | undefined; params?: Record | undefined; duplex?: "full" | "half" | undefined; jsonParser?: ((text: string) => Promise | any) | undefined; retry?: import("@better-fetch/fetch").RetryOptions | undefined; retryAttempt?: number | undefined; output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined; errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined; disableValidation?: boolean | undefined; }>(data_0?: import("better-auth").Prettify<{ query?: Record | undefined; fetchOptions?: FetchOptions | undefined; }> | undefined, data_1?: FetchOptions | undefined) => Promise>; }; } & { organization: { listTeamMembers: >(context: import("@better-fetch/fetch").RequestContext) => Promise | import("@better-fetch/fetch").RequestContext | void) | undefined; onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined; onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext) => Promise | void) | undefined; onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise | void) | undefined; onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise | void) | undefined; hookOptions?: { cloneResponse?: boolean; } | undefined; timeout?: number | undefined; customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined; plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined; baseURL?: string | undefined; throw?: boolean | undefined; auth?: ({ type: "Bearer"; token: string | Promise | (() => string | Promise | undefined) | undefined; } | { type: "Basic"; username: string | (() => string | undefined) | undefined; password: string | (() => string | undefined) | undefined; } | { type: "Custom"; prefix: string | (() => string | undefined) | undefined; value: string | (() => string | undefined) | undefined; }) | undefined; body?: undefined; query?: (Partial<{ teamId?: string | undefined; }> & Record) | undefined; params?: Record | undefined; duplex?: "full" | "half" | undefined; jsonParser?: ((text: string) => Promise | any) | undefined; retry?: import("@better-fetch/fetch").RetryOptions | undefined; retryAttempt?: number | undefined; output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined; errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined; disableValidation?: boolean | undefined; }>(data_0?: import("better-auth").Prettify<{ query?: { teamId?: string | undefined; } | undefined; fetchOptions?: FetchOptions | undefined; }> | undefined, data_1?: FetchOptions | undefined) => Promise>; }; } & { organization: { addTeamMember: >(context: import("@better-fetch/fetch").RequestContext) => Promise | import("@better-fetch/fetch").RequestContext | void) | undefined; onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined; onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext) => Promise | void) | undefined; onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise | void) | undefined; onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise | void) | undefined; hookOptions?: { cloneResponse?: boolean; } | undefined; timeout?: number | undefined; customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined; plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined; baseURL?: string | undefined; throw?: boolean | undefined; auth?: ({ type: "Bearer"; token: string | Promise | (() => string | Promise | undefined) | undefined; } | { type: "Basic"; username: string | (() => string | undefined) | undefined; password: string | (() => string | undefined) | undefined; } | { type: "Custom"; prefix: string | (() => string | undefined) | undefined; value: string | (() => string | undefined) | undefined; }) | undefined; body?: (Partial<{ teamId: string; userId: unknown; }> & Record) | undefined; query?: (Partial> & Record) | undefined; params?: Record | undefined; duplex?: "full" | "half" | undefined; jsonParser?: ((text: string) => Promise | any) | undefined; retry?: import("@better-fetch/fetch").RetryOptions | undefined; retryAttempt?: number | undefined; output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined; errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined; disableValidation?: boolean | undefined; }>(data_0: import("better-auth").Prettify<{ teamId: string; userId: unknown; } & { fetchOptions?: FetchOptions | undefined; }>, data_1?: FetchOptions | undefined) => Promise>; }; } & { organization: { removeTeamMember: >(context: import("@better-fetch/fetch").RequestContext) => Promise | import("@better-fetch/fetch").RequestContext | void) | undefined; onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined; onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext) => Promise | void) | undefined; onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise | void) | undefined; onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise | void) | undefined; hookOptions?: { cloneResponse?: boolean; } | undefined; timeout?: number | undefined; customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined; plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined; baseURL?: string | undefined; throw?: boolean | undefined; auth?: ({ type: "Bearer"; token: string | Promise | (() => string | Promise | undefined) | undefined; } | { type: "Basic"; username: string | (() => string | undefined) | undefined; password: string | (() => string | undefined) | undefined; } | { type: "Custom"; prefix: string | (() => string | undefined) | undefined; value: string | (() => string | undefined) | undefined; }) | undefined; body?: (Partial<{ teamId: string; userId: unknown; }> & Record) | undefined; query?: (Partial> & Record) | undefined; params?: Record | undefined; duplex?: "full" | "half" | undefined; jsonParser?: ((text: string) => Promise | any) | undefined; retry?: import("@better-fetch/fetch").RetryOptions | undefined; retryAttempt?: number | undefined; output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined; errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined; disableValidation?: boolean | undefined; }>(data_0: import("better-auth").Prettify<{ teamId: string; userId: unknown; } & { fetchOptions?: FetchOptions | undefined; }>, data_1?: FetchOptions | undefined) => Promise>; }; } & { sso: { saml2: { sp: { metadata: >(context: import("@better-fetch/fetch").RequestContext) => Promise | import("@better-fetch/fetch").RequestContext | void) | undefined; onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined; onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext) => Promise | void) | undefined; onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise | void) | undefined; onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise | void) | undefined; hookOptions?: { cloneResponse?: boolean; } | undefined; timeout?: number | undefined; customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined; plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined; baseURL?: string | undefined; throw?: boolean | undefined; auth?: ({ type: "Bearer"; token: string | Promise | (() => string | Promise | undefined) | undefined; } | { type: "Basic"; username: string | (() => string | undefined) | undefined; password: string | (() => string | undefined) | undefined; } | { type: "Custom"; prefix: string | (() => string | undefined) | undefined; value: string | (() => string | undefined) | undefined; }) | undefined; body?: undefined; query?: (Partial<{ providerId: string; format?: "xml" | "json" | undefined; }> & Record) | undefined; params?: Record | undefined; duplex?: "full" | "half" | undefined; jsonParser?: ((text: string) => Promise | any) | undefined; retry?: import("@better-fetch/fetch").RetryOptions | undefined; retryAttempt?: number | undefined; output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined; errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined; disableValidation?: boolean | undefined; }>(data_0: import("better-auth").Prettify<{ query: { providerId: string; format?: "xml" | "json" | undefined; }; fetchOptions?: FetchOptions | undefined; }>, data_1?: FetchOptions | undefined) => Promise>; }; }; }; } & { sso: { register: >(context: import("@better-fetch/fetch").RequestContext) => Promise | import("@better-fetch/fetch").RequestContext | void) | undefined; onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined; onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext) => Promise | void) | undefined; onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise | void) | undefined; onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise | void) | undefined; hookOptions?: { cloneResponse?: boolean; } | undefined; timeout?: number | undefined; customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined; plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined; baseURL?: string | undefined; throw?: boolean | undefined; auth?: ({ type: "Bearer"; token: string | Promise | (() => string | Promise | undefined) | undefined; } | { type: "Basic"; username: string | (() => string | undefined) | undefined; password: string | (() => string | undefined) | undefined; } | { type: "Custom"; prefix: string | (() => string | undefined) | undefined; value: string | (() => string | undefined) | undefined; }) | undefined; body?: (Partial<{ providerId: string; issuer: string; domain: string; oidcConfig?: { clientId: string; clientSecret: string; authorizationEndpoint?: string | undefined; tokenEndpoint?: string | undefined; userInfoEndpoint?: string | undefined; tokenEndpointAuthentication?: "client_secret_post" | "client_secret_basic" | undefined; jwksEndpoint?: string | undefined; discoveryEndpoint?: string | undefined; scopes?: string[] | undefined; pkce?: boolean | undefined; mapping?: { id: string; email: string; name: string; emailVerified?: string | undefined; image?: string | undefined; extraFields?: Record | undefined; } | undefined; } | undefined; samlConfig?: { entryPoint: string; cert: string; callbackUrl: string; spMetadata: { metadata?: string | undefined; entityID?: string | undefined; binding?: string | undefined; privateKey?: string | undefined; privateKeyPass?: string | undefined; isAssertionEncrypted?: boolean | undefined; encPrivateKey?: string | undefined; encPrivateKeyPass?: string | undefined; }; audience?: string | undefined; idpMetadata?: { metadata?: string | undefined; entityID?: string | undefined; cert?: string | undefined; privateKey?: string | undefined; privateKeyPass?: string | undefined; isAssertionEncrypted?: boolean | undefined; encPrivateKey?: string | undefined; encPrivateKeyPass?: string | undefined; singleSignOnService?: { Binding: string; Location: string; }[] | undefined; } | undefined; wantAssertionsSigned?: boolean | undefined; signatureAlgorithm?: string | undefined; digestAlgorithm?: string | undefined; identifierFormat?: string | undefined; privateKey?: string | undefined; decryptionPvk?: string | undefined; additionalParams?: Record | undefined; mapping?: { id: string; email: string; name: string; emailVerified?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; extraFields?: Record | undefined; } | undefined; } | undefined; organizationId?: string | undefined; overrideUserInfo?: boolean | undefined; }> & Record) | undefined; query?: (Partial> & Record) | undefined; params?: Record | undefined; duplex?: "full" | "half" | undefined; jsonParser?: ((text: string) => Promise | any) | undefined; retry?: import("@better-fetch/fetch").RetryOptions | undefined; retryAttempt?: number | undefined; output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined; errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined; disableValidation?: boolean | undefined; }>(data_0: import("better-auth").Prettify<{ providerId: string; issuer: string; domain: string; oidcConfig?: { clientId: string; clientSecret: string; authorizationEndpoint?: string | undefined; tokenEndpoint?: string | undefined; userInfoEndpoint?: string | undefined; tokenEndpointAuthentication?: "client_secret_post" | "client_secret_basic" | undefined; jwksEndpoint?: string | undefined; discoveryEndpoint?: string | undefined; scopes?: string[] | undefined; pkce?: boolean | undefined; mapping?: { id: string; email: string; name: string; emailVerified?: string | undefined; image?: string | undefined; extraFields?: Record | undefined; } | undefined; } | undefined; samlConfig?: { entryPoint: string; cert: string; callbackUrl: string; spMetadata: { metadata?: string | undefined; entityID?: string | undefined; binding?: string | undefined; privateKey?: string | undefined; privateKeyPass?: string | undefined; isAssertionEncrypted?: boolean | undefined; encPrivateKey?: string | undefined; encPrivateKeyPass?: string | undefined; }; audience?: string | undefined; idpMetadata?: { metadata?: string | undefined; entityID?: string | undefined; cert?: string | undefined; privateKey?: string | undefined; privateKeyPass?: string | undefined; isAssertionEncrypted?: boolean | undefined; encPrivateKey?: string | undefined; encPrivateKeyPass?: string | undefined; singleSignOnService?: { Binding: string; Location: string; }[] | undefined; } | undefined; wantAssertionsSigned?: boolean | undefined; signatureAlgorithm?: string | undefined; digestAlgorithm?: string | undefined; identifierFormat?: string | undefined; privateKey?: string | undefined; decryptionPvk?: string | undefined; additionalParams?: Record | undefined; mapping?: { id: string; email: string; name: string; emailVerified?: string | undefined; firstName?: string | undefined; lastName?: string | undefined; extraFields?: Record | undefined; } | undefined; } | undefined; organizationId?: string | undefined; overrideUserInfo?: boolean | undefined; } & { fetchOptions?: FetchOptions | undefined; }>, data_1?: FetchOptions | undefined) => Promise>; }; } & { signIn: { sso: >(context: import("@better-fetch/fetch").RequestContext) => Promise | import("@better-fetch/fetch").RequestContext | void) | undefined; onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined; onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext) => Promise | void) | undefined; onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise | void) | undefined; onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise | void) | undefined; hookOptions?: { cloneResponse?: boolean; } | undefined; timeout?: number | undefined; customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined; plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined; baseURL?: string | undefined; throw?: boolean | undefined; auth?: ({ type: "Bearer"; token: string | Promise | (() => string | Promise | undefined) | undefined; } | { type: "Basic"; username: string | (() => string | undefined) | undefined; password: string | (() => string | undefined) | undefined; } | { type: "Custom"; prefix: string | (() => string | undefined) | undefined; value: string | (() => string | undefined) | undefined; }) | undefined; body?: (Partial<{ callbackURL: string; email?: string | undefined; organizationSlug?: string | undefined; providerId?: string | undefined; domain?: string | undefined; errorCallbackURL?: string | undefined; newUserCallbackURL?: string | undefined; scopes?: string[] | undefined; requestSignUp?: boolean | undefined; providerType?: "oidc" | "saml" | undefined; }> & Record) | undefined; query?: (Partial> & Record) | undefined; params?: Record | undefined; duplex?: "full" | "half" | undefined; jsonParser?: ((text: string) => Promise | any) | undefined; retry?: import("@better-fetch/fetch").RetryOptions | undefined; retryAttempt?: number | undefined; output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined; errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined; disableValidation?: boolean | undefined; }>(data_0: import("better-auth").Prettify<{ callbackURL: string; email?: string | undefined; organizationSlug?: string | undefined; providerId?: string | undefined; domain?: string | undefined; errorCallbackURL?: string | undefined; newUserCallbackURL?: string | undefined; scopes?: string[] | undefined; requestSignUp?: boolean | undefined; providerType?: "oidc" | "saml" | undefined; } & { fetchOptions?: FetchOptions | undefined; }>, data_1?: FetchOptions | undefined) => Promise>; }; } & { sso: { callback: { ":providerid": >(context: import("@better-fetch/fetch").RequestContext) => Promise | import("@better-fetch/fetch").RequestContext | void) | undefined; onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined; onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext) => Promise | void) | undefined; onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise | void) | undefined; onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise | void) | undefined; hookOptions?: { cloneResponse?: boolean; } | undefined; timeout?: number | undefined; customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined; plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined; baseURL?: string | undefined; throw?: boolean | undefined; auth?: ({ type: "Bearer"; token: string | Promise | (() => string | Promise | undefined) | undefined; } | { type: "Basic"; username: string | (() => string | undefined) | undefined; password: string | (() => string | undefined) | undefined; } | { type: "Custom"; prefix: string | (() => string | undefined) | undefined; value: string | (() => string | undefined) | undefined; }) | undefined; body?: undefined; query?: (Partial<{ state: string; code?: string | undefined; error?: string | undefined; error_description?: string | undefined; }> & Record) | undefined; params?: { providerId: string; } | undefined; duplex?: "full" | "half" | undefined; jsonParser?: ((text: string) => Promise | any) | undefined; retry?: import("@better-fetch/fetch").RetryOptions | undefined; retryAttempt?: number | undefined; output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined; errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined; disableValidation?: boolean | undefined; }>(data_0: import("better-auth").Prettify<{ query: { state: string; code?: string | undefined; error?: string | undefined; error_description?: string | undefined; }; fetchOptions?: FetchOptions | undefined; }>, data_1?: FetchOptions | undefined) => Promise>; }; }; } & { sso: { saml2: { callback: { ":providerid": >(context: import("@better-fetch/fetch").RequestContext) => Promise | import("@better-fetch/fetch").RequestContext | void) | undefined; onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined; onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext) => Promise | void) | undefined; onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise | void) | undefined; onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise | void) | undefined; hookOptions?: { cloneResponse?: boolean; } | undefined; timeout?: number | undefined; customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined; plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined; baseURL?: string | undefined; throw?: boolean | undefined; auth?: ({ type: "Bearer"; token: string | Promise | (() => string | Promise | undefined) | undefined; } | { type: "Basic"; username: string | (() => string | undefined) | undefined; password: string | (() => string | undefined) | undefined; } | { type: "Custom"; prefix: string | (() => string | undefined) | undefined; value: string | (() => string | undefined) | undefined; }) | undefined; body?: (Partial<{ SAMLResponse: string; RelayState?: string | undefined; }> & Record) | undefined; query?: (Partial> & Record) | undefined; params?: { providerId: string; } | undefined; duplex?: "full" | "half" | undefined; jsonParser?: ((text: string) => Promise | any) | undefined; retry?: import("@better-fetch/fetch").RetryOptions | undefined; retryAttempt?: number | undefined; output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined; errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined; disableValidation?: boolean | undefined; }>(data_0: import("better-auth").Prettify<{ SAMLResponse: string; RelayState?: string | undefined; } & { fetchOptions?: FetchOptions | undefined; }>, data_1?: FetchOptions | undefined) => Promise>; }; }; }; } & { sso: { saml2: { sp: { acs: { ":providerid": >(context: import("@better-fetch/fetch").RequestContext) => Promise | import("@better-fetch/fetch").RequestContext | void) | undefined; onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined; onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext) => Promise | void) | undefined; onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise | void) | undefined; onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise | void) | undefined; hookOptions?: { cloneResponse?: boolean; } | undefined; timeout?: number | undefined; customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined; plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined; baseURL?: string | undefined; throw?: boolean | undefined; auth?: ({ type: "Bearer"; token: string | Promise | (() => string | Promise | undefined) | undefined; } | { type: "Basic"; username: string | (() => string | undefined) | undefined; password: string | (() => string | undefined) | undefined; } | { type: "Custom"; prefix: string | (() => string | undefined) | undefined; value: string | (() => string | undefined) | undefined; }) | undefined; body?: (Partial<{ SAMLResponse: string; RelayState?: string | undefined; }> & Record) | undefined; query?: (Partial> & Record) | undefined; params?: { providerId: string; } | undefined; duplex?: "full" | "half" | undefined; jsonParser?: ((text: string) => Promise | any) | undefined; retry?: import("@better-fetch/fetch").RetryOptions | undefined; retryAttempt?: number | undefined; output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined; errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined; disableValidation?: boolean | undefined; }>(data_0: import("better-auth").Prettify<{ SAMLResponse: string; RelayState?: string | undefined; } & { fetchOptions?: FetchOptions | undefined; }>, data_1?: FetchOptions | undefined) => Promise>; }; }; }; }; } & { organization: { create: >(context: import("@better-fetch/fetch").RequestContext) => Promise | import("@better-fetch/fetch").RequestContext | void) | undefined; onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined; onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext) => Promise | void) | undefined; onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise | void) | undefined; onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise | void) | undefined; hookOptions?: { cloneResponse?: boolean; } | undefined; timeout?: number | undefined; customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined; plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined; baseURL?: string | undefined; throw?: boolean | undefined; auth?: ({ type: "Bearer"; token: string | Promise | (() => string | Promise | undefined) | undefined; } | { type: "Basic"; username: string | (() => string | undefined) | undefined; password: string | (() => string | undefined) | undefined; } | { type: "Custom"; prefix: string | (() => string | undefined) | undefined; value: string | (() => string | undefined) | undefined; }) | undefined; body?: (Partial<{ name: string; slug: string; userId?: string | undefined; logo?: string | undefined; metadata?: Record | undefined; keepCurrentActiveOrganization?: boolean | undefined; }> & Record) | undefined; query?: (Partial> & Record) | undefined; params?: Record | undefined; duplex?: "full" | "half" | undefined; jsonParser?: ((text: string) => Promise | any) | undefined; retry?: import("@better-fetch/fetch").RetryOptions | undefined; retryAttempt?: number | undefined; output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined; errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined; disableValidation?: boolean | undefined; }>(data_0: import("better-auth").Prettify<{ name: string; slug: string; userId?: string | undefined; logo?: string | undefined; metadata?: Record | undefined; keepCurrentActiveOrganization?: boolean | undefined; } & { fetchOptions?: FetchOptions | undefined; }>, data_1?: FetchOptions | undefined) => Promise>; }; } & { organization: { update: >(context: import("@better-fetch/fetch").RequestContext) => Promise | import("@better-fetch/fetch").RequestContext | void) | undefined; onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined; onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext) => Promise | void) | undefined; onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise | void) | undefined; onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise | void) | undefined; hookOptions?: { cloneResponse?: boolean; } | undefined; timeout?: number | undefined; customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined; plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined; baseURL?: string | undefined; throw?: boolean | undefined; auth?: ({ type: "Bearer"; token: string | Promise | (() => string | Promise | undefined) | undefined; } | { type: "Basic"; username: string | (() => string | undefined) | undefined; password: string | (() => string | undefined) | undefined; } | { type: "Custom"; prefix: string | (() => string | undefined) | undefined; value: string | (() => string | undefined) | undefined; }) | undefined; body?: (Partial<{ data: { name?: string; slug?: string; logo?: string; metadata?: Record; } & Partial<{}>; organizationId?: string | undefined; }> & Record) | undefined; query?: (Partial> & Record) | undefined; params?: Record | undefined; duplex?: "full" | "half" | undefined; jsonParser?: ((text: string) => Promise | any) | undefined; retry?: import("@better-fetch/fetch").RetryOptions | undefined; retryAttempt?: number | undefined; output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined; errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined; disableValidation?: boolean | undefined; }>(data_0: import("better-auth").Prettify<{ data: { name?: string; slug?: string; logo?: string; metadata?: Record; } & Partial<{}>; organizationId?: string | undefined; } & { fetchOptions?: FetchOptions | undefined; }>, data_1?: FetchOptions | undefined) => Promise | undefined; }, { code?: string; message?: string; }, FetchOptions["throw"] extends true ? true : false>>; }; } & { organization: { delete: >(context: import("@better-fetch/fetch").RequestContext) => Promise | import("@better-fetch/fetch").RequestContext | void) | undefined; onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined; onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext) => Promise | void) | undefined; onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise | void) | undefined; onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise | void) | undefined; hookOptions?: { cloneResponse?: boolean; } | undefined; timeout?: number | undefined; customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined; plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined; baseURL?: string | undefined; throw?: boolean | undefined; auth?: ({ type: "Bearer"; token: string | Promise | (() => string | Promise | undefined) | undefined; } | { type: "Basic"; username: string | (() => string | undefined) | undefined; password: string | (() => string | undefined) | undefined; } | { type: "Custom"; prefix: string | (() => string | undefined) | undefined; value: string | (() => string | undefined) | undefined; }) | undefined; body?: (Partial<{ organizationId: string; }> & Record) | undefined; query?: (Partial> & Record) | undefined; params?: Record | undefined; duplex?: "full" | "half" | undefined; jsonParser?: ((text: string) => Promise | any) | undefined; retry?: import("@better-fetch/fetch").RetryOptions | undefined; retryAttempt?: number | undefined; output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined; errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined; disableValidation?: boolean | undefined; }>(data_0: import("better-auth").Prettify<{ organizationId: string; } & { fetchOptions?: FetchOptions | undefined; }>, data_1?: FetchOptions | undefined) => Promise>; }; } & { organization: { setActive: >(context: import("@better-fetch/fetch").RequestContext) => Promise | import("@better-fetch/fetch").RequestContext | void) | undefined; onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined; onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext) => Promise | void) | undefined; onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise | void) | undefined; onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise | void) | undefined; hookOptions?: { cloneResponse?: boolean; } | undefined; timeout?: number | undefined; customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined; plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined; baseURL?: string | undefined; throw?: boolean | undefined; auth?: ({ type: "Bearer"; token: string | Promise | (() => string | Promise | undefined) | undefined; } | { type: "Basic"; username: string | (() => string | undefined) | undefined; password: string | (() => string | undefined) | undefined; } | { type: "Custom"; prefix: string | (() => string | undefined) | undefined; value: string | (() => string | undefined) | undefined; }) | undefined; body?: (Partial<{ organizationId?: string | null | undefined; organizationSlug?: string | undefined; }> & Record) | undefined; query?: (Partial> & Record) | undefined; params?: Record | undefined; duplex?: "full" | "half" | undefined; jsonParser?: ((text: string) => Promise | any) | undefined; retry?: import("@better-fetch/fetch").RetryOptions | undefined; retryAttempt?: number | undefined; output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined; errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined; disableValidation?: boolean | undefined; }>(data_0?: import("better-auth").Prettify<{ organizationId?: string | null | undefined; organizationSlug?: string | undefined; } & { fetchOptions?: FetchOptions | undefined; }> | undefined, data_1?: FetchOptions | undefined) => Promise>; }; } & { organization: { getFullOrganization: >(context: import("@better-fetch/fetch").RequestContext) => Promise | import("@better-fetch/fetch").RequestContext | void) | undefined; onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined; onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext) => Promise | void) | undefined; onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise | void) | undefined; onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise | void) | undefined; hookOptions?: { cloneResponse?: boolean; } | undefined; timeout?: number | undefined; customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined; plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined; baseURL?: string | undefined; throw?: boolean | undefined; auth?: ({ type: "Bearer"; token: string | Promise | (() => string | Promise | undefined) | undefined; } | { type: "Basic"; username: string | (() => string | undefined) | undefined; password: string | (() => string | undefined) | undefined; } | { type: "Custom"; prefix: string | (() => string | undefined) | undefined; value: string | (() => string | undefined) | undefined; }) | undefined; body?: undefined; query?: (Partial<{ organizationId?: string | undefined; organizationSlug?: string | undefined; membersLimit?: string | number | undefined; }> & Record) | undefined; params?: Record | undefined; duplex?: "full" | "half" | undefined; jsonParser?: ((text: string) => Promise | any) | undefined; retry?: import("@better-fetch/fetch").RetryOptions | undefined; retryAttempt?: number | undefined; output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined; errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined; disableValidation?: boolean | undefined; }>(data_0?: import("better-auth").Prettify<{ query?: { organizationId?: string | undefined; organizationSlug?: string | undefined; membersLimit?: string | number | undefined; } | undefined; fetchOptions?: FetchOptions | undefined; }> | undefined, data_1?: FetchOptions | undefined) => Promise>; }; } & { organization: { list: >(context: import("@better-fetch/fetch").RequestContext) => Promise | import("@better-fetch/fetch").RequestContext | void) | undefined; onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined; onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext) => Promise | void) | undefined; onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise | void) | undefined; onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise | void) | undefined; hookOptions?: { cloneResponse?: boolean; } | undefined; timeout?: number | undefined; customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined; plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined; baseURL?: string | undefined; throw?: boolean | undefined; auth?: ({ type: "Bearer"; token: string | Promise | (() => string | Promise | undefined) | undefined; } | { type: "Basic"; username: string | (() => string | undefined) | undefined; password: string | (() => string | undefined) | undefined; } | { type: "Custom"; prefix: string | (() => string | undefined) | undefined; value: string | (() => string | undefined) | undefined; }) | undefined; body?: undefined; query?: (Partial> & Record) | undefined; params?: Record | undefined; duplex?: "full" | "half" | undefined; jsonParser?: ((text: string) => Promise | any) | undefined; retry?: import("@better-fetch/fetch").RetryOptions | undefined; retryAttempt?: number | undefined; output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined; errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined; disableValidation?: boolean | undefined; }>(data_0?: import("better-auth").Prettify<{ query?: Record | undefined; fetchOptions?: FetchOptions | undefined; }> | undefined, data_1?: FetchOptions | undefined) => Promise>; }; } & { organization: { inviteMember: >(context: import("@better-fetch/fetch").RequestContext) => Promise | import("@better-fetch/fetch").RequestContext | void) | undefined; onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined; onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext) => Promise | void) | undefined; onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise | void) | undefined; onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise | void) | undefined; hookOptions?: { cloneResponse?: boolean; } | undefined; timeout?: number | undefined; customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined; plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined; baseURL?: string | undefined; throw?: boolean | undefined; auth?: ({ type: "Bearer"; token: string | Promise | (() => string | Promise | undefined) | undefined; } | { type: "Basic"; username: string | (() => string | undefined) | undefined; password: string | (() => string | undefined) | undefined; } | { type: "Custom"; prefix: string | (() => string | undefined) | undefined; value: string | (() => string | undefined) | undefined; }) | undefined; body?: (Partial<{ email: string; role: "org:admin" | "org:member" | "org:reviewer" | ("org:admin" | "org:member" | "org:reviewer")[]; organizationId?: string | undefined; resend?: boolean; } & { teamId?: string | string[]; }> & Record) | undefined; query?: (Partial> & Record) | undefined; params?: Record | undefined; duplex?: "full" | "half" | undefined; jsonParser?: ((text: string) => Promise | any) | undefined; retry?: import("@better-fetch/fetch").RetryOptions | undefined; retryAttempt?: number | undefined; output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined; errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined; disableValidation?: boolean | undefined; }>(data_0: import("better-auth").Prettify<{ email: string; role: "org:admin" | "org:member" | "org:reviewer" | ("org:admin" | "org:member" | "org:reviewer")[]; organizationId?: string | undefined; resend?: boolean; } & { teamId?: string | string[]; } & { fetchOptions?: FetchOptions | undefined; }>, data_1?: FetchOptions | undefined) => Promise>; }; } & { organization: { cancelInvitation: >(context: import("@better-fetch/fetch").RequestContext) => Promise | import("@better-fetch/fetch").RequestContext | void) | undefined; onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined; onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext) => Promise | void) | undefined; onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise | void) | undefined; onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise | void) | undefined; hookOptions?: { cloneResponse?: boolean; } | undefined; timeout?: number | undefined; customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined; plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined; baseURL?: string | undefined; throw?: boolean | undefined; auth?: ({ type: "Bearer"; token: string | Promise | (() => string | Promise | undefined) | undefined; } | { type: "Basic"; username: string | (() => string | undefined) | undefined; password: string | (() => string | undefined) | undefined; } | { type: "Custom"; prefix: string | (() => string | undefined) | undefined; value: string | (() => string | undefined) | undefined; }) | undefined; body?: (Partial<{ invitationId: string; }> & Record) | undefined; query?: (Partial> & Record) | undefined; params?: Record | undefined; duplex?: "full" | "half" | undefined; jsonParser?: ((text: string) => Promise | any) | undefined; retry?: import("@better-fetch/fetch").RetryOptions | undefined; retryAttempt?: number | undefined; output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined; errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined; disableValidation?: boolean | undefined; }>(data_0: import("better-auth").Prettify<{ invitationId: string; } & { fetchOptions?: FetchOptions | undefined; }>, data_1?: FetchOptions | undefined) => Promise>; }; } & { organization: { acceptInvitation: >(context: import("@better-fetch/fetch").RequestContext) => Promise | import("@better-fetch/fetch").RequestContext | void) | undefined; onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined; onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext) => Promise | void) | undefined; onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise | void) | undefined; onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise | void) | undefined; hookOptions?: { cloneResponse?: boolean; } | undefined; timeout?: number | undefined; customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined; plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined; baseURL?: string | undefined; throw?: boolean | undefined; auth?: ({ type: "Bearer"; token: string | Promise | (() => string | Promise | undefined) | undefined; } | { type: "Basic"; username: string | (() => string | undefined) | undefined; password: string | (() => string | undefined) | undefined; } | { type: "Custom"; prefix: string | (() => string | undefined) | undefined; value: string | (() => string | undefined) | undefined; }) | undefined; body?: (Partial<{ invitationId: string; }> & Record) | undefined; query?: (Partial> & Record) | undefined; params?: Record | undefined; duplex?: "full" | "half" | undefined; jsonParser?: ((text: string) => Promise | any) | undefined; retry?: import("@better-fetch/fetch").RetryOptions | undefined; retryAttempt?: number | undefined; output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined; errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined; disableValidation?: boolean | undefined; }>(data_0: import("better-auth").Prettify<{ invitationId: string; } & { fetchOptions?: FetchOptions | undefined; }>, data_1?: FetchOptions | undefined) => Promise>; }; } & { organization: { getInvitation: >(context: import("@better-fetch/fetch").RequestContext) => Promise | import("@better-fetch/fetch").RequestContext | void) | undefined; onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined; onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext) => Promise | void) | undefined; onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise | void) | undefined; onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise | void) | undefined; hookOptions?: { cloneResponse?: boolean; } | undefined; timeout?: number | undefined; customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined; plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined; baseURL?: string | undefined; throw?: boolean | undefined; auth?: ({ type: "Bearer"; token: string | Promise | (() => string | Promise | undefined) | undefined; } | { type: "Basic"; username: string | (() => string | undefined) | undefined; password: string | (() => string | undefined) | undefined; } | { type: "Custom"; prefix: string | (() => string | undefined) | undefined; value: string | (() => string | undefined) | undefined; }) | undefined; body?: undefined; query?: (Partial<{ id: string; }> & Record) | undefined; params?: Record | undefined; duplex?: "full" | "half" | undefined; jsonParser?: ((text: string) => Promise | any) | undefined; retry?: import("@better-fetch/fetch").RetryOptions | undefined; retryAttempt?: number | undefined; output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined; errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined; disableValidation?: boolean | undefined; }>(data_0: import("better-auth").Prettify<{ query: { id: string; }; fetchOptions?: FetchOptions | undefined; }>, data_1?: FetchOptions | undefined) => Promise, { code?: string; message?: string; }, FetchOptions["throw"] extends true ? true : false>>; }; } & { organization: { listInvitations: >(context: import("@better-fetch/fetch").RequestContext) => Promise | import("@better-fetch/fetch").RequestContext | void) | undefined; onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined; onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext) => Promise | void) | undefined; onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise | void) | undefined; onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise | void) | undefined; hookOptions?: { cloneResponse?: boolean; } | undefined; timeout?: number | undefined; customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined; plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined; baseURL?: string | undefined; throw?: boolean | undefined; auth?: ({ type: "Bearer"; token: string | Promise | (() => string | Promise | undefined) | undefined; } | { type: "Basic"; username: string | (() => string | undefined) | undefined; password: string | (() => string | undefined) | undefined; } | { type: "Custom"; prefix: string | (() => string | undefined) | undefined; value: string | (() => string | undefined) | undefined; }) | undefined; body?: undefined; query?: (Partial<{ organizationId?: string | undefined; }> & Record) | undefined; params?: Record | undefined; duplex?: "full" | "half" | undefined; jsonParser?: ((text: string) => Promise | any) | undefined; retry?: import("@better-fetch/fetch").RetryOptions | undefined; retryAttempt?: number | undefined; output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined; errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined; disableValidation?: boolean | undefined; }>(data_0?: import("better-auth").Prettify<{ query?: { organizationId?: string | undefined; } | undefined; fetchOptions?: FetchOptions | undefined; }> | undefined, data_1?: FetchOptions | undefined) => Promise>; }; } & { organization: { updateMemberRole: >(context: import("@better-fetch/fetch").RequestContext) => Promise | import("@better-fetch/fetch").RequestContext | void) | undefined; onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined; onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext) => Promise | void) | undefined; onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise | void) | undefined; onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise | void) | undefined; hookOptions?: { cloneResponse?: boolean; } | undefined; timeout?: number | undefined; customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined; plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined; baseURL?: string | undefined; throw?: boolean | undefined; auth?: ({ type: "Bearer"; token: string | Promise | (() => string | Promise | undefined) | undefined; } | { type: "Basic"; username: string | (() => string | undefined) | undefined; password: string | (() => string | undefined) | undefined; } | { type: "Custom"; prefix: string | (() => string | undefined) | undefined; value: string | (() => string | undefined) | undefined; }) | undefined; body?: (Partial<{ role: import("better-auth").LiteralString | "org:admin" | "org:member" | "org:reviewer" | import("better-auth").LiteralString[] | ("org:admin" | "org:member" | "org:reviewer")[]; memberId: string; organizationId?: string; }> & Record) | undefined; query?: (Partial> & Record) | undefined; params?: Record | undefined; duplex?: "full" | "half" | undefined; jsonParser?: ((text: string) => Promise | any) | undefined; retry?: import("@better-fetch/fetch").RetryOptions | undefined; retryAttempt?: number | undefined; output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined; errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined; disableValidation?: boolean | undefined; }>(data_0: import("better-auth").Prettify<{ role: import("better-auth").LiteralString | "org:admin" | "org:member" | "org:reviewer" | import("better-auth").LiteralString[] | ("org:admin" | "org:member" | "org:reviewer")[]; memberId: string; organizationId?: string; } & { fetchOptions?: FetchOptions | undefined; }>, data_1?: FetchOptions | undefined) => Promise>; }; } & { organization: { listUserInvitations: >(context: import("@better-fetch/fetch").RequestContext) => Promise | import("@better-fetch/fetch").RequestContext | void) | undefined; onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined; onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext) => Promise | void) | undefined; onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise | void) | undefined; onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise | void) | undefined; hookOptions?: { cloneResponse?: boolean; } | undefined; timeout?: number | undefined; customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined; plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined; baseURL?: string | undefined; throw?: boolean | undefined; auth?: ({ type: "Bearer"; token: string | Promise | (() => string | Promise | undefined) | undefined; } | { type: "Basic"; username: string | (() => string | undefined) | undefined; password: string | (() => string | undefined) | undefined; } | { type: "Custom"; prefix: string | (() => string | undefined) | undefined; value: string | (() => string | undefined) | undefined; }) | undefined; body?: undefined; query?: (Partial<{ email?: string | undefined; }> & Record) | undefined; params?: Record | undefined; duplex?: "full" | "half" | undefined; jsonParser?: ((text: string) => Promise | any) | undefined; retry?: import("@better-fetch/fetch").RetryOptions | undefined; retryAttempt?: number | undefined; output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined; errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined; disableValidation?: boolean | undefined; }>(data_0?: import("better-auth").Prettify<{ query?: { email?: string | undefined; } | undefined; fetchOptions?: FetchOptions | undefined; }> | undefined, data_1?: FetchOptions | undefined) => Promise>; }; } & { organization: { createTeam: >(context: import("@better-fetch/fetch").RequestContext) => Promise | import("@better-fetch/fetch").RequestContext | void) | undefined; onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined; onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext) => Promise | void) | undefined; onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise | void) | undefined; onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise | void) | undefined; hookOptions?: { cloneResponse?: boolean; } | undefined; timeout?: number | undefined; customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined; plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined; baseURL?: string | undefined; throw?: boolean | undefined; auth?: ({ type: "Bearer"; token: string | Promise | (() => string | Promise | undefined) | undefined; } | { type: "Basic"; username: string | (() => string | undefined) | undefined; password: string | (() => string | undefined) | undefined; } | { type: "Custom"; prefix: string | (() => string | undefined) | undefined; value: string | (() => string | undefined) | undefined; }) | undefined; body?: (Partial<{ name: string; organizationId?: string | undefined; }> & Record) | undefined; query?: (Partial> & Record) | undefined; params?: Record | undefined; duplex?: "full" | "half" | undefined; jsonParser?: ((text: string) => Promise | any) | undefined; retry?: import("@better-fetch/fetch").RetryOptions | undefined; retryAttempt?: number | undefined; output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined; errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined; disableValidation?: boolean | undefined; }>(data_0: import("better-auth").Prettify<{ name: string; organizationId?: string | undefined; } & { fetchOptions?: FetchOptions | undefined; }>, data_1?: FetchOptions | undefined) => Promise>; }; } & { organization: { updateTeam: >(context: import("@better-fetch/fetch").RequestContext) => Promise | import("@better-fetch/fetch").RequestContext | void) | undefined; onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined; onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext) => Promise | void) | undefined; onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise | void) | undefined; onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise | void) | undefined; hookOptions?: { cloneResponse?: boolean; } | undefined; timeout?: number | undefined; customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined; plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined; baseURL?: string | undefined; throw?: boolean | undefined; auth?: ({ type: "Bearer"; token: string | Promise | (() => string | Promise | undefined) | undefined; } | { type: "Basic"; username: string | (() => string | undefined) | undefined; password: string | (() => string | undefined) | undefined; } | { type: "Custom"; prefix: string | (() => string | undefined) | undefined; value: string | (() => string | undefined) | undefined; }) | undefined; body?: (Partial<{ teamId: string; data: Partial<{ name: string; organizationId: string; }>; }> & Record) | undefined; query?: (Partial> & Record) | undefined; params?: Record | undefined; duplex?: "full" | "half" | undefined; jsonParser?: ((text: string) => Promise | any) | undefined; retry?: import("@better-fetch/fetch").RetryOptions | undefined; retryAttempt?: number | undefined; output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined; errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined; disableValidation?: boolean | undefined; }>(data_0: import("better-auth").Prettify<{ teamId: string; data: Partial<{ name: string; organizationId: string; }>; } & { fetchOptions?: FetchOptions | undefined; }>, data_1?: FetchOptions | undefined) => Promise>; }; } & { organization: { hasPermission: >(context: import("@better-fetch/fetch").RequestContext) => Promise | import("@better-fetch/fetch").RequestContext | void) | undefined; onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined; onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext) => Promise | void) | undefined; onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise | void) | undefined; onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise | void) | undefined; hookOptions?: { cloneResponse?: boolean; } | undefined; timeout?: number | undefined; customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined; plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined; baseURL?: string | undefined; throw?: boolean | undefined; auth?: ({ type: "Bearer"; token: string | Promise | (() => string | Promise | undefined) | undefined; } | { type: "Basic"; username: string | (() => string | undefined) | undefined; password: string | (() => string | undefined) | undefined; } | { type: "Custom"; prefix: string | (() => string | undefined) | undefined; value: string | (() => string | undefined) | undefined; }) | undefined; body?: (Partial<({ permission: { access?: string[] | undefined; organization?: ("delete" | "update")[] | undefined; member?: ("delete" | "update" | "create")[] | undefined; invitation?: ("create" | "cancel")[] | undefined; team?: ("delete" | "update" | "create")[] | undefined; ac?: ("delete" | "update" | "create" | "read")[] | undefined; }; permissions?: never; } | { permissions: { access?: string[] | undefined; organization?: ("delete" | "update")[] | undefined; member?: ("delete" | "update" | "create")[] | undefined; invitation?: ("create" | "cancel")[] | undefined; team?: ("delete" | "update" | "create")[] | undefined; ac?: ("delete" | "update" | "create" | "read")[] | undefined; }; permission?: never; }) & { organizationId?: string; }> & Record) | undefined; query?: (Partial> & Record) | undefined; params?: Record | undefined; duplex?: "full" | "half" | undefined; jsonParser?: ((text: string) => Promise | any) | undefined; retry?: import("@better-fetch/fetch").RetryOptions | undefined; retryAttempt?: number | undefined; output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined; errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined; disableValidation?: boolean | undefined; }>(data_0: import("better-auth").Prettify<(({ permission: { access?: string[] | undefined; organization?: ("delete" | "update")[] | undefined; member?: ("delete" | "update" | "create")[] | undefined; invitation?: ("create" | "cancel")[] | undefined; team?: ("delete" | "update" | "create")[] | undefined; ac?: ("delete" | "update" | "create" | "read")[] | undefined; }; permissions?: never; } | { permissions: { access?: string[] | undefined; organization?: ("delete" | "update")[] | undefined; member?: ("delete" | "update" | "create")[] | undefined; invitation?: ("create" | "cancel")[] | undefined; team?: ("delete" | "update" | "create")[] | undefined; ac?: ("delete" | "update" | "create" | "read")[] | undefined; }; permission?: never; }) & { organizationId?: string; }) & { fetchOptions?: FetchOptions | undefined; }>, data_1?: FetchOptions | undefined) => Promise>; }; } & { signIn: { social: >(context: import("@better-fetch/fetch").RequestContext) => Promise | import("@better-fetch/fetch").RequestContext | void) | undefined; onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined; onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext) => Promise | void) | undefined; onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise | void) | undefined; onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise | void) | undefined; hookOptions?: { cloneResponse?: boolean; } | undefined; timeout?: number | undefined; customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined; plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined; baseURL?: string | undefined; throw?: boolean | undefined; auth?: ({ type: "Bearer"; token: string | Promise | (() => string | Promise | undefined) | undefined; } | { type: "Basic"; username: string | (() => string | undefined) | undefined; password: string | (() => string | undefined) | undefined; } | { type: "Custom"; prefix: string | (() => string | undefined) | undefined; value: string | (() => string | undefined) | undefined; }) | undefined; body?: (Partial<{ provider: unknown; callbackURL?: string | undefined; newUserCallbackURL?: string | undefined; errorCallbackURL?: string | undefined; disableRedirect?: boolean | undefined; idToken?: { token: string; nonce?: string | undefined; accessToken?: string | undefined; refreshToken?: string | undefined; expiresAt?: number | undefined; } | undefined; scopes?: string[] | undefined; requestSignUp?: boolean | undefined; loginHint?: string | undefined; }> & Record) | undefined; query?: (Partial> & Record) | undefined; params?: Record | undefined; duplex?: "full" | "half" | undefined; jsonParser?: ((text: string) => Promise | any) | undefined; retry?: import("@better-fetch/fetch").RetryOptions | undefined; retryAttempt?: number | undefined; output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined; errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined; disableValidation?: boolean | undefined; }>(data_0: import("better-auth").Prettify<{ provider: unknown; callbackURL?: string | undefined; newUserCallbackURL?: string | undefined; errorCallbackURL?: string | undefined; disableRedirect?: boolean | undefined; idToken?: { token: string; nonce?: string | undefined; accessToken?: string | undefined; refreshToken?: string | undefined; expiresAt?: number | undefined; } | undefined; scopes?: string[] | undefined; requestSignUp?: boolean | undefined; loginHint?: string | undefined; } & { fetchOptions?: FetchOptions | undefined; }>, data_1?: FetchOptions | undefined) => Promise, { code?: string; message?: string; }, FetchOptions["throw"] extends true ? true : false>>; }; } & { signOut: >(context: import("@better-fetch/fetch").RequestContext) => Promise | import("@better-fetch/fetch").RequestContext | void) | undefined; onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined; onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext) => Promise | void) | undefined; onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise | void) | undefined; onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise | void) | undefined; hookOptions?: { cloneResponse?: boolean; } | undefined; timeout?: number | undefined; customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined; plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined; baseURL?: string | undefined; throw?: boolean | undefined; auth?: ({ type: "Bearer"; token: string | Promise | (() => string | Promise | undefined) | undefined; } | { type: "Basic"; username: string | (() => string | undefined) | undefined; password: string | (() => string | undefined) | undefined; } | { type: "Custom"; prefix: string | (() => string | undefined) | undefined; value: string | (() => string | undefined) | undefined; }) | undefined; body?: undefined; query?: (Partial> & Record) | undefined; params?: Record | undefined; duplex?: "full" | "half" | undefined; jsonParser?: ((text: string) => Promise | any) | undefined; retry?: import("@better-fetch/fetch").RetryOptions | undefined; retryAttempt?: number | undefined; output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined; errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined; disableValidation?: boolean | undefined; }>(data_0?: import("better-auth").Prettify<{ query?: Record | undefined; fetchOptions?: FetchOptions | undefined; }> | undefined, data_1?: FetchOptions | undefined) => Promise>; } & { signUp: { email: >(context: import("@better-fetch/fetch").RequestContext) => Promise | import("@better-fetch/fetch").RequestContext | void) | undefined; onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined; onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext) => Promise | void) | undefined; onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise | void) | undefined; onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise | void) | undefined; hookOptions?: { cloneResponse?: boolean; } | undefined; timeout?: number | undefined; customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined; plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined; baseURL?: string | undefined; throw?: boolean | undefined; auth?: ({ type: "Bearer"; token: string | Promise | (() => string | Promise | undefined) | undefined; } | { type: "Basic"; username: string | (() => string | undefined) | undefined; password: string | (() => string | undefined) | undefined; } | { type: "Custom"; prefix: string | (() => string | undefined) | undefined; value: string | (() => string | undefined) | undefined; }) | undefined; body?: (Partial<{ name: string; email: string; password: string; image?: string; callbackURL?: string; rememberMe?: boolean; }> & Record) | undefined; query?: (Partial> & Record) | undefined; params?: Record | undefined; duplex?: "full" | "half" | undefined; jsonParser?: ((text: string) => Promise | any) | undefined; retry?: import("@better-fetch/fetch").RetryOptions | undefined; retryAttempt?: number | undefined; output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined; errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined; disableValidation?: boolean | undefined; }>(data_0: import("better-auth").Prettify<{ email: string; name: string; password: string; image?: string; callbackURL?: string; fetchOptions?: FetchOptions | undefined; }>, data_1?: FetchOptions | undefined) => Promise, { code?: string; message?: string; }, FetchOptions["throw"] extends true ? true : false>>; }; } & { signIn: { email: >(context: import("@better-fetch/fetch").RequestContext) => Promise | import("@better-fetch/fetch").RequestContext | void) | undefined; onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined; onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext) => Promise | void) | undefined; onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise | void) | undefined; onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise | void) | undefined; hookOptions?: { cloneResponse?: boolean; } | undefined; timeout?: number | undefined; customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined; plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined; baseURL?: string | undefined; throw?: boolean | undefined; auth?: ({ type: "Bearer"; token: string | Promise | (() => string | Promise | undefined) | undefined; } | { type: "Basic"; username: string | (() => string | undefined) | undefined; password: string | (() => string | undefined) | undefined; } | { type: "Custom"; prefix: string | (() => string | undefined) | undefined; value: string | (() => string | undefined) | undefined; }) | undefined; body?: (Partial<{ email: string; password: string; callbackURL?: string | undefined; rememberMe?: boolean | undefined; }> & Record) | undefined; query?: (Partial> & Record) | undefined; params?: Record | undefined; duplex?: "full" | "half" | undefined; jsonParser?: ((text: string) => Promise | any) | undefined; retry?: import("@better-fetch/fetch").RetryOptions | undefined; retryAttempt?: number | undefined; output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined; errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined; disableValidation?: boolean | undefined; }>(data_0: import("better-auth").Prettify<{ email: string; password: string; callbackURL?: string | undefined; rememberMe?: boolean | undefined; } & { fetchOptions?: FetchOptions | undefined; }>, data_1?: FetchOptions | undefined) => Promise>; }; } & { forgetPassword: >(context: import("@better-fetch/fetch").RequestContext) => Promise | import("@better-fetch/fetch").RequestContext | void) | undefined; onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined; onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext) => Promise | void) | undefined; onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise | void) | undefined; onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise | void) | undefined; hookOptions?: { cloneResponse?: boolean; } | undefined; timeout?: number | undefined; customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined; plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined; baseURL?: string | undefined; throw?: boolean | undefined; auth?: ({ type: "Bearer"; token: string | Promise | (() => string | Promise | undefined) | undefined; } | { type: "Basic"; username: string | (() => string | undefined) | undefined; password: string | (() => string | undefined) | undefined; } | { type: "Custom"; prefix: string | (() => string | undefined) | undefined; value: string | (() => string | undefined) | undefined; }) | undefined; body?: (Partial<{ email: string; redirectTo?: string | undefined; }> & Record) | undefined; query?: (Partial> & Record) | undefined; params?: Record | undefined; duplex?: "full" | "half" | undefined; jsonParser?: ((text: string) => Promise | any) | undefined; retry?: import("@better-fetch/fetch").RetryOptions | undefined; retryAttempt?: number | undefined; output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined; errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined; disableValidation?: boolean | undefined; }>(data_0: import("better-auth").Prettify<{ email: string; redirectTo?: string | undefined; } & { fetchOptions?: FetchOptions | undefined; }>, data_1?: FetchOptions | undefined) => Promise>; } & { resetPassword: >(context: import("@better-fetch/fetch").RequestContext) => Promise | import("@better-fetch/fetch").RequestContext | void) | undefined; onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined; onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext) => Promise | void) | undefined; onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise | void) | undefined; onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise | void) | undefined; hookOptions?: { cloneResponse?: boolean; } | undefined; timeout?: number | undefined; customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined; plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined; baseURL?: string | undefined; throw?: boolean | undefined; auth?: ({ type: "Bearer"; token: string | Promise | (() => string | Promise | undefined) | undefined; } | { type: "Basic"; username: string | (() => string | undefined) | undefined; password: string | (() => string | undefined) | undefined; } | { type: "Custom"; prefix: string | (() => string | undefined) | undefined; value: string | (() => string | undefined) | undefined; }) | undefined; body?: (Partial<{ newPassword: string; token?: string | undefined; }> & Record) | undefined; query?: (Partial<{ token?: string | undefined; }> & Record) | undefined; params?: Record | undefined; duplex?: "full" | "half" | undefined; jsonParser?: ((text: string) => Promise | any) | undefined; retry?: import("@better-fetch/fetch").RetryOptions | undefined; retryAttempt?: number | undefined; output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined; errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined; disableValidation?: boolean | undefined; }>(data_0: import("better-auth").Prettify<{ newPassword: string; token?: string | undefined; } & { fetchOptions?: FetchOptions | undefined; }>, data_1?: FetchOptions | undefined) => Promise>; } & { verifyEmail: >(context: import("@better-fetch/fetch").RequestContext) => Promise | import("@better-fetch/fetch").RequestContext | void) | undefined; onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined; onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext) => Promise | void) | undefined; onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise | void) | undefined; onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise | void) | undefined; hookOptions?: { cloneResponse?: boolean; } | undefined; timeout?: number | undefined; customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined; plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined; baseURL?: string | undefined; throw?: boolean | undefined; auth?: ({ type: "Bearer"; token: string | Promise | (() => string | Promise | undefined) | undefined; } | { type: "Basic"; username: string | (() => string | undefined) | undefined; password: string | (() => string | undefined) | undefined; } | { type: "Custom"; prefix: string | (() => string | undefined) | undefined; value: string | (() => string | undefined) | undefined; }) | undefined; body?: undefined; query?: (Partial<{ token: string; callbackURL?: string | undefined; }> & Record) | undefined; params?: Record | undefined; duplex?: "full" | "half" | undefined; jsonParser?: ((text: string) => Promise | any) | undefined; retry?: import("@better-fetch/fetch").RetryOptions | undefined; retryAttempt?: number | undefined; output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined; errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined; disableValidation?: boolean | undefined; }>(data_0: import("better-auth").Prettify<{ query: { token: string; callbackURL?: string | undefined; }; fetchOptions?: FetchOptions | undefined; }>, data_1?: FetchOptions | undefined) => Promise, { code?: string; message?: string; }, FetchOptions["throw"] extends true ? true : false>>; } & { sendVerificationEmail: >(context: import("@better-fetch/fetch").RequestContext) => Promise | import("@better-fetch/fetch").RequestContext | void) | undefined; onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined; onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext) => Promise | void) | undefined; onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise | void) | undefined; onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise | void) | undefined; hookOptions?: { cloneResponse?: boolean; } | undefined; timeout?: number | undefined; customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined; plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined; baseURL?: string | undefined; throw?: boolean | undefined; auth?: ({ type: "Bearer"; token: string | Promise | (() => string | Promise | undefined) | undefined; } | { type: "Basic"; username: string | (() => string | undefined) | undefined; password: string | (() => string | undefined) | undefined; } | { type: "Custom"; prefix: string | (() => string | undefined) | undefined; value: string | (() => string | undefined) | undefined; }) | undefined; body?: (Partial<{ email: string; callbackURL?: string | undefined; }> & Record) | undefined; query?: (Partial> & Record) | undefined; params?: Record | undefined; duplex?: "full" | "half" | undefined; jsonParser?: ((text: string) => Promise | any) | undefined; retry?: import("@better-fetch/fetch").RetryOptions | undefined; retryAttempt?: number | undefined; output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined; errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined; disableValidation?: boolean | undefined; }>(data_0: import("better-auth").Prettify<{ email: string; callbackURL?: string | undefined; } & { fetchOptions?: FetchOptions | undefined; }>, data_1?: FetchOptions | undefined) => Promise>; } & { changeEmail: >(context: import("@better-fetch/fetch").RequestContext) => Promise | import("@better-fetch/fetch").RequestContext | void) | undefined; onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined; onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext) => Promise | void) | undefined; onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise | void) | undefined; onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise | void) | undefined; hookOptions?: { cloneResponse?: boolean; } | undefined; timeout?: number | undefined; customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined; plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined; baseURL?: string | undefined; throw?: boolean | undefined; auth?: ({ type: "Bearer"; token: string | Promise | (() => string | Promise | undefined) | undefined; } | { type: "Basic"; username: string | (() => string | undefined) | undefined; password: string | (() => string | undefined) | undefined; } | { type: "Custom"; prefix: string | (() => string | undefined) | undefined; value: string | (() => string | undefined) | undefined; }) | undefined; body?: (Partial<{ newEmail: string; callbackURL?: string | undefined; }> & Record) | undefined; query?: (Partial> & Record) | undefined; params?: Record | undefined; duplex?: "full" | "half" | undefined; jsonParser?: ((text: string) => Promise | any) | undefined; retry?: import("@better-fetch/fetch").RetryOptions | undefined; retryAttempt?: number | undefined; output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined; errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined; disableValidation?: boolean | undefined; }>(data_0: import("better-auth").Prettify<{ newEmail: string; callbackURL?: string | undefined; } & { fetchOptions?: FetchOptions | undefined; }>, data_1?: FetchOptions | undefined) => Promise>; } & { changePassword: >(context: import("@better-fetch/fetch").RequestContext) => Promise | import("@better-fetch/fetch").RequestContext | void) | undefined; onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined; onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext) => Promise | void) | undefined; onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise | void) | undefined; onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise | void) | undefined; hookOptions?: { cloneResponse?: boolean; } | undefined; timeout?: number | undefined; customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined; plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined; baseURL?: string | undefined; throw?: boolean | undefined; auth?: ({ type: "Bearer"; token: string | Promise | (() => string | Promise | undefined) | undefined; } | { type: "Basic"; username: string | (() => string | undefined) | undefined; password: string | (() => string | undefined) | undefined; } | { type: "Custom"; prefix: string | (() => string | undefined) | undefined; value: string | (() => string | undefined) | undefined; }) | undefined; body?: (Partial<{ newPassword: string; currentPassword: string; revokeOtherSessions?: boolean | undefined; }> & Record) | undefined; query?: (Partial> & Record) | undefined; params?: Record | undefined; duplex?: "full" | "half" | undefined; jsonParser?: ((text: string) => Promise | any) | undefined; retry?: import("@better-fetch/fetch").RetryOptions | undefined; retryAttempt?: number | undefined; output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined; errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined; disableValidation?: boolean | undefined; }>(data_0: import("better-auth").Prettify<{ newPassword: string; currentPassword: string; revokeOtherSessions?: boolean | undefined; } & { fetchOptions?: FetchOptions | undefined; }>, data_1?: FetchOptions | undefined) => Promise>; } & { updateUser: >(context: import("@better-fetch/fetch").RequestContext) => Promise | import("@better-fetch/fetch").RequestContext | void) | undefined; onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined; onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext) => Promise | void) | undefined; onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise | void) | undefined; onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise | void) | undefined; hookOptions?: { cloneResponse?: boolean; } | undefined; timeout?: number | undefined; customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined; plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined; baseURL?: string | undefined; throw?: boolean | undefined; auth?: ({ type: "Bearer"; token: string | Promise | (() => string | Promise | undefined) | undefined; } | { type: "Basic"; username: string | (() => string | undefined) | undefined; password: string | (() => string | undefined) | undefined; } | { type: "Custom"; prefix: string | (() => string | undefined) | undefined; value: string | (() => string | undefined) | undefined; }) | undefined; body?: (Partial & { name?: string; image?: string; }> & Record) | undefined; query?: (Partial> & Record) | undefined; params?: Record | undefined; duplex?: "full" | "half" | undefined; jsonParser?: ((text: string) => Promise | any) | undefined; retry?: import("@better-fetch/fetch").RetryOptions | undefined; retryAttempt?: number | undefined; output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined; errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined; disableValidation?: boolean | undefined; }>(data_0?: import("better-auth").Prettify<{ image?: string | null; name?: string; fetchOptions?: FetchOptions | undefined; } & Partial<{}>> | undefined, data_1?: FetchOptions | undefined) => Promise>; } & { deleteUser: >(context: import("@better-fetch/fetch").RequestContext) => Promise | import("@better-fetch/fetch").RequestContext | void) | undefined; onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined; onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext) => Promise | void) | undefined; onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise | void) | undefined; onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise | void) | undefined; hookOptions?: { cloneResponse?: boolean; } | undefined; timeout?: number | undefined; customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined; plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined; baseURL?: string | undefined; throw?: boolean | undefined; auth?: ({ type: "Bearer"; token: string | Promise | (() => string | Promise | undefined) | undefined; } | { type: "Basic"; username: string | (() => string | undefined) | undefined; password: string | (() => string | undefined) | undefined; } | { type: "Custom"; prefix: string | (() => string | undefined) | undefined; value: string | (() => string | undefined) | undefined; }) | undefined; body?: (Partial<{ callbackURL?: string | undefined; password?: string | undefined; token?: string | undefined; }> & Record) | undefined; query?: (Partial> & Record) | undefined; params?: Record | undefined; duplex?: "full" | "half" | undefined; jsonParser?: ((text: string) => Promise | any) | undefined; retry?: import("@better-fetch/fetch").RetryOptions | undefined; retryAttempt?: number | undefined; output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined; errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined; disableValidation?: boolean | undefined; }>(data_0?: import("better-auth").Prettify<{ callbackURL?: string | undefined; password?: string | undefined; token?: string | undefined; } & { fetchOptions?: FetchOptions | undefined; }> | undefined, data_1?: FetchOptions | undefined) => Promise>; } & { resetPassword: { ":token": >(context: import("@better-fetch/fetch").RequestContext) => Promise | import("@better-fetch/fetch").RequestContext | void) | undefined; onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined; onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext) => Promise | void) | undefined; onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise | void) | undefined; onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise | void) | undefined; hookOptions?: { cloneResponse?: boolean; } | undefined; timeout?: number | undefined; customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined; plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined; baseURL?: string | undefined; throw?: boolean | undefined; auth?: ({ type: "Bearer"; token: string | Promise | (() => string | Promise | undefined) | undefined; } | { type: "Basic"; username: string | (() => string | undefined) | undefined; password: string | (() => string | undefined) | undefined; } | { type: "Custom"; prefix: string | (() => string | undefined) | undefined; value: string | (() => string | undefined) | undefined; }) | undefined; body?: undefined; query?: (Partial<{ callbackURL: string; }> & Record) | undefined; params?: { token: string; } | undefined; duplex?: "full" | "half" | undefined; jsonParser?: ((text: string) => Promise | any) | undefined; retry?: import("@better-fetch/fetch").RetryOptions | undefined; retryAttempt?: number | undefined; output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined; errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined; disableValidation?: boolean | undefined; }>(data_0: import("better-auth").Prettify<{ query: { callbackURL: string; }; fetchOptions?: FetchOptions | undefined; }>, data_1?: FetchOptions | undefined) => Promise>; }; } & { requestPasswordReset: >(context: import("@better-fetch/fetch").RequestContext) => Promise | import("@better-fetch/fetch").RequestContext | void) | undefined; onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined; onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext) => Promise | void) | undefined; onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise | void) | undefined; onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise | void) | undefined; hookOptions?: { cloneResponse?: boolean; } | undefined; timeout?: number | undefined; customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined; plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined; baseURL?: string | undefined; throw?: boolean | undefined; auth?: ({ type: "Bearer"; token: string | Promise | (() => string | Promise | undefined) | undefined; } | { type: "Basic"; username: string | (() => string | undefined) | undefined; password: string | (() => string | undefined) | undefined; } | { type: "Custom"; prefix: string | (() => string | undefined) | undefined; value: string | (() => string | undefined) | undefined; }) | undefined; body?: (Partial<{ email: string; redirectTo?: string | undefined; }> & Record) | undefined; query?: (Partial> & Record) | undefined; params?: Record | undefined; duplex?: "full" | "half" | undefined; jsonParser?: ((text: string) => Promise | any) | undefined; retry?: import("@better-fetch/fetch").RetryOptions | undefined; retryAttempt?: number | undefined; output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined; errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined; disableValidation?: boolean | undefined; }>(data_0: import("better-auth").Prettify<{ email: string; redirectTo?: string | undefined; } & { fetchOptions?: FetchOptions | undefined; }>, data_1?: FetchOptions | undefined) => Promise>; } & { resetPassword: { ":token": >(context: import("@better-fetch/fetch").RequestContext) => Promise | import("@better-fetch/fetch").RequestContext | void) | undefined; onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined; onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext) => Promise | void) | undefined; onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise | void) | undefined; onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise | void) | undefined; hookOptions?: { cloneResponse?: boolean; } | undefined; timeout?: number | undefined; customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined; plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined; baseURL?: string | undefined; throw?: boolean | undefined; auth?: ({ type: "Bearer"; token: string | Promise | (() => string | Promise | undefined) | undefined; } | { type: "Basic"; username: string | (() => string | undefined) | undefined; password: string | (() => string | undefined) | undefined; } | { type: "Custom"; prefix: string | (() => string | undefined) | undefined; value: string | (() => string | undefined) | undefined; }) | undefined; body?: undefined; query?: (Partial<{ callbackURL: string; }> & Record) | undefined; params?: { token: string; } | undefined; duplex?: "full" | "half" | undefined; jsonParser?: ((text: string) => Promise | any) | undefined; retry?: import("@better-fetch/fetch").RetryOptions | undefined; retryAttempt?: number | undefined; output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined; errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined; disableValidation?: boolean | undefined; }>(data_0: import("better-auth").Prettify<{ query: { callbackURL: string; }; fetchOptions?: FetchOptions | undefined; }>, data_1?: FetchOptions | undefined) => Promise>; }; } & { listSessions: >(context: import("@better-fetch/fetch").RequestContext) => Promise | import("@better-fetch/fetch").RequestContext | void) | undefined; onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined; onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext) => Promise | void) | undefined; onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise | void) | undefined; onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise | void) | undefined; hookOptions?: { cloneResponse?: boolean; } | undefined; timeout?: number | undefined; customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined; plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined; baseURL?: string | undefined; throw?: boolean | undefined; auth?: ({ type: "Bearer"; token: string | Promise | (() => string | Promise | undefined) | undefined; } | { type: "Basic"; username: string | (() => string | undefined) | undefined; password: string | (() => string | undefined) | undefined; } | { type: "Custom"; prefix: string | (() => string | undefined) | undefined; value: string | (() => string | undefined) | undefined; }) | undefined; body?: undefined; query?: (Partial> & Record) | undefined; params?: Record | undefined; duplex?: "full" | "half" | undefined; jsonParser?: ((text: string) => Promise | any) | undefined; retry?: import("@better-fetch/fetch").RetryOptions | undefined; retryAttempt?: number | undefined; output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined; errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined; disableValidation?: boolean | undefined; }>(data_0?: import("better-auth").Prettify<{ query?: Record | undefined; fetchOptions?: FetchOptions | undefined; }> | undefined, data_1?: FetchOptions | undefined) => Promise[], { code?: string; message?: string; }, FetchOptions["throw"] extends true ? true : false>>; } & { revokeSession: >(context: import("@better-fetch/fetch").RequestContext) => Promise | import("@better-fetch/fetch").RequestContext | void) | undefined; onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined; onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext) => Promise | void) | undefined; onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise | void) | undefined; onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise | void) | undefined; hookOptions?: { cloneResponse?: boolean; } | undefined; timeout?: number | undefined; customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined; plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined; baseURL?: string | undefined; throw?: boolean | undefined; auth?: ({ type: "Bearer"; token: string | Promise | (() => string | Promise | undefined) | undefined; } | { type: "Basic"; username: string | (() => string | undefined) | undefined; password: string | (() => string | undefined) | undefined; } | { type: "Custom"; prefix: string | (() => string | undefined) | undefined; value: string | (() => string | undefined) | undefined; }) | undefined; body?: (Partial<{ token: string; }> & Record) | undefined; query?: (Partial> & Record) | undefined; params?: Record | undefined; duplex?: "full" | "half" | undefined; jsonParser?: ((text: string) => Promise | any) | undefined; retry?: import("@better-fetch/fetch").RetryOptions | undefined; retryAttempt?: number | undefined; output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined; errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined; disableValidation?: boolean | undefined; }>(data_0: import("better-auth").Prettify<{ token: string; } & { fetchOptions?: FetchOptions | undefined; }>, data_1?: FetchOptions | undefined) => Promise>; } & { revokeSessions: >(context: import("@better-fetch/fetch").RequestContext) => Promise | import("@better-fetch/fetch").RequestContext | void) | undefined; onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined; onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext) => Promise | void) | undefined; onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise | void) | undefined; onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise | void) | undefined; hookOptions?: { cloneResponse?: boolean; } | undefined; timeout?: number | undefined; customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined; plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined; baseURL?: string | undefined; throw?: boolean | undefined; auth?: ({ type: "Bearer"; token: string | Promise | (() => string | Promise | undefined) | undefined; } | { type: "Basic"; username: string | (() => string | undefined) | undefined; password: string | (() => string | undefined) | undefined; } | { type: "Custom"; prefix: string | (() => string | undefined) | undefined; value: string | (() => string | undefined) | undefined; }) | undefined; body?: undefined; query?: (Partial> & Record) | undefined; params?: Record | undefined; duplex?: "full" | "half" | undefined; jsonParser?: ((text: string) => Promise | any) | undefined; retry?: import("@better-fetch/fetch").RetryOptions | undefined; retryAttempt?: number | undefined; output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined; errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined; disableValidation?: boolean | undefined; }>(data_0?: import("better-auth").Prettify<{ query?: Record | undefined; fetchOptions?: FetchOptions | undefined; }> | undefined, data_1?: FetchOptions | undefined) => Promise>; } & { revokeOtherSessions: >(context: import("@better-fetch/fetch").RequestContext) => Promise | import("@better-fetch/fetch").RequestContext | void) | undefined; onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined; onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext) => Promise | void) | undefined; onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise | void) | undefined; onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise | void) | undefined; hookOptions?: { cloneResponse?: boolean; } | undefined; timeout?: number | undefined; customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined; plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined; baseURL?: string | undefined; throw?: boolean | undefined; auth?: ({ type: "Bearer"; token: string | Promise | (() => string | Promise | undefined) | undefined; } | { type: "Basic"; username: string | (() => string | undefined) | undefined; password: string | (() => string | undefined) | undefined; } | { type: "Custom"; prefix: string | (() => string | undefined) | undefined; value: string | (() => string | undefined) | undefined; }) | undefined; body?: undefined; query?: (Partial> & Record) | undefined; params?: Record | undefined; duplex?: "full" | "half" | undefined; jsonParser?: ((text: string) => Promise | any) | undefined; retry?: import("@better-fetch/fetch").RetryOptions | undefined; retryAttempt?: number | undefined; output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined; errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined; disableValidation?: boolean | undefined; }>(data_0?: import("better-auth").Prettify<{ query?: Record | undefined; fetchOptions?: FetchOptions | undefined; }> | undefined, data_1?: FetchOptions | undefined) => Promise>; } & { linkSocial: >(context: import("@better-fetch/fetch").RequestContext) => Promise | import("@better-fetch/fetch").RequestContext | void) | undefined; onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined; onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext) => Promise | void) | undefined; onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise | void) | undefined; onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise | void) | undefined; hookOptions?: { cloneResponse?: boolean; } | undefined; timeout?: number | undefined; customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined; plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined; baseURL?: string | undefined; throw?: boolean | undefined; auth?: ({ type: "Bearer"; token: string | Promise | (() => string | Promise | undefined) | undefined; } | { type: "Basic"; username: string | (() => string | undefined) | undefined; password: string | (() => string | undefined) | undefined; } | { type: "Custom"; prefix: string | (() => string | undefined) | undefined; value: string | (() => string | undefined) | undefined; }) | undefined; body?: (Partial<{ provider: unknown; callbackURL?: string | undefined; idToken?: { token: string; nonce?: string | undefined; accessToken?: string | undefined; refreshToken?: string | undefined; scopes?: string[] | undefined; } | undefined; requestSignUp?: boolean | undefined; scopes?: string[] | undefined; errorCallbackURL?: string | undefined; disableRedirect?: boolean | undefined; }> & Record) | undefined; query?: (Partial> & Record) | undefined; params?: Record | undefined; duplex?: "full" | "half" | undefined; jsonParser?: ((text: string) => Promise | any) | undefined; retry?: import("@better-fetch/fetch").RetryOptions | undefined; retryAttempt?: number | undefined; output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined; errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined; disableValidation?: boolean | undefined; }>(data_0: import("better-auth").Prettify<{ provider: unknown; callbackURL?: string | undefined; idToken?: { token: string; nonce?: string | undefined; accessToken?: string | undefined; refreshToken?: string | undefined; scopes?: string[] | undefined; } | undefined; requestSignUp?: boolean | undefined; scopes?: string[] | undefined; errorCallbackURL?: string | undefined; disableRedirect?: boolean | undefined; } & { fetchOptions?: FetchOptions | undefined; }>, data_1?: FetchOptions | undefined) => Promise>; } & { listAccounts: >(context: import("@better-fetch/fetch").RequestContext) => Promise | import("@better-fetch/fetch").RequestContext | void) | undefined; onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined; onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext) => Promise | void) | undefined; onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise | void) | undefined; onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise | void) | undefined; hookOptions?: { cloneResponse?: boolean; } | undefined; timeout?: number | undefined; customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined; plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined; baseURL?: string | undefined; throw?: boolean | undefined; auth?: ({ type: "Bearer"; token: string | Promise | (() => string | Promise | undefined) | undefined; } | { type: "Basic"; username: string | (() => string | undefined) | undefined; password: string | (() => string | undefined) | undefined; } | { type: "Custom"; prefix: string | (() => string | undefined) | undefined; value: string | (() => string | undefined) | undefined; }) | undefined; body?: undefined; query?: (Partial> & Record) | undefined; params?: Record | undefined; duplex?: "full" | "half" | undefined; jsonParser?: ((text: string) => Promise | any) | undefined; retry?: import("@better-fetch/fetch").RetryOptions | undefined; retryAttempt?: number | undefined; output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined; errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined; disableValidation?: boolean | undefined; }>(data_0?: import("better-auth").Prettify<{ query?: Record | undefined; fetchOptions?: FetchOptions | undefined; }> | undefined, data_1?: FetchOptions | undefined) => Promise>; } & { deleteUser: { callback: >(context: import("@better-fetch/fetch").RequestContext) => Promise | import("@better-fetch/fetch").RequestContext | void) | undefined; onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined; onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext) => Promise | void) | undefined; onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise | void) | undefined; onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise | void) | undefined; hookOptions?: { cloneResponse?: boolean; } | undefined; timeout?: number | undefined; customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined; plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined; baseURL?: string | undefined; throw?: boolean | undefined; auth?: ({ type: "Bearer"; token: string | Promise | (() => string | Promise | undefined) | undefined; } | { type: "Basic"; username: string | (() => string | undefined) | undefined; password: string | (() => string | undefined) | undefined; } | { type: "Custom"; prefix: string | (() => string | undefined) | undefined; value: string | (() => string | undefined) | undefined; }) | undefined; body?: undefined; query?: (Partial<{ token: string; callbackURL?: string | undefined; }> & Record) | undefined; params?: Record | undefined; duplex?: "full" | "half" | undefined; jsonParser?: ((text: string) => Promise | any) | undefined; retry?: import("@better-fetch/fetch").RetryOptions | undefined; retryAttempt?: number | undefined; output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined; errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined; disableValidation?: boolean | undefined; }>(data_0: import("better-auth").Prettify<{ query: { token: string; callbackURL?: string | undefined; }; fetchOptions?: FetchOptions | undefined; }>, data_1?: FetchOptions | undefined) => Promise>; }; } & { unlinkAccount: >(context: import("@better-fetch/fetch").RequestContext) => Promise | import("@better-fetch/fetch").RequestContext | void) | undefined; onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined; onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext) => Promise | void) | undefined; onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise | void) | undefined; onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise | void) | undefined; hookOptions?: { cloneResponse?: boolean; } | undefined; timeout?: number | undefined; customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined; plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined; baseURL?: string | undefined; throw?: boolean | undefined; auth?: ({ type: "Bearer"; token: string | Promise | (() => string | Promise | undefined) | undefined; } | { type: "Basic"; username: string | (() => string | undefined) | undefined; password: string | (() => string | undefined) | undefined; } | { type: "Custom"; prefix: string | (() => string | undefined) | undefined; value: string | (() => string | undefined) | undefined; }) | undefined; body?: (Partial<{ providerId: string; accountId?: string | undefined; }> & Record) | undefined; query?: (Partial> & Record) | undefined; params?: Record | undefined; duplex?: "full" | "half" | undefined; jsonParser?: ((text: string) => Promise | any) | undefined; retry?: import("@better-fetch/fetch").RetryOptions | undefined; retryAttempt?: number | undefined; output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined; errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined; disableValidation?: boolean | undefined; }>(data_0: import("better-auth").Prettify<{ providerId: string; accountId?: string | undefined; } & { fetchOptions?: FetchOptions | undefined; }>, data_1?: FetchOptions | undefined) => Promise>; } & { refreshToken: >(context: import("@better-fetch/fetch").RequestContext) => Promise | import("@better-fetch/fetch").RequestContext | void) | undefined; onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined; onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext) => Promise | void) | undefined; onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise | void) | undefined; onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise | void) | undefined; hookOptions?: { cloneResponse?: boolean; } | undefined; timeout?: number | undefined; customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined; plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined; baseURL?: string | undefined; throw?: boolean | undefined; auth?: ({ type: "Bearer"; token: string | Promise | (() => string | Promise | undefined) | undefined; } | { type: "Basic"; username: string | (() => string | undefined) | undefined; password: string | (() => string | undefined) | undefined; } | { type: "Custom"; prefix: string | (() => string | undefined) | undefined; value: string | (() => string | undefined) | undefined; }) | undefined; body?: (Partial<{ providerId: string; accountId?: string | undefined; userId?: string | undefined; }> & Record) | undefined; query?: (Partial> & Record) | undefined; params?: Record | undefined; duplex?: "full" | "half" | undefined; jsonParser?: ((text: string) => Promise | any) | undefined; retry?: import("@better-fetch/fetch").RetryOptions | undefined; retryAttempt?: number | undefined; output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined; errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined; disableValidation?: boolean | undefined; }>(data_0: import("better-auth").Prettify<{ providerId: string; accountId?: string | undefined; userId?: string | undefined; } & { fetchOptions?: FetchOptions | undefined; }>, data_1?: FetchOptions | undefined) => Promise>; } & { getAccessToken: >(context: import("@better-fetch/fetch").RequestContext) => Promise | import("@better-fetch/fetch").RequestContext | void) | undefined; onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined; onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext) => Promise | void) | undefined; onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise | void) | undefined; onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise | void) | undefined; hookOptions?: { cloneResponse?: boolean; } | undefined; timeout?: number | undefined; customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined; plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined; baseURL?: string | undefined; throw?: boolean | undefined; auth?: ({ type: "Bearer"; token: string | Promise | (() => string | Promise | undefined) | undefined; } | { type: "Basic"; username: string | (() => string | undefined) | undefined; password: string | (() => string | undefined) | undefined; } | { type: "Custom"; prefix: string | (() => string | undefined) | undefined; value: string | (() => string | undefined) | undefined; }) | undefined; body?: (Partial<{ providerId: string; accountId?: string | undefined; userId?: string | undefined; }> & Record) | undefined; query?: (Partial> & Record) | undefined; params?: Record | undefined; duplex?: "full" | "half" | undefined; jsonParser?: ((text: string) => Promise | any) | undefined; retry?: import("@better-fetch/fetch").RetryOptions | undefined; retryAttempt?: number | undefined; output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined; errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined; disableValidation?: boolean | undefined; }>(data_0: import("better-auth").Prettify<{ providerId: string; accountId?: string | undefined; userId?: string | undefined; } & { fetchOptions?: FetchOptions | undefined; }>, data_1?: FetchOptions | undefined) => Promise>; } & { accountInfo: >(context: import("@better-fetch/fetch").RequestContext) => Promise | import("@better-fetch/fetch").RequestContext | void) | undefined; onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined; onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext) => Promise | void) | undefined; onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise | void) | undefined; onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise | void) | undefined; hookOptions?: { cloneResponse?: boolean; } | undefined; timeout?: number | undefined; customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined; plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined; baseURL?: string | undefined; throw?: boolean | undefined; auth?: ({ type: "Bearer"; token: string | Promise | (() => string | Promise | undefined) | undefined; } | { type: "Basic"; username: string | (() => string | undefined) | undefined; password: string | (() => string | undefined) | undefined; } | { type: "Custom"; prefix: string | (() => string | undefined) | undefined; value: string | (() => string | undefined) | undefined; }) | undefined; body?: (Partial<{ accountId: string; }> & Record) | undefined; query?: (Partial> & Record) | undefined; params?: Record | undefined; duplex?: "full" | "half" | undefined; jsonParser?: ((text: string) => Promise | any) | undefined; retry?: import("@better-fetch/fetch").RetryOptions | undefined; retryAttempt?: number | undefined; output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined; errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined; disableValidation?: boolean | undefined; }>(data_0: import("better-auth").Prettify<{ accountId: string; } & { fetchOptions?: FetchOptions | undefined; }>, data_1?: FetchOptions | undefined) => Promise; }, { code?: string; message?: string; }, FetchOptions["throw"] extends true ? true : false>>; } & { getSession: >(context: import("@better-fetch/fetch").RequestContext) => Promise | import("@better-fetch/fetch").RequestContext | void) | undefined; onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined; onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext) => Promise | void) | undefined; onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise | void) | undefined; onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise | void) | undefined; hookOptions?: { cloneResponse?: boolean; } | undefined; timeout?: number | undefined; customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined; plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined; baseURL?: string | undefined; throw?: boolean | undefined; auth?: ({ type: "Bearer"; token: string | Promise | (() => string | Promise | undefined) | undefined; } | { type: "Basic"; username: string | (() => string | undefined) | undefined; password: string | (() => string | undefined) | undefined; } | { type: "Custom"; prefix: string | (() => string | undefined) | undefined; value: string | (() => string | undefined) | undefined; }) | undefined; body?: undefined; query?: (Partial<{ disableCookieCache?: unknown; disableRefresh?: unknown; }> & Record) | undefined; params?: Record | undefined; duplex?: "full" | "half" | undefined; jsonParser?: ((text: string) => Promise | any) | undefined; retry?: import("@better-fetch/fetch").RetryOptions | undefined; retryAttempt?: number | undefined; output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined; errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined; disableValidation?: boolean | undefined; }>(data_0?: import("better-auth").Prettify<{ query?: { disableCookieCache?: unknown; disableRefresh?: unknown; } | undefined; fetchOptions?: FetchOptions | undefined; }> | undefined, data_1?: FetchOptions | undefined) => Promise>; } & { $Infer: { ActiveOrganization: { members: { id: string; organizationId: string; role: "org:admin" | "org:member" | "org:reviewer"; createdAt: Date; userId: string; teamId?: string; user: { email: string; name: string; image?: string; }; }[]; invitations: { id: string; organizationId: string; email: string; role: "org:admin" | "org:member" | "org:reviewer"; status: import("better-auth/plugins").InvitationStatus; inviterId: string; expiresAt: Date; teamId?: string; }[]; teams: import("better-auth/plugins").Team[]; } & { id: string; name: string; slug: string; createdAt: Date; logo?: string | null | undefined; metadata?: any; }; Organization: import("better-auth/plugins").Organization; Invitation: { id: string; organizationId: string; email: string; role: "org:admin" | "org:member" | "org:reviewer"; status: import("better-auth/plugins").InvitationStatus; inviterId: string; expiresAt: Date; teamId?: string; }; Member: { id: string; organizationId: string; role: "org:admin" | "org:member" | "org:reviewer"; createdAt: Date; userId: string; teamId?: string; user: { email: string; name: string; image?: string; }; }; Team: import("better-auth/plugins").Team; }; organization: { checkRolePermission: (data: ({ permission: { access?: string[] | undefined; organization?: ("delete" | "update")[] | undefined; member?: ("delete" | "update" | "create")[] | undefined; invitation?: ("create" | "cancel")[] | undefined; team?: ("delete" | "update" | "create")[] | undefined; ac?: ("delete" | "update" | "create" | "read")[] | undefined; }; permissions?: never; } | { permissions: { access?: string[] | undefined; organization?: ("delete" | "update")[] | undefined; member?: ("delete" | "update" | "create")[] | undefined; invitation?: ("create" | "cancel")[] | undefined; team?: ("delete" | "update" | "create")[] | undefined; ac?: ("delete" | "update" | "create" | "read")[] | undefined; }; permission?: never; }) & { role: R; }) => boolean; }; } & { useSession: import("nanostores").Atom<{ data: { user: { id: string; createdAt: Date; updatedAt: Date; email: string; emailVerified: boolean; name: string; image?: string | null | undefined; }; session: { id: string; createdAt: Date; updatedAt: Date; userId: string; expiresAt: Date; token: string; ipAddress?: string | null | undefined; userAgent?: string | null | undefined; activeOrganizationId?: string | null | undefined; activeTeamId?: string | null | undefined; }; } | null; error: import("@better-fetch/fetch").BetterFetchError | null; isPending: boolean; }>; $fetch: import("@better-fetch/fetch").BetterFetch<{ plugins: (import("@better-fetch/fetch").BetterFetchPlugin | { id: string; name: string; hooks: { onSuccess: ((context: import("@better-fetch/fetch").SuccessContext) => Promise | void) | undefined; onError: ((context: import("@better-fetch/fetch").ErrorContext) => Promise | void) | undefined; onRequest: (>(context: import("@better-fetch/fetch").RequestContext) => Promise | import("@better-fetch/fetch").RequestContext | void) | undefined; onResponse: ((context: import("@better-fetch/fetch").ResponseContext) => Promise | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined; }; } | { id: string; name: string; hooks: { onSuccess(context: import("@better-fetch/fetch").SuccessContext): void; }; })[]; cache?: RequestCache | undefined; credentials?: RequestCredentials; 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; integrity?: string | undefined; keepalive?: boolean | undefined; method: string; mode?: RequestMode | undefined; priority?: RequestPriority | undefined; redirect?: RequestRedirect | undefined; referrer?: string | undefined; referrerPolicy?: ReferrerPolicy | undefined; signal?: (AbortSignal | null) | undefined; window?: null | undefined; onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise | void) | undefined; hookOptions?: { cloneResponse?: boolean; } | undefined; timeout?: number | undefined; customFetchImpl: import("@better-fetch/fetch").FetchEsque; baseURL: string; throw?: boolean | undefined; auth?: ({ type: "Bearer"; token: string | Promise | (() => string | Promise | undefined) | undefined; } | { type: "Basic"; username: string | (() => string | undefined) | undefined; password: string | (() => string | undefined) | undefined; } | { type: "Custom"; prefix: string | (() => string | undefined) | undefined; value: string | (() => string | undefined) | undefined; }) | undefined; body?: any; query?: any; params?: any; duplex?: "full" | "half" | undefined; jsonParser: (text: string) => Promise | any; retry?: import("@better-fetch/fetch").RetryOptions | undefined; retryAttempt?: number | undefined; output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined; errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined; disableValidation?: boolean | undefined; }, unknown, unknown, {}>; $store: { notify: (signal?: Omit | "$sessionSignal") => void; listen: (signal: Omit | "$sessionSignal", listener: (value: boolean, oldValue?: boolean | undefined) => void) => void; atoms: Record>; }; $Infer: { Session: { user: { id: string; createdAt: Date; updatedAt: Date; email: string; emailVerified: boolean; name: string; image?: string | null | undefined; }; session: { id: string; createdAt: Date; updatedAt: Date; userId: string; expiresAt: Date; token: string; ipAddress?: string | null | undefined; userAgent?: string | null | undefined; activeOrganizationId?: string | null | undefined; activeTeamId?: string | null | undefined; }; }; }; $ERROR_CODES: { readonly USER_NOT_FOUND: "User not found"; readonly FAILED_TO_CREATE_USER: "Failed to create user"; readonly FAILED_TO_CREATE_SESSION: "Failed to create session"; readonly FAILED_TO_UPDATE_USER: "Failed to update user"; readonly FAILED_TO_GET_SESSION: "Failed to get session"; readonly INVALID_PASSWORD: "Invalid password"; readonly INVALID_EMAIL: "Invalid email"; readonly INVALID_EMAIL_OR_PASSWORD: "Invalid email or password"; readonly SOCIAL_ACCOUNT_ALREADY_LINKED: "Social account already linked"; readonly PROVIDER_NOT_FOUND: "Provider not found"; readonly INVALID_TOKEN: "Invalid token"; readonly ID_TOKEN_NOT_SUPPORTED: "id_token not supported"; readonly FAILED_TO_GET_USER_INFO: "Failed to get user info"; readonly USER_EMAIL_NOT_FOUND: "User email not found"; readonly EMAIL_NOT_VERIFIED: "Email not verified"; readonly PASSWORD_TOO_SHORT: "Password too short"; readonly PASSWORD_TOO_LONG: "Password too long"; readonly USER_ALREADY_EXISTS: "User already exists."; readonly USER_ALREADY_EXISTS_USE_ANOTHER_EMAIL: "User already exists. Use another email."; readonly EMAIL_CAN_NOT_BE_UPDATED: "Email can not be updated"; readonly CREDENTIAL_ACCOUNT_NOT_FOUND: "Credential account not found"; readonly SESSION_EXPIRED: "Session expired. Re-authenticate to perform this action."; readonly FAILED_TO_UNLINK_LAST_ACCOUNT: "You can't unlink your last account"; readonly ACCOUNT_NOT_FOUND: "Account not found"; readonly USER_ALREADY_HAS_PASSWORD: "User already has a password. Provide that to delete the account."; }; }; getToken: () => Promise; refreshToken: () => Promise; }; }>; export default _default;