better-auth-instantdb 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (68) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +216 -0
  3. package/dist/adapter/create-schema.d.ts +9 -0
  4. package/dist/adapter/create-schema.js +178 -0
  5. package/dist/adapter/instant-adapter.d.ts +25 -0
  6. package/dist/adapter/instant-adapter.js +273 -0
  7. package/dist/client-plugin.d.ts +2143 -0
  8. package/dist/client-plugin.js +21 -0
  9. package/dist/create-schema.d.ts +25 -0
  10. package/dist/create-schema.js +115 -0
  11. package/dist/create-schema.js.map +1 -0
  12. package/dist/index.d.mts +18 -0
  13. package/dist/index.d.ts +2 -0
  14. package/dist/index.js +2 -0
  15. package/dist/index.js.map +1 -0
  16. package/dist/index.mjs +160 -0
  17. package/dist/instant-adapter.d.ts +26 -0
  18. package/dist/instant-adapter.js +214 -0
  19. package/dist/instant-adapter.js.map +1 -0
  20. package/dist/instant-auth.d.ts +3 -0
  21. package/dist/instant-auth.js +9 -0
  22. package/dist/lib/instant-auth.d.ts +3 -0
  23. package/dist/lib/instant-auth.js +9 -0
  24. package/dist/lib/utils.d.ts +12 -0
  25. package/dist/lib/utils.js +22 -0
  26. package/dist/metafile-cjs.json +1 -0
  27. package/dist/metafile-esm.json +1 -0
  28. package/dist/react/client-plugin.d.ts +2143 -0
  29. package/dist/react/client-plugin.js +21 -0
  30. package/dist/react/index.d.ts +4 -0
  31. package/dist/react/index.js +4 -0
  32. package/dist/react/instant-auth.d.ts +7 -0
  33. package/dist/react/instant-auth.js +5 -0
  34. package/dist/react/react.d.ts +2 -0
  35. package/dist/react/react.js +2 -0
  36. package/dist/react/types.d.ts +6 -0
  37. package/dist/react/types.js +1 -0
  38. package/dist/react/use-hydrated.d.ts +1 -0
  39. package/dist/react/use-hydrated.js +7 -0
  40. package/dist/react/use-instant-auth.d.ts +8 -0
  41. package/dist/react/use-instant-auth.js +13 -0
  42. package/dist/react/use-instant-session.d.ts +32 -0
  43. package/dist/react/use-instant-session.js +25 -0
  44. package/dist/react/use-persistent-session.d.ts +27 -0
  45. package/dist/react/use-persistent-session.js +49 -0
  46. package/dist/react/use-session.d.ts +0 -0
  47. package/dist/react/use-session.js +1 -0
  48. package/dist/react/with-instant.d.ts +3 -0
  49. package/dist/react/with-instant.js +47 -0
  50. package/dist/react.d.ts +2 -0
  51. package/dist/react.js +2 -0
  52. package/dist/shared/instant-auth.d.ts +4 -0
  53. package/dist/shared/instant-auth.js +9 -0
  54. package/dist/utils.d.ts +6 -0
  55. package/dist/utils.js +9 -0
  56. package/package.json +70 -0
  57. package/src/adapter/create-schema.ts +232 -0
  58. package/src/adapter/instant-adapter.ts +422 -0
  59. package/src/index.ts +2 -0
  60. package/src/lib/utils.ts +24 -0
  61. package/src/react/index.ts +4 -0
  62. package/src/react/instant-auth.tsx +17 -0
  63. package/src/react/types.ts +9 -0
  64. package/src/react/use-hydrated.ts +13 -0
  65. package/src/react/use-instant-auth.ts +28 -0
  66. package/src/react/use-instant-session.ts +46 -0
  67. package/src/react/use-persistent-session.ts +64 -0
  68. package/src/shared/instant-auth.ts +18 -0
@@ -0,0 +1,2143 @@
1
+ import type { createAuthClient } from "better-auth/react";
2
+ export declare const instantDBPluginClient: ({ authClient }: {
3
+ authClient: ReturnType<typeof createAuthClient>;
4
+ }) => {
5
+ signIn: {
6
+ social: <FetchOptions extends {
7
+ method?: string | undefined;
8
+ headers?: (HeadersInit & (HeadersInit | {
9
+ accept: "application/json" | "text/plain" | "application/octet-stream";
10
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
11
+ authorization: "Bearer" | "Basic";
12
+ })) | undefined;
13
+ cache?: RequestCache | undefined;
14
+ credentials?: RequestCredentials | undefined;
15
+ integrity?: string | undefined;
16
+ keepalive?: boolean | undefined;
17
+ mode?: RequestMode | undefined;
18
+ priority?: RequestPriority | undefined;
19
+ redirect?: RequestRedirect | undefined;
20
+ referrer?: string | undefined;
21
+ referrerPolicy?: ReferrerPolicy | undefined;
22
+ signal?: (AbortSignal | null) | undefined;
23
+ window?: null | undefined;
24
+ onRequest?: (<T extends Record<string, any>>(context: import("better-auth/react").RequestContext<T>) => Promise<import("better-auth/react").RequestContext | void> | import("better-auth/react").RequestContext | void) | undefined;
25
+ onResponse?: ((context: import("better-auth/react").ResponseContext) => Promise<Response | void | import("better-auth/react").ResponseContext> | Response | import("better-auth/react").ResponseContext | void) | undefined;
26
+ onSuccess?: ((context: import("better-auth/react").SuccessContext<any>) => Promise<void> | void) | undefined;
27
+ onError?: ((context: import("better-auth/react").ErrorContext) => Promise<void> | void) | undefined;
28
+ onRetry?: ((response: import("better-auth/react").ResponseContext) => Promise<void> | void) | undefined;
29
+ hookOptions?: {
30
+ cloneResponse?: boolean;
31
+ } | undefined;
32
+ timeout?: number | undefined;
33
+ customFetchImpl?: import("better-auth/react").FetchEsque | undefined;
34
+ plugins?: import("better-auth/react").BetterFetchPlugin[] | undefined;
35
+ baseURL?: string | undefined;
36
+ throw?: boolean | undefined;
37
+ auth?: ({
38
+ type: "Bearer";
39
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
40
+ } | {
41
+ type: "Basic";
42
+ username: string | (() => string | undefined) | undefined;
43
+ password: string | (() => string | undefined) | undefined;
44
+ } | {
45
+ type: "Custom";
46
+ prefix: string | (() => string | undefined) | undefined;
47
+ value: string | (() => string | undefined) | undefined;
48
+ }) | undefined;
49
+ body?: (Partial<{
50
+ provider: unknown;
51
+ callbackURL?: string | undefined;
52
+ newUserCallbackURL?: string | undefined;
53
+ errorCallbackURL?: string | undefined;
54
+ disableRedirect?: boolean | undefined;
55
+ idToken?: {
56
+ token: string;
57
+ nonce?: string | undefined;
58
+ accessToken?: string | undefined;
59
+ refreshToken?: string | undefined;
60
+ expiresAt?: number | undefined;
61
+ } | undefined;
62
+ scopes?: string[] | undefined;
63
+ requestSignUp?: boolean | undefined;
64
+ loginHint?: string | undefined;
65
+ }> & Record<string, any>) | undefined;
66
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
67
+ params?: Record<string, any> | undefined;
68
+ duplex?: "full" | "half" | undefined;
69
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
70
+ retry?: import("better-auth/react").RetryOptions | undefined;
71
+ retryAttempt?: number | undefined;
72
+ output?: (import("better-auth/react").StandardSchemaV1 | typeof Blob | typeof File) | undefined;
73
+ errorSchema?: import("better-auth/react").StandardSchemaV1 | undefined;
74
+ disableValidation?: boolean | undefined;
75
+ }>(data_0: import("better-auth/dist/shared/better-auth.DNnBkMGu").a<{
76
+ provider: unknown;
77
+ callbackURL?: string | undefined;
78
+ newUserCallbackURL?: string | undefined;
79
+ errorCallbackURL?: string | undefined;
80
+ disableRedirect?: boolean | undefined;
81
+ idToken?: {
82
+ token: string;
83
+ nonce?: string | undefined;
84
+ accessToken?: string | undefined;
85
+ refreshToken?: string | undefined;
86
+ expiresAt?: number | undefined;
87
+ } | undefined;
88
+ scopes?: string[] | undefined;
89
+ requestSignUp?: boolean | undefined;
90
+ loginHint?: string | undefined;
91
+ } & {
92
+ fetchOptions?: FetchOptions | undefined;
93
+ }>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/react").BetterFetchResponse<NonNullable<{
94
+ redirect: boolean;
95
+ token: string;
96
+ url: undefined;
97
+ user: {
98
+ id: string;
99
+ email: string;
100
+ name: string;
101
+ image: string | null | undefined;
102
+ emailVerified: boolean;
103
+ createdAt: Date;
104
+ updatedAt: Date;
105
+ };
106
+ } | {
107
+ url: string;
108
+ redirect: boolean;
109
+ }>, {
110
+ code?: string;
111
+ message?: string;
112
+ }, FetchOptions["throw"] extends true ? true : false>>;
113
+ };
114
+ } & {
115
+ signOut: <FetchOptions extends {
116
+ method?: string | undefined;
117
+ headers?: (HeadersInit & (HeadersInit | {
118
+ accept: "application/json" | "text/plain" | "application/octet-stream";
119
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
120
+ authorization: "Bearer" | "Basic";
121
+ })) | undefined;
122
+ cache?: RequestCache | undefined;
123
+ credentials?: RequestCredentials | undefined;
124
+ integrity?: string | undefined;
125
+ keepalive?: boolean | undefined;
126
+ mode?: RequestMode | undefined;
127
+ priority?: RequestPriority | undefined;
128
+ redirect?: RequestRedirect | undefined;
129
+ referrer?: string | undefined;
130
+ referrerPolicy?: ReferrerPolicy | undefined;
131
+ signal?: (AbortSignal | null) | undefined;
132
+ window?: null | undefined;
133
+ onRequest?: (<T extends Record<string, any>>(context: import("better-auth/react").RequestContext<T>) => Promise<import("better-auth/react").RequestContext | void> | import("better-auth/react").RequestContext | void) | undefined;
134
+ onResponse?: ((context: import("better-auth/react").ResponseContext) => Promise<Response | void | import("better-auth/react").ResponseContext> | Response | import("better-auth/react").ResponseContext | void) | undefined;
135
+ onSuccess?: ((context: import("better-auth/react").SuccessContext<any>) => Promise<void> | void) | undefined;
136
+ onError?: ((context: import("better-auth/react").ErrorContext) => Promise<void> | void) | undefined;
137
+ onRetry?: ((response: import("better-auth/react").ResponseContext) => Promise<void> | void) | undefined;
138
+ hookOptions?: {
139
+ cloneResponse?: boolean;
140
+ } | undefined;
141
+ timeout?: number | undefined;
142
+ customFetchImpl?: import("better-auth/react").FetchEsque | undefined;
143
+ plugins?: import("better-auth/react").BetterFetchPlugin[] | undefined;
144
+ baseURL?: string | undefined;
145
+ throw?: boolean | undefined;
146
+ auth?: ({
147
+ type: "Bearer";
148
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
149
+ } | {
150
+ type: "Basic";
151
+ username: string | (() => string | undefined) | undefined;
152
+ password: string | (() => string | undefined) | undefined;
153
+ } | {
154
+ type: "Custom";
155
+ prefix: string | (() => string | undefined) | undefined;
156
+ value: string | (() => string | undefined) | undefined;
157
+ }) | undefined;
158
+ body?: undefined;
159
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
160
+ params?: Record<string, any> | undefined;
161
+ duplex?: "full" | "half" | undefined;
162
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
163
+ retry?: import("better-auth/react").RetryOptions | undefined;
164
+ retryAttempt?: number | undefined;
165
+ output?: (import("better-auth/react").StandardSchemaV1 | typeof Blob | typeof File) | undefined;
166
+ errorSchema?: import("better-auth/react").StandardSchemaV1 | undefined;
167
+ disableValidation?: boolean | undefined;
168
+ }>(data_0?: import("better-auth/dist/shared/better-auth.DNnBkMGu").a<{
169
+ query?: Record<string, any> | undefined;
170
+ fetchOptions?: FetchOptions | undefined;
171
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<import("better-auth/react").BetterFetchResponse<{
172
+ success: boolean;
173
+ }, {
174
+ code?: string;
175
+ message?: string;
176
+ }, FetchOptions["throw"] extends true ? true : false>>;
177
+ } & {
178
+ signUp: {
179
+ email: <FetchOptions extends {
180
+ method?: string | undefined;
181
+ headers?: (HeadersInit & (HeadersInit | {
182
+ accept: "application/json" | "text/plain" | "application/octet-stream";
183
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
184
+ authorization: "Bearer" | "Basic";
185
+ })) | undefined;
186
+ cache?: RequestCache | undefined;
187
+ credentials?: RequestCredentials | undefined;
188
+ integrity?: string | undefined;
189
+ keepalive?: boolean | undefined;
190
+ mode?: RequestMode | undefined;
191
+ priority?: RequestPriority | undefined;
192
+ redirect?: RequestRedirect | undefined;
193
+ referrer?: string | undefined;
194
+ referrerPolicy?: ReferrerPolicy | undefined;
195
+ signal?: (AbortSignal | null) | undefined;
196
+ window?: null | undefined;
197
+ onRequest?: (<T extends Record<string, any>>(context: import("better-auth/react").RequestContext<T>) => Promise<import("better-auth/react").RequestContext | void> | import("better-auth/react").RequestContext | void) | undefined;
198
+ onResponse?: ((context: import("better-auth/react").ResponseContext) => Promise<Response | void | import("better-auth/react").ResponseContext> | Response | import("better-auth/react").ResponseContext | void) | undefined;
199
+ onSuccess?: ((context: import("better-auth/react").SuccessContext<any>) => Promise<void> | void) | undefined;
200
+ onError?: ((context: import("better-auth/react").ErrorContext) => Promise<void> | void) | undefined;
201
+ onRetry?: ((response: import("better-auth/react").ResponseContext) => Promise<void> | void) | undefined;
202
+ hookOptions?: {
203
+ cloneResponse?: boolean;
204
+ } | undefined;
205
+ timeout?: number | undefined;
206
+ customFetchImpl?: import("better-auth/react").FetchEsque | undefined;
207
+ plugins?: import("better-auth/react").BetterFetchPlugin[] | undefined;
208
+ baseURL?: string | undefined;
209
+ throw?: boolean | undefined;
210
+ auth?: ({
211
+ type: "Bearer";
212
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
213
+ } | {
214
+ type: "Basic";
215
+ username: string | (() => string | undefined) | undefined;
216
+ password: string | (() => string | undefined) | undefined;
217
+ } | {
218
+ type: "Custom";
219
+ prefix: string | (() => string | undefined) | undefined;
220
+ value: string | (() => string | undefined) | undefined;
221
+ }) | undefined;
222
+ body?: (Partial<{
223
+ name: string;
224
+ email: string;
225
+ password: string;
226
+ image?: string;
227
+ callbackURL?: string;
228
+ rememberMe?: boolean;
229
+ }> & Record<string, any>) | undefined;
230
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
231
+ params?: Record<string, any> | undefined;
232
+ duplex?: "full" | "half" | undefined;
233
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
234
+ retry?: import("better-auth/react").RetryOptions | undefined;
235
+ retryAttempt?: number | undefined;
236
+ output?: (import("better-auth/react").StandardSchemaV1 | typeof Blob | typeof File) | undefined;
237
+ errorSchema?: import("better-auth/react").StandardSchemaV1 | undefined;
238
+ disableValidation?: boolean | undefined;
239
+ }>(data_0: import("better-auth/dist/shared/better-auth.DNnBkMGu").a<{
240
+ email: string;
241
+ name: string;
242
+ password: string;
243
+ image?: string;
244
+ callbackURL?: string;
245
+ fetchOptions?: FetchOptions | undefined;
246
+ }>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/react").BetterFetchResponse<NonNullable<{
247
+ token: null;
248
+ user: {
249
+ id: string;
250
+ email: string;
251
+ name: string;
252
+ image: string | null | undefined;
253
+ emailVerified: boolean;
254
+ createdAt: Date;
255
+ updatedAt: Date;
256
+ };
257
+ } | {
258
+ token: string;
259
+ user: {
260
+ id: string;
261
+ email: string;
262
+ name: string;
263
+ image: string | null | undefined;
264
+ emailVerified: boolean;
265
+ createdAt: Date;
266
+ updatedAt: Date;
267
+ };
268
+ }>, {
269
+ code?: string;
270
+ message?: string;
271
+ }, FetchOptions["throw"] extends true ? true : false>>;
272
+ };
273
+ } & {
274
+ signIn: {
275
+ email: <FetchOptions extends {
276
+ method?: string | undefined;
277
+ headers?: (HeadersInit & (HeadersInit | {
278
+ accept: "application/json" | "text/plain" | "application/octet-stream";
279
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
280
+ authorization: "Bearer" | "Basic";
281
+ })) | undefined;
282
+ cache?: RequestCache | undefined;
283
+ credentials?: RequestCredentials | undefined;
284
+ integrity?: string | undefined;
285
+ keepalive?: boolean | undefined;
286
+ mode?: RequestMode | undefined;
287
+ priority?: RequestPriority | undefined;
288
+ redirect?: RequestRedirect | undefined;
289
+ referrer?: string | undefined;
290
+ referrerPolicy?: ReferrerPolicy | undefined;
291
+ signal?: (AbortSignal | null) | undefined;
292
+ window?: null | undefined;
293
+ onRequest?: (<T extends Record<string, any>>(context: import("better-auth/react").RequestContext<T>) => Promise<import("better-auth/react").RequestContext | void> | import("better-auth/react").RequestContext | void) | undefined;
294
+ onResponse?: ((context: import("better-auth/react").ResponseContext) => Promise<Response | void | import("better-auth/react").ResponseContext> | Response | import("better-auth/react").ResponseContext | void) | undefined;
295
+ onSuccess?: ((context: import("better-auth/react").SuccessContext<any>) => Promise<void> | void) | undefined;
296
+ onError?: ((context: import("better-auth/react").ErrorContext) => Promise<void> | void) | undefined;
297
+ onRetry?: ((response: import("better-auth/react").ResponseContext) => Promise<void> | void) | undefined;
298
+ hookOptions?: {
299
+ cloneResponse?: boolean;
300
+ } | undefined;
301
+ timeout?: number | undefined;
302
+ customFetchImpl?: import("better-auth/react").FetchEsque | undefined;
303
+ plugins?: import("better-auth/react").BetterFetchPlugin[] | undefined;
304
+ baseURL?: string | undefined;
305
+ throw?: boolean | undefined;
306
+ auth?: ({
307
+ type: "Bearer";
308
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
309
+ } | {
310
+ type: "Basic";
311
+ username: string | (() => string | undefined) | undefined;
312
+ password: string | (() => string | undefined) | undefined;
313
+ } | {
314
+ type: "Custom";
315
+ prefix: string | (() => string | undefined) | undefined;
316
+ value: string | (() => string | undefined) | undefined;
317
+ }) | undefined;
318
+ body?: (Partial<{
319
+ email: string;
320
+ password: string;
321
+ callbackURL?: string | undefined;
322
+ rememberMe?: boolean | undefined;
323
+ }> & Record<string, any>) | undefined;
324
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
325
+ params?: Record<string, any> | undefined;
326
+ duplex?: "full" | "half" | undefined;
327
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
328
+ retry?: import("better-auth/react").RetryOptions | undefined;
329
+ retryAttempt?: number | undefined;
330
+ output?: (import("better-auth/react").StandardSchemaV1 | typeof Blob | typeof File) | undefined;
331
+ errorSchema?: import("better-auth/react").StandardSchemaV1 | undefined;
332
+ disableValidation?: boolean | undefined;
333
+ }>(data_0: import("better-auth/dist/shared/better-auth.DNnBkMGu").a<{
334
+ email: string;
335
+ password: string;
336
+ callbackURL?: string | undefined;
337
+ rememberMe?: boolean | undefined;
338
+ } & {
339
+ fetchOptions?: FetchOptions | undefined;
340
+ }>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/react").BetterFetchResponse<{
341
+ redirect: boolean;
342
+ token: string;
343
+ url: string | undefined;
344
+ user: {
345
+ id: string;
346
+ email: string;
347
+ name: string;
348
+ image: string | null | undefined;
349
+ emailVerified: boolean;
350
+ createdAt: Date;
351
+ updatedAt: Date;
352
+ };
353
+ }, {
354
+ code?: string;
355
+ message?: string;
356
+ }, FetchOptions["throw"] extends true ? true : false>>;
357
+ };
358
+ } & {
359
+ forgetPassword: <FetchOptions extends {
360
+ method?: string | undefined;
361
+ headers?: (HeadersInit & (HeadersInit | {
362
+ accept: "application/json" | "text/plain" | "application/octet-stream";
363
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
364
+ authorization: "Bearer" | "Basic";
365
+ })) | undefined;
366
+ cache?: RequestCache | undefined;
367
+ credentials?: RequestCredentials | undefined;
368
+ integrity?: string | undefined;
369
+ keepalive?: boolean | undefined;
370
+ mode?: RequestMode | undefined;
371
+ priority?: RequestPriority | undefined;
372
+ redirect?: RequestRedirect | undefined;
373
+ referrer?: string | undefined;
374
+ referrerPolicy?: ReferrerPolicy | undefined;
375
+ signal?: (AbortSignal | null) | undefined;
376
+ window?: null | undefined;
377
+ onRequest?: (<T extends Record<string, any>>(context: import("better-auth/react").RequestContext<T>) => Promise<import("better-auth/react").RequestContext | void> | import("better-auth/react").RequestContext | void) | undefined;
378
+ onResponse?: ((context: import("better-auth/react").ResponseContext) => Promise<Response | void | import("better-auth/react").ResponseContext> | Response | import("better-auth/react").ResponseContext | void) | undefined;
379
+ onSuccess?: ((context: import("better-auth/react").SuccessContext<any>) => Promise<void> | void) | undefined;
380
+ onError?: ((context: import("better-auth/react").ErrorContext) => Promise<void> | void) | undefined;
381
+ onRetry?: ((response: import("better-auth/react").ResponseContext) => Promise<void> | void) | undefined;
382
+ hookOptions?: {
383
+ cloneResponse?: boolean;
384
+ } | undefined;
385
+ timeout?: number | undefined;
386
+ customFetchImpl?: import("better-auth/react").FetchEsque | undefined;
387
+ plugins?: import("better-auth/react").BetterFetchPlugin[] | undefined;
388
+ baseURL?: string | undefined;
389
+ throw?: boolean | undefined;
390
+ auth?: ({
391
+ type: "Bearer";
392
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
393
+ } | {
394
+ type: "Basic";
395
+ username: string | (() => string | undefined) | undefined;
396
+ password: string | (() => string | undefined) | undefined;
397
+ } | {
398
+ type: "Custom";
399
+ prefix: string | (() => string | undefined) | undefined;
400
+ value: string | (() => string | undefined) | undefined;
401
+ }) | undefined;
402
+ body?: (Partial<{
403
+ email: string;
404
+ redirectTo?: string | undefined;
405
+ }> & Record<string, any>) | undefined;
406
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
407
+ params?: Record<string, any> | undefined;
408
+ duplex?: "full" | "half" | undefined;
409
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
410
+ retry?: import("better-auth/react").RetryOptions | undefined;
411
+ retryAttempt?: number | undefined;
412
+ output?: (import("better-auth/react").StandardSchemaV1 | typeof Blob | typeof File) | undefined;
413
+ errorSchema?: import("better-auth/react").StandardSchemaV1 | undefined;
414
+ disableValidation?: boolean | undefined;
415
+ }>(data_0: import("better-auth/dist/shared/better-auth.DNnBkMGu").a<{
416
+ email: string;
417
+ redirectTo?: string | undefined;
418
+ } & {
419
+ fetchOptions?: FetchOptions | undefined;
420
+ }>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/react").BetterFetchResponse<{
421
+ status: boolean;
422
+ }, {
423
+ code?: string;
424
+ message?: string;
425
+ }, FetchOptions["throw"] extends true ? true : false>>;
426
+ } & {
427
+ resetPassword: <FetchOptions extends {
428
+ method?: string | undefined;
429
+ headers?: (HeadersInit & (HeadersInit | {
430
+ accept: "application/json" | "text/plain" | "application/octet-stream";
431
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
432
+ authorization: "Bearer" | "Basic";
433
+ })) | undefined;
434
+ cache?: RequestCache | undefined;
435
+ credentials?: RequestCredentials | undefined;
436
+ integrity?: string | undefined;
437
+ keepalive?: boolean | undefined;
438
+ mode?: RequestMode | undefined;
439
+ priority?: RequestPriority | undefined;
440
+ redirect?: RequestRedirect | undefined;
441
+ referrer?: string | undefined;
442
+ referrerPolicy?: ReferrerPolicy | undefined;
443
+ signal?: (AbortSignal | null) | undefined;
444
+ window?: null | undefined;
445
+ onRequest?: (<T extends Record<string, any>>(context: import("better-auth/react").RequestContext<T>) => Promise<import("better-auth/react").RequestContext | void> | import("better-auth/react").RequestContext | void) | undefined;
446
+ onResponse?: ((context: import("better-auth/react").ResponseContext) => Promise<Response | void | import("better-auth/react").ResponseContext> | Response | import("better-auth/react").ResponseContext | void) | undefined;
447
+ onSuccess?: ((context: import("better-auth/react").SuccessContext<any>) => Promise<void> | void) | undefined;
448
+ onError?: ((context: import("better-auth/react").ErrorContext) => Promise<void> | void) | undefined;
449
+ onRetry?: ((response: import("better-auth/react").ResponseContext) => Promise<void> | void) | undefined;
450
+ hookOptions?: {
451
+ cloneResponse?: boolean;
452
+ } | undefined;
453
+ timeout?: number | undefined;
454
+ customFetchImpl?: import("better-auth/react").FetchEsque | undefined;
455
+ plugins?: import("better-auth/react").BetterFetchPlugin[] | undefined;
456
+ baseURL?: string | undefined;
457
+ throw?: boolean | undefined;
458
+ auth?: ({
459
+ type: "Bearer";
460
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
461
+ } | {
462
+ type: "Basic";
463
+ username: string | (() => string | undefined) | undefined;
464
+ password: string | (() => string | undefined) | undefined;
465
+ } | {
466
+ type: "Custom";
467
+ prefix: string | (() => string | undefined) | undefined;
468
+ value: string | (() => string | undefined) | undefined;
469
+ }) | undefined;
470
+ body?: (Partial<{
471
+ newPassword: string;
472
+ token?: string | undefined;
473
+ }> & Record<string, any>) | undefined;
474
+ query?: (Partial<{
475
+ token?: string | undefined;
476
+ }> & Record<string, any>) | undefined;
477
+ params?: Record<string, any> | undefined;
478
+ duplex?: "full" | "half" | undefined;
479
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
480
+ retry?: import("better-auth/react").RetryOptions | undefined;
481
+ retryAttempt?: number | undefined;
482
+ output?: (import("better-auth/react").StandardSchemaV1 | typeof Blob | typeof File) | undefined;
483
+ errorSchema?: import("better-auth/react").StandardSchemaV1 | undefined;
484
+ disableValidation?: boolean | undefined;
485
+ }>(data_0: import("better-auth/dist/shared/better-auth.DNnBkMGu").a<{
486
+ newPassword: string;
487
+ token?: string | undefined;
488
+ } & {
489
+ fetchOptions?: FetchOptions | undefined;
490
+ }>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/react").BetterFetchResponse<{
491
+ status: boolean;
492
+ }, {
493
+ code?: string;
494
+ message?: string;
495
+ }, FetchOptions["throw"] extends true ? true : false>>;
496
+ } & {
497
+ verifyEmail: <FetchOptions extends {
498
+ method?: string | undefined;
499
+ headers?: (HeadersInit & (HeadersInit | {
500
+ accept: "application/json" | "text/plain" | "application/octet-stream";
501
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
502
+ authorization: "Bearer" | "Basic";
503
+ })) | undefined;
504
+ cache?: RequestCache | undefined;
505
+ credentials?: RequestCredentials | undefined;
506
+ integrity?: string | undefined;
507
+ keepalive?: boolean | undefined;
508
+ mode?: RequestMode | undefined;
509
+ priority?: RequestPriority | undefined;
510
+ redirect?: RequestRedirect | undefined;
511
+ referrer?: string | undefined;
512
+ referrerPolicy?: ReferrerPolicy | undefined;
513
+ signal?: (AbortSignal | null) | undefined;
514
+ window?: null | undefined;
515
+ onRequest?: (<T extends Record<string, any>>(context: import("better-auth/react").RequestContext<T>) => Promise<import("better-auth/react").RequestContext | void> | import("better-auth/react").RequestContext | void) | undefined;
516
+ onResponse?: ((context: import("better-auth/react").ResponseContext) => Promise<Response | void | import("better-auth/react").ResponseContext> | Response | import("better-auth/react").ResponseContext | void) | undefined;
517
+ onSuccess?: ((context: import("better-auth/react").SuccessContext<any>) => Promise<void> | void) | undefined;
518
+ onError?: ((context: import("better-auth/react").ErrorContext) => Promise<void> | void) | undefined;
519
+ onRetry?: ((response: import("better-auth/react").ResponseContext) => Promise<void> | void) | undefined;
520
+ hookOptions?: {
521
+ cloneResponse?: boolean;
522
+ } | undefined;
523
+ timeout?: number | undefined;
524
+ customFetchImpl?: import("better-auth/react").FetchEsque | undefined;
525
+ plugins?: import("better-auth/react").BetterFetchPlugin[] | undefined;
526
+ baseURL?: string | undefined;
527
+ throw?: boolean | undefined;
528
+ auth?: ({
529
+ type: "Bearer";
530
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
531
+ } | {
532
+ type: "Basic";
533
+ username: string | (() => string | undefined) | undefined;
534
+ password: string | (() => string | undefined) | undefined;
535
+ } | {
536
+ type: "Custom";
537
+ prefix: string | (() => string | undefined) | undefined;
538
+ value: string | (() => string | undefined) | undefined;
539
+ }) | undefined;
540
+ body?: undefined;
541
+ query?: (Partial<{
542
+ token: string;
543
+ callbackURL?: string | undefined;
544
+ }> & Record<string, any>) | undefined;
545
+ params?: Record<string, any> | undefined;
546
+ duplex?: "full" | "half" | undefined;
547
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
548
+ retry?: import("better-auth/react").RetryOptions | undefined;
549
+ retryAttempt?: number | undefined;
550
+ output?: (import("better-auth/react").StandardSchemaV1 | typeof Blob | typeof File) | undefined;
551
+ errorSchema?: import("better-auth/react").StandardSchemaV1 | undefined;
552
+ disableValidation?: boolean | undefined;
553
+ }>(data_0: import("better-auth/dist/shared/better-auth.DNnBkMGu").a<{
554
+ query: {
555
+ token: string;
556
+ callbackURL?: string | undefined;
557
+ };
558
+ fetchOptions?: FetchOptions | undefined;
559
+ }>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/react").BetterFetchResponse<NonNullable<void | {
560
+ status: boolean;
561
+ user: {
562
+ id: string;
563
+ email: string;
564
+ name: string;
565
+ image: string | null | undefined;
566
+ emailVerified: boolean;
567
+ createdAt: Date;
568
+ updatedAt: Date;
569
+ };
570
+ } | {
571
+ status: boolean;
572
+ user: null;
573
+ }>, {
574
+ code?: string;
575
+ message?: string;
576
+ }, FetchOptions["throw"] extends true ? true : false>>;
577
+ } & {
578
+ sendVerificationEmail: <FetchOptions extends {
579
+ method?: string | undefined;
580
+ headers?: (HeadersInit & (HeadersInit | {
581
+ accept: "application/json" | "text/plain" | "application/octet-stream";
582
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
583
+ authorization: "Bearer" | "Basic";
584
+ })) | undefined;
585
+ cache?: RequestCache | undefined;
586
+ credentials?: RequestCredentials | undefined;
587
+ integrity?: string | undefined;
588
+ keepalive?: boolean | undefined;
589
+ mode?: RequestMode | undefined;
590
+ priority?: RequestPriority | undefined;
591
+ redirect?: RequestRedirect | undefined;
592
+ referrer?: string | undefined;
593
+ referrerPolicy?: ReferrerPolicy | undefined;
594
+ signal?: (AbortSignal | null) | undefined;
595
+ window?: null | undefined;
596
+ onRequest?: (<T extends Record<string, any>>(context: import("better-auth/react").RequestContext<T>) => Promise<import("better-auth/react").RequestContext | void> | import("better-auth/react").RequestContext | void) | undefined;
597
+ onResponse?: ((context: import("better-auth/react").ResponseContext) => Promise<Response | void | import("better-auth/react").ResponseContext> | Response | import("better-auth/react").ResponseContext | void) | undefined;
598
+ onSuccess?: ((context: import("better-auth/react").SuccessContext<any>) => Promise<void> | void) | undefined;
599
+ onError?: ((context: import("better-auth/react").ErrorContext) => Promise<void> | void) | undefined;
600
+ onRetry?: ((response: import("better-auth/react").ResponseContext) => Promise<void> | void) | undefined;
601
+ hookOptions?: {
602
+ cloneResponse?: boolean;
603
+ } | undefined;
604
+ timeout?: number | undefined;
605
+ customFetchImpl?: import("better-auth/react").FetchEsque | undefined;
606
+ plugins?: import("better-auth/react").BetterFetchPlugin[] | undefined;
607
+ baseURL?: string | undefined;
608
+ throw?: boolean | undefined;
609
+ auth?: ({
610
+ type: "Bearer";
611
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
612
+ } | {
613
+ type: "Basic";
614
+ username: string | (() => string | undefined) | undefined;
615
+ password: string | (() => string | undefined) | undefined;
616
+ } | {
617
+ type: "Custom";
618
+ prefix: string | (() => string | undefined) | undefined;
619
+ value: string | (() => string | undefined) | undefined;
620
+ }) | undefined;
621
+ body?: (Partial<{
622
+ email: string;
623
+ callbackURL?: string | undefined;
624
+ }> & Record<string, any>) | undefined;
625
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
626
+ params?: Record<string, any> | undefined;
627
+ duplex?: "full" | "half" | undefined;
628
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
629
+ retry?: import("better-auth/react").RetryOptions | undefined;
630
+ retryAttempt?: number | undefined;
631
+ output?: (import("better-auth/react").StandardSchemaV1 | typeof Blob | typeof File) | undefined;
632
+ errorSchema?: import("better-auth/react").StandardSchemaV1 | undefined;
633
+ disableValidation?: boolean | undefined;
634
+ }>(data_0: import("better-auth/dist/shared/better-auth.DNnBkMGu").a<{
635
+ email: string;
636
+ callbackURL?: string | undefined;
637
+ } & {
638
+ fetchOptions?: FetchOptions | undefined;
639
+ }>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/react").BetterFetchResponse<{
640
+ status: boolean;
641
+ }, {
642
+ code?: string;
643
+ message?: string;
644
+ }, FetchOptions["throw"] extends true ? true : false>>;
645
+ } & {
646
+ changeEmail: <FetchOptions extends {
647
+ method?: string | undefined;
648
+ headers?: (HeadersInit & (HeadersInit | {
649
+ accept: "application/json" | "text/plain" | "application/octet-stream";
650
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
651
+ authorization: "Bearer" | "Basic";
652
+ })) | undefined;
653
+ cache?: RequestCache | undefined;
654
+ credentials?: RequestCredentials | undefined;
655
+ integrity?: string | undefined;
656
+ keepalive?: boolean | undefined;
657
+ mode?: RequestMode | undefined;
658
+ priority?: RequestPriority | undefined;
659
+ redirect?: RequestRedirect | undefined;
660
+ referrer?: string | undefined;
661
+ referrerPolicy?: ReferrerPolicy | undefined;
662
+ signal?: (AbortSignal | null) | undefined;
663
+ window?: null | undefined;
664
+ onRequest?: (<T extends Record<string, any>>(context: import("better-auth/react").RequestContext<T>) => Promise<import("better-auth/react").RequestContext | void> | import("better-auth/react").RequestContext | void) | undefined;
665
+ onResponse?: ((context: import("better-auth/react").ResponseContext) => Promise<Response | void | import("better-auth/react").ResponseContext> | Response | import("better-auth/react").ResponseContext | void) | undefined;
666
+ onSuccess?: ((context: import("better-auth/react").SuccessContext<any>) => Promise<void> | void) | undefined;
667
+ onError?: ((context: import("better-auth/react").ErrorContext) => Promise<void> | void) | undefined;
668
+ onRetry?: ((response: import("better-auth/react").ResponseContext) => Promise<void> | void) | undefined;
669
+ hookOptions?: {
670
+ cloneResponse?: boolean;
671
+ } | undefined;
672
+ timeout?: number | undefined;
673
+ customFetchImpl?: import("better-auth/react").FetchEsque | undefined;
674
+ plugins?: import("better-auth/react").BetterFetchPlugin[] | undefined;
675
+ baseURL?: string | undefined;
676
+ throw?: boolean | undefined;
677
+ auth?: ({
678
+ type: "Bearer";
679
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
680
+ } | {
681
+ type: "Basic";
682
+ username: string | (() => string | undefined) | undefined;
683
+ password: string | (() => string | undefined) | undefined;
684
+ } | {
685
+ type: "Custom";
686
+ prefix: string | (() => string | undefined) | undefined;
687
+ value: string | (() => string | undefined) | undefined;
688
+ }) | undefined;
689
+ body?: (Partial<{
690
+ newEmail: string;
691
+ callbackURL?: string | undefined;
692
+ }> & Record<string, any>) | undefined;
693
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
694
+ params?: Record<string, any> | undefined;
695
+ duplex?: "full" | "half" | undefined;
696
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
697
+ retry?: import("better-auth/react").RetryOptions | undefined;
698
+ retryAttempt?: number | undefined;
699
+ output?: (import("better-auth/react").StandardSchemaV1 | typeof Blob | typeof File) | undefined;
700
+ errorSchema?: import("better-auth/react").StandardSchemaV1 | undefined;
701
+ disableValidation?: boolean | undefined;
702
+ }>(data_0: import("better-auth/dist/shared/better-auth.DNnBkMGu").a<{
703
+ newEmail: string;
704
+ callbackURL?: string | undefined;
705
+ } & {
706
+ fetchOptions?: FetchOptions | undefined;
707
+ }>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/react").BetterFetchResponse<{
708
+ status: boolean;
709
+ }, {
710
+ code?: string;
711
+ message?: string;
712
+ }, FetchOptions["throw"] extends true ? true : false>>;
713
+ } & {
714
+ changePassword: <FetchOptions extends {
715
+ method?: string | undefined;
716
+ headers?: (HeadersInit & (HeadersInit | {
717
+ accept: "application/json" | "text/plain" | "application/octet-stream";
718
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
719
+ authorization: "Bearer" | "Basic";
720
+ })) | undefined;
721
+ cache?: RequestCache | undefined;
722
+ credentials?: RequestCredentials | undefined;
723
+ integrity?: string | undefined;
724
+ keepalive?: boolean | undefined;
725
+ mode?: RequestMode | undefined;
726
+ priority?: RequestPriority | undefined;
727
+ redirect?: RequestRedirect | undefined;
728
+ referrer?: string | undefined;
729
+ referrerPolicy?: ReferrerPolicy | undefined;
730
+ signal?: (AbortSignal | null) | undefined;
731
+ window?: null | undefined;
732
+ onRequest?: (<T extends Record<string, any>>(context: import("better-auth/react").RequestContext<T>) => Promise<import("better-auth/react").RequestContext | void> | import("better-auth/react").RequestContext | void) | undefined;
733
+ onResponse?: ((context: import("better-auth/react").ResponseContext) => Promise<Response | void | import("better-auth/react").ResponseContext> | Response | import("better-auth/react").ResponseContext | void) | undefined;
734
+ onSuccess?: ((context: import("better-auth/react").SuccessContext<any>) => Promise<void> | void) | undefined;
735
+ onError?: ((context: import("better-auth/react").ErrorContext) => Promise<void> | void) | undefined;
736
+ onRetry?: ((response: import("better-auth/react").ResponseContext) => Promise<void> | void) | undefined;
737
+ hookOptions?: {
738
+ cloneResponse?: boolean;
739
+ } | undefined;
740
+ timeout?: number | undefined;
741
+ customFetchImpl?: import("better-auth/react").FetchEsque | undefined;
742
+ plugins?: import("better-auth/react").BetterFetchPlugin[] | undefined;
743
+ baseURL?: string | undefined;
744
+ throw?: boolean | undefined;
745
+ auth?: ({
746
+ type: "Bearer";
747
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
748
+ } | {
749
+ type: "Basic";
750
+ username: string | (() => string | undefined) | undefined;
751
+ password: string | (() => string | undefined) | undefined;
752
+ } | {
753
+ type: "Custom";
754
+ prefix: string | (() => string | undefined) | undefined;
755
+ value: string | (() => string | undefined) | undefined;
756
+ }) | undefined;
757
+ body?: (Partial<{
758
+ newPassword: string;
759
+ currentPassword: string;
760
+ revokeOtherSessions?: boolean | undefined;
761
+ }> & Record<string, any>) | undefined;
762
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
763
+ params?: Record<string, any> | undefined;
764
+ duplex?: "full" | "half" | undefined;
765
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
766
+ retry?: import("better-auth/react").RetryOptions | undefined;
767
+ retryAttempt?: number | undefined;
768
+ output?: (import("better-auth/react").StandardSchemaV1 | typeof Blob | typeof File) | undefined;
769
+ errorSchema?: import("better-auth/react").StandardSchemaV1 | undefined;
770
+ disableValidation?: boolean | undefined;
771
+ }>(data_0: import("better-auth/dist/shared/better-auth.DNnBkMGu").a<{
772
+ newPassword: string;
773
+ currentPassword: string;
774
+ revokeOtherSessions?: boolean | undefined;
775
+ } & {
776
+ fetchOptions?: FetchOptions | undefined;
777
+ }>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/react").BetterFetchResponse<{
778
+ token: string | null;
779
+ user: {
780
+ id: string;
781
+ email: string;
782
+ name: string;
783
+ image: string | null | undefined;
784
+ emailVerified: boolean;
785
+ createdAt: Date;
786
+ updatedAt: Date;
787
+ };
788
+ }, {
789
+ code?: string;
790
+ message?: string;
791
+ }, FetchOptions["throw"] extends true ? true : false>>;
792
+ } & {
793
+ updateUser: <FetchOptions extends {
794
+ method?: string | undefined;
795
+ headers?: (HeadersInit & (HeadersInit | {
796
+ accept: "application/json" | "text/plain" | "application/octet-stream";
797
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
798
+ authorization: "Bearer" | "Basic";
799
+ })) | undefined;
800
+ cache?: RequestCache | undefined;
801
+ credentials?: RequestCredentials | undefined;
802
+ integrity?: string | undefined;
803
+ keepalive?: boolean | undefined;
804
+ mode?: RequestMode | undefined;
805
+ priority?: RequestPriority | undefined;
806
+ redirect?: RequestRedirect | undefined;
807
+ referrer?: string | undefined;
808
+ referrerPolicy?: ReferrerPolicy | undefined;
809
+ signal?: (AbortSignal | null) | undefined;
810
+ window?: null | undefined;
811
+ onRequest?: (<T extends Record<string, any>>(context: import("better-auth/react").RequestContext<T>) => Promise<import("better-auth/react").RequestContext | void> | import("better-auth/react").RequestContext | void) | undefined;
812
+ onResponse?: ((context: import("better-auth/react").ResponseContext) => Promise<Response | void | import("better-auth/react").ResponseContext> | Response | import("better-auth/react").ResponseContext | void) | undefined;
813
+ onSuccess?: ((context: import("better-auth/react").SuccessContext<any>) => Promise<void> | void) | undefined;
814
+ onError?: ((context: import("better-auth/react").ErrorContext) => Promise<void> | void) | undefined;
815
+ onRetry?: ((response: import("better-auth/react").ResponseContext) => Promise<void> | void) | undefined;
816
+ hookOptions?: {
817
+ cloneResponse?: boolean;
818
+ } | undefined;
819
+ timeout?: number | undefined;
820
+ customFetchImpl?: import("better-auth/react").FetchEsque | undefined;
821
+ plugins?: import("better-auth/react").BetterFetchPlugin[] | undefined;
822
+ baseURL?: string | undefined;
823
+ throw?: boolean | undefined;
824
+ auth?: ({
825
+ type: "Bearer";
826
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
827
+ } | {
828
+ type: "Basic";
829
+ username: string | (() => string | undefined) | undefined;
830
+ password: string | (() => string | undefined) | undefined;
831
+ } | {
832
+ type: "Custom";
833
+ prefix: string | (() => string | undefined) | undefined;
834
+ value: string | (() => string | undefined) | undefined;
835
+ }) | undefined;
836
+ body?: (Partial<Partial<{}> & {
837
+ name?: string;
838
+ image?: string;
839
+ }> & Record<string, any>) | undefined;
840
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
841
+ params?: Record<string, any> | undefined;
842
+ duplex?: "full" | "half" | undefined;
843
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
844
+ retry?: import("better-auth/react").RetryOptions | undefined;
845
+ retryAttempt?: number | undefined;
846
+ output?: (import("better-auth/react").StandardSchemaV1 | typeof Blob | typeof File) | undefined;
847
+ errorSchema?: import("better-auth/react").StandardSchemaV1 | undefined;
848
+ disableValidation?: boolean | undefined;
849
+ }>(data_0?: import("better-auth/dist/shared/better-auth.DNnBkMGu").a<{
850
+ image?: string | null;
851
+ name?: string;
852
+ fetchOptions?: FetchOptions | undefined;
853
+ } & Partial<{}>> | undefined, data_1?: FetchOptions | undefined) => Promise<import("better-auth/react").BetterFetchResponse<{
854
+ status: boolean;
855
+ }, {
856
+ code?: string;
857
+ message?: string;
858
+ }, FetchOptions["throw"] extends true ? true : false>>;
859
+ } & {
860
+ deleteUser: <FetchOptions extends {
861
+ method?: string | undefined;
862
+ headers?: (HeadersInit & (HeadersInit | {
863
+ accept: "application/json" | "text/plain" | "application/octet-stream";
864
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
865
+ authorization: "Bearer" | "Basic";
866
+ })) | undefined;
867
+ cache?: RequestCache | undefined;
868
+ credentials?: RequestCredentials | undefined;
869
+ integrity?: string | undefined;
870
+ keepalive?: boolean | undefined;
871
+ mode?: RequestMode | undefined;
872
+ priority?: RequestPriority | undefined;
873
+ redirect?: RequestRedirect | undefined;
874
+ referrer?: string | undefined;
875
+ referrerPolicy?: ReferrerPolicy | undefined;
876
+ signal?: (AbortSignal | null) | undefined;
877
+ window?: null | undefined;
878
+ onRequest?: (<T extends Record<string, any>>(context: import("better-auth/react").RequestContext<T>) => Promise<import("better-auth/react").RequestContext | void> | import("better-auth/react").RequestContext | void) | undefined;
879
+ onResponse?: ((context: import("better-auth/react").ResponseContext) => Promise<Response | void | import("better-auth/react").ResponseContext> | Response | import("better-auth/react").ResponseContext | void) | undefined;
880
+ onSuccess?: ((context: import("better-auth/react").SuccessContext<any>) => Promise<void> | void) | undefined;
881
+ onError?: ((context: import("better-auth/react").ErrorContext) => Promise<void> | void) | undefined;
882
+ onRetry?: ((response: import("better-auth/react").ResponseContext) => Promise<void> | void) | undefined;
883
+ hookOptions?: {
884
+ cloneResponse?: boolean;
885
+ } | undefined;
886
+ timeout?: number | undefined;
887
+ customFetchImpl?: import("better-auth/react").FetchEsque | undefined;
888
+ plugins?: import("better-auth/react").BetterFetchPlugin[] | undefined;
889
+ baseURL?: string | undefined;
890
+ throw?: boolean | undefined;
891
+ auth?: ({
892
+ type: "Bearer";
893
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
894
+ } | {
895
+ type: "Basic";
896
+ username: string | (() => string | undefined) | undefined;
897
+ password: string | (() => string | undefined) | undefined;
898
+ } | {
899
+ type: "Custom";
900
+ prefix: string | (() => string | undefined) | undefined;
901
+ value: string | (() => string | undefined) | undefined;
902
+ }) | undefined;
903
+ body?: (Partial<{
904
+ callbackURL?: string | undefined;
905
+ password?: string | undefined;
906
+ token?: string | undefined;
907
+ }> & Record<string, any>) | undefined;
908
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
909
+ params?: Record<string, any> | undefined;
910
+ duplex?: "full" | "half" | undefined;
911
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
912
+ retry?: import("better-auth/react").RetryOptions | undefined;
913
+ retryAttempt?: number | undefined;
914
+ output?: (import("better-auth/react").StandardSchemaV1 | typeof Blob | typeof File) | undefined;
915
+ errorSchema?: import("better-auth/react").StandardSchemaV1 | undefined;
916
+ disableValidation?: boolean | undefined;
917
+ }>(data_0?: import("better-auth/dist/shared/better-auth.DNnBkMGu").a<{
918
+ callbackURL?: string | undefined;
919
+ password?: string | undefined;
920
+ token?: string | undefined;
921
+ } & {
922
+ fetchOptions?: FetchOptions | undefined;
923
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<import("better-auth/react").BetterFetchResponse<{
924
+ success: boolean;
925
+ message: string;
926
+ }, {
927
+ code?: string;
928
+ message?: string;
929
+ }, FetchOptions["throw"] extends true ? true : false>>;
930
+ } & {
931
+ resetPassword: {
932
+ ":token": <FetchOptions extends {
933
+ method?: string | undefined;
934
+ headers?: (HeadersInit & (HeadersInit | {
935
+ accept: "application/json" | "text/plain" | "application/octet-stream";
936
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
937
+ authorization: "Bearer" | "Basic";
938
+ })) | undefined;
939
+ cache?: RequestCache | undefined;
940
+ credentials?: RequestCredentials | undefined;
941
+ integrity?: string | undefined;
942
+ keepalive?: boolean | undefined;
943
+ mode?: RequestMode | undefined;
944
+ priority?: RequestPriority | undefined;
945
+ redirect?: RequestRedirect | undefined;
946
+ referrer?: string | undefined;
947
+ referrerPolicy?: ReferrerPolicy | undefined;
948
+ signal?: (AbortSignal | null) | undefined;
949
+ window?: null | undefined;
950
+ onRequest?: (<T extends Record<string, any>>(context: import("better-auth/react").RequestContext<T>) => Promise<import("better-auth/react").RequestContext | void> | import("better-auth/react").RequestContext | void) | undefined;
951
+ onResponse?: ((context: import("better-auth/react").ResponseContext) => Promise<Response | void | import("better-auth/react").ResponseContext> | Response | import("better-auth/react").ResponseContext | void) | undefined;
952
+ onSuccess?: ((context: import("better-auth/react").SuccessContext<any>) => Promise<void> | void) | undefined;
953
+ onError?: ((context: import("better-auth/react").ErrorContext) => Promise<void> | void) | undefined;
954
+ onRetry?: ((response: import("better-auth/react").ResponseContext) => Promise<void> | void) | undefined;
955
+ hookOptions?: {
956
+ cloneResponse?: boolean;
957
+ } | undefined;
958
+ timeout?: number | undefined;
959
+ customFetchImpl?: import("better-auth/react").FetchEsque | undefined;
960
+ plugins?: import("better-auth/react").BetterFetchPlugin[] | undefined;
961
+ baseURL?: string | undefined;
962
+ throw?: boolean | undefined;
963
+ auth?: ({
964
+ type: "Bearer";
965
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
966
+ } | {
967
+ type: "Basic";
968
+ username: string | (() => string | undefined) | undefined;
969
+ password: string | (() => string | undefined) | undefined;
970
+ } | {
971
+ type: "Custom";
972
+ prefix: string | (() => string | undefined) | undefined;
973
+ value: string | (() => string | undefined) | undefined;
974
+ }) | undefined;
975
+ body?: undefined;
976
+ query?: (Partial<{
977
+ callbackURL: string;
978
+ }> & Record<string, any>) | undefined;
979
+ params?: {
980
+ token: string;
981
+ } | undefined;
982
+ duplex?: "full" | "half" | undefined;
983
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
984
+ retry?: import("better-auth/react").RetryOptions | undefined;
985
+ retryAttempt?: number | undefined;
986
+ output?: (import("better-auth/react").StandardSchemaV1 | typeof Blob | typeof File) | undefined;
987
+ errorSchema?: import("better-auth/react").StandardSchemaV1 | undefined;
988
+ disableValidation?: boolean | undefined;
989
+ }>(data_0: import("better-auth/dist/shared/better-auth.DNnBkMGu").a<{
990
+ query: {
991
+ callbackURL: string;
992
+ };
993
+ fetchOptions?: FetchOptions | undefined;
994
+ }>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/react").BetterFetchResponse<never, {
995
+ code?: string;
996
+ message?: string;
997
+ }, FetchOptions["throw"] extends true ? true : false>>;
998
+ };
999
+ } & {
1000
+ requestPasswordReset: <FetchOptions extends {
1001
+ method?: string | undefined;
1002
+ headers?: (HeadersInit & (HeadersInit | {
1003
+ accept: "application/json" | "text/plain" | "application/octet-stream";
1004
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
1005
+ authorization: "Bearer" | "Basic";
1006
+ })) | undefined;
1007
+ cache?: RequestCache | undefined;
1008
+ credentials?: RequestCredentials | undefined;
1009
+ integrity?: string | undefined;
1010
+ keepalive?: boolean | undefined;
1011
+ mode?: RequestMode | undefined;
1012
+ priority?: RequestPriority | undefined;
1013
+ redirect?: RequestRedirect | undefined;
1014
+ referrer?: string | undefined;
1015
+ referrerPolicy?: ReferrerPolicy | undefined;
1016
+ signal?: (AbortSignal | null) | undefined;
1017
+ window?: null | undefined;
1018
+ onRequest?: (<T extends Record<string, any>>(context: import("better-auth/react").RequestContext<T>) => Promise<import("better-auth/react").RequestContext | void> | import("better-auth/react").RequestContext | void) | undefined;
1019
+ onResponse?: ((context: import("better-auth/react").ResponseContext) => Promise<Response | void | import("better-auth/react").ResponseContext> | Response | import("better-auth/react").ResponseContext | void) | undefined;
1020
+ onSuccess?: ((context: import("better-auth/react").SuccessContext<any>) => Promise<void> | void) | undefined;
1021
+ onError?: ((context: import("better-auth/react").ErrorContext) => Promise<void> | void) | undefined;
1022
+ onRetry?: ((response: import("better-auth/react").ResponseContext) => Promise<void> | void) | undefined;
1023
+ hookOptions?: {
1024
+ cloneResponse?: boolean;
1025
+ } | undefined;
1026
+ timeout?: number | undefined;
1027
+ customFetchImpl?: import("better-auth/react").FetchEsque | undefined;
1028
+ plugins?: import("better-auth/react").BetterFetchPlugin[] | undefined;
1029
+ baseURL?: string | undefined;
1030
+ throw?: boolean | undefined;
1031
+ auth?: ({
1032
+ type: "Bearer";
1033
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
1034
+ } | {
1035
+ type: "Basic";
1036
+ username: string | (() => string | undefined) | undefined;
1037
+ password: string | (() => string | undefined) | undefined;
1038
+ } | {
1039
+ type: "Custom";
1040
+ prefix: string | (() => string | undefined) | undefined;
1041
+ value: string | (() => string | undefined) | undefined;
1042
+ }) | undefined;
1043
+ body?: (Partial<{
1044
+ email: string;
1045
+ redirectTo?: string | undefined;
1046
+ }> & Record<string, any>) | undefined;
1047
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
1048
+ params?: Record<string, any> | undefined;
1049
+ duplex?: "full" | "half" | undefined;
1050
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
1051
+ retry?: import("better-auth/react").RetryOptions | undefined;
1052
+ retryAttempt?: number | undefined;
1053
+ output?: (import("better-auth/react").StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1054
+ errorSchema?: import("better-auth/react").StandardSchemaV1 | undefined;
1055
+ disableValidation?: boolean | undefined;
1056
+ }>(data_0: import("better-auth/dist/shared/better-auth.DNnBkMGu").a<{
1057
+ email: string;
1058
+ redirectTo?: string | undefined;
1059
+ } & {
1060
+ fetchOptions?: FetchOptions | undefined;
1061
+ }>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/react").BetterFetchResponse<{
1062
+ status: boolean;
1063
+ message: string;
1064
+ }, {
1065
+ code?: string;
1066
+ message?: string;
1067
+ }, FetchOptions["throw"] extends true ? true : false>>;
1068
+ } & {
1069
+ resetPassword: {
1070
+ ":token": <FetchOptions extends {
1071
+ method?: string | undefined;
1072
+ headers?: (HeadersInit & (HeadersInit | {
1073
+ accept: "application/json" | "text/plain" | "application/octet-stream";
1074
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
1075
+ authorization: "Bearer" | "Basic";
1076
+ })) | undefined;
1077
+ cache?: RequestCache | undefined;
1078
+ credentials?: RequestCredentials | undefined;
1079
+ integrity?: string | undefined;
1080
+ keepalive?: boolean | undefined;
1081
+ mode?: RequestMode | undefined;
1082
+ priority?: RequestPriority | undefined;
1083
+ redirect?: RequestRedirect | undefined;
1084
+ referrer?: string | undefined;
1085
+ referrerPolicy?: ReferrerPolicy | undefined;
1086
+ signal?: (AbortSignal | null) | undefined;
1087
+ window?: null | undefined;
1088
+ onRequest?: (<T extends Record<string, any>>(context: import("better-auth/react").RequestContext<T>) => Promise<import("better-auth/react").RequestContext | void> | import("better-auth/react").RequestContext | void) | undefined;
1089
+ onResponse?: ((context: import("better-auth/react").ResponseContext) => Promise<Response | void | import("better-auth/react").ResponseContext> | Response | import("better-auth/react").ResponseContext | void) | undefined;
1090
+ onSuccess?: ((context: import("better-auth/react").SuccessContext<any>) => Promise<void> | void) | undefined;
1091
+ onError?: ((context: import("better-auth/react").ErrorContext) => Promise<void> | void) | undefined;
1092
+ onRetry?: ((response: import("better-auth/react").ResponseContext) => Promise<void> | void) | undefined;
1093
+ hookOptions?: {
1094
+ cloneResponse?: boolean;
1095
+ } | undefined;
1096
+ timeout?: number | undefined;
1097
+ customFetchImpl?: import("better-auth/react").FetchEsque | undefined;
1098
+ plugins?: import("better-auth/react").BetterFetchPlugin[] | undefined;
1099
+ baseURL?: string | undefined;
1100
+ throw?: boolean | undefined;
1101
+ auth?: ({
1102
+ type: "Bearer";
1103
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
1104
+ } | {
1105
+ type: "Basic";
1106
+ username: string | (() => string | undefined) | undefined;
1107
+ password: string | (() => string | undefined) | undefined;
1108
+ } | {
1109
+ type: "Custom";
1110
+ prefix: string | (() => string | undefined) | undefined;
1111
+ value: string | (() => string | undefined) | undefined;
1112
+ }) | undefined;
1113
+ body?: undefined;
1114
+ query?: (Partial<{
1115
+ callbackURL: string;
1116
+ }> & Record<string, any>) | undefined;
1117
+ params?: {
1118
+ token: string;
1119
+ } | undefined;
1120
+ duplex?: "full" | "half" | undefined;
1121
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
1122
+ retry?: import("better-auth/react").RetryOptions | undefined;
1123
+ retryAttempt?: number | undefined;
1124
+ output?: (import("better-auth/react").StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1125
+ errorSchema?: import("better-auth/react").StandardSchemaV1 | undefined;
1126
+ disableValidation?: boolean | undefined;
1127
+ }>(data_0: import("better-auth/dist/shared/better-auth.DNnBkMGu").a<{
1128
+ query: {
1129
+ callbackURL: string;
1130
+ };
1131
+ fetchOptions?: FetchOptions | undefined;
1132
+ }>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/react").BetterFetchResponse<never, {
1133
+ code?: string;
1134
+ message?: string;
1135
+ }, FetchOptions["throw"] extends true ? true : false>>;
1136
+ };
1137
+ } & {
1138
+ listSessions: <FetchOptions extends {
1139
+ method?: string | undefined;
1140
+ headers?: (HeadersInit & (HeadersInit | {
1141
+ accept: "application/json" | "text/plain" | "application/octet-stream";
1142
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
1143
+ authorization: "Bearer" | "Basic";
1144
+ })) | undefined;
1145
+ cache?: RequestCache | undefined;
1146
+ credentials?: RequestCredentials | undefined;
1147
+ integrity?: string | undefined;
1148
+ keepalive?: boolean | undefined;
1149
+ mode?: RequestMode | undefined;
1150
+ priority?: RequestPriority | undefined;
1151
+ redirect?: RequestRedirect | undefined;
1152
+ referrer?: string | undefined;
1153
+ referrerPolicy?: ReferrerPolicy | undefined;
1154
+ signal?: (AbortSignal | null) | undefined;
1155
+ window?: null | undefined;
1156
+ onRequest?: (<T extends Record<string, any>>(context: import("better-auth/react").RequestContext<T>) => Promise<import("better-auth/react").RequestContext | void> | import("better-auth/react").RequestContext | void) | undefined;
1157
+ onResponse?: ((context: import("better-auth/react").ResponseContext) => Promise<Response | void | import("better-auth/react").ResponseContext> | Response | import("better-auth/react").ResponseContext | void) | undefined;
1158
+ onSuccess?: ((context: import("better-auth/react").SuccessContext<any>) => Promise<void> | void) | undefined;
1159
+ onError?: ((context: import("better-auth/react").ErrorContext) => Promise<void> | void) | undefined;
1160
+ onRetry?: ((response: import("better-auth/react").ResponseContext) => Promise<void> | void) | undefined;
1161
+ hookOptions?: {
1162
+ cloneResponse?: boolean;
1163
+ } | undefined;
1164
+ timeout?: number | undefined;
1165
+ customFetchImpl?: import("better-auth/react").FetchEsque | undefined;
1166
+ plugins?: import("better-auth/react").BetterFetchPlugin[] | undefined;
1167
+ baseURL?: string | undefined;
1168
+ throw?: boolean | undefined;
1169
+ auth?: ({
1170
+ type: "Bearer";
1171
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
1172
+ } | {
1173
+ type: "Basic";
1174
+ username: string | (() => string | undefined) | undefined;
1175
+ password: string | (() => string | undefined) | undefined;
1176
+ } | {
1177
+ type: "Custom";
1178
+ prefix: string | (() => string | undefined) | undefined;
1179
+ value: string | (() => string | undefined) | undefined;
1180
+ }) | undefined;
1181
+ body?: undefined;
1182
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
1183
+ params?: Record<string, any> | undefined;
1184
+ duplex?: "full" | "half" | undefined;
1185
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
1186
+ retry?: import("better-auth/react").RetryOptions | undefined;
1187
+ retryAttempt?: number | undefined;
1188
+ output?: (import("better-auth/react").StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1189
+ errorSchema?: import("better-auth/react").StandardSchemaV1 | undefined;
1190
+ disableValidation?: boolean | undefined;
1191
+ }>(data_0?: import("better-auth/dist/shared/better-auth.DNnBkMGu").a<{
1192
+ query?: Record<string, any> | undefined;
1193
+ fetchOptions?: FetchOptions | undefined;
1194
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<import("better-auth/react").BetterFetchResponse<import("better-auth/dist/shared/better-auth.DNnBkMGu").a<{
1195
+ id: string;
1196
+ createdAt: Date;
1197
+ updatedAt: Date;
1198
+ userId: string;
1199
+ expiresAt: Date;
1200
+ token: string;
1201
+ ipAddress?: string | null | undefined | undefined;
1202
+ userAgent?: string | null | undefined | undefined;
1203
+ }>[], {
1204
+ code?: string;
1205
+ message?: string;
1206
+ }, FetchOptions["throw"] extends true ? true : false>>;
1207
+ } & {
1208
+ revokeSession: <FetchOptions extends {
1209
+ method?: string | undefined;
1210
+ headers?: (HeadersInit & (HeadersInit | {
1211
+ accept: "application/json" | "text/plain" | "application/octet-stream";
1212
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
1213
+ authorization: "Bearer" | "Basic";
1214
+ })) | undefined;
1215
+ cache?: RequestCache | undefined;
1216
+ credentials?: RequestCredentials | undefined;
1217
+ integrity?: string | undefined;
1218
+ keepalive?: boolean | undefined;
1219
+ mode?: RequestMode | undefined;
1220
+ priority?: RequestPriority | undefined;
1221
+ redirect?: RequestRedirect | undefined;
1222
+ referrer?: string | undefined;
1223
+ referrerPolicy?: ReferrerPolicy | undefined;
1224
+ signal?: (AbortSignal | null) | undefined;
1225
+ window?: null | undefined;
1226
+ onRequest?: (<T extends Record<string, any>>(context: import("better-auth/react").RequestContext<T>) => Promise<import("better-auth/react").RequestContext | void> | import("better-auth/react").RequestContext | void) | undefined;
1227
+ onResponse?: ((context: import("better-auth/react").ResponseContext) => Promise<Response | void | import("better-auth/react").ResponseContext> | Response | import("better-auth/react").ResponseContext | void) | undefined;
1228
+ onSuccess?: ((context: import("better-auth/react").SuccessContext<any>) => Promise<void> | void) | undefined;
1229
+ onError?: ((context: import("better-auth/react").ErrorContext) => Promise<void> | void) | undefined;
1230
+ onRetry?: ((response: import("better-auth/react").ResponseContext) => Promise<void> | void) | undefined;
1231
+ hookOptions?: {
1232
+ cloneResponse?: boolean;
1233
+ } | undefined;
1234
+ timeout?: number | undefined;
1235
+ customFetchImpl?: import("better-auth/react").FetchEsque | undefined;
1236
+ plugins?: import("better-auth/react").BetterFetchPlugin[] | undefined;
1237
+ baseURL?: string | undefined;
1238
+ throw?: boolean | undefined;
1239
+ auth?: ({
1240
+ type: "Bearer";
1241
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
1242
+ } | {
1243
+ type: "Basic";
1244
+ username: string | (() => string | undefined) | undefined;
1245
+ password: string | (() => string | undefined) | undefined;
1246
+ } | {
1247
+ type: "Custom";
1248
+ prefix: string | (() => string | undefined) | undefined;
1249
+ value: string | (() => string | undefined) | undefined;
1250
+ }) | undefined;
1251
+ body?: (Partial<{
1252
+ token: string;
1253
+ }> & Record<string, any>) | undefined;
1254
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
1255
+ params?: Record<string, any> | undefined;
1256
+ duplex?: "full" | "half" | undefined;
1257
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
1258
+ retry?: import("better-auth/react").RetryOptions | undefined;
1259
+ retryAttempt?: number | undefined;
1260
+ output?: (import("better-auth/react").StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1261
+ errorSchema?: import("better-auth/react").StandardSchemaV1 | undefined;
1262
+ disableValidation?: boolean | undefined;
1263
+ }>(data_0: import("better-auth/dist/shared/better-auth.DNnBkMGu").a<{
1264
+ token: string;
1265
+ } & {
1266
+ fetchOptions?: FetchOptions | undefined;
1267
+ }>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/react").BetterFetchResponse<{
1268
+ status: boolean;
1269
+ }, {
1270
+ code?: string;
1271
+ message?: string;
1272
+ }, FetchOptions["throw"] extends true ? true : false>>;
1273
+ } & {
1274
+ revokeSessions: <FetchOptions extends {
1275
+ method?: string | undefined;
1276
+ headers?: (HeadersInit & (HeadersInit | {
1277
+ accept: "application/json" | "text/plain" | "application/octet-stream";
1278
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
1279
+ authorization: "Bearer" | "Basic";
1280
+ })) | undefined;
1281
+ cache?: RequestCache | undefined;
1282
+ credentials?: RequestCredentials | undefined;
1283
+ integrity?: string | undefined;
1284
+ keepalive?: boolean | undefined;
1285
+ mode?: RequestMode | undefined;
1286
+ priority?: RequestPriority | undefined;
1287
+ redirect?: RequestRedirect | undefined;
1288
+ referrer?: string | undefined;
1289
+ referrerPolicy?: ReferrerPolicy | undefined;
1290
+ signal?: (AbortSignal | null) | undefined;
1291
+ window?: null | undefined;
1292
+ onRequest?: (<T extends Record<string, any>>(context: import("better-auth/react").RequestContext<T>) => Promise<import("better-auth/react").RequestContext | void> | import("better-auth/react").RequestContext | void) | undefined;
1293
+ onResponse?: ((context: import("better-auth/react").ResponseContext) => Promise<Response | void | import("better-auth/react").ResponseContext> | Response | import("better-auth/react").ResponseContext | void) | undefined;
1294
+ onSuccess?: ((context: import("better-auth/react").SuccessContext<any>) => Promise<void> | void) | undefined;
1295
+ onError?: ((context: import("better-auth/react").ErrorContext) => Promise<void> | void) | undefined;
1296
+ onRetry?: ((response: import("better-auth/react").ResponseContext) => Promise<void> | void) | undefined;
1297
+ hookOptions?: {
1298
+ cloneResponse?: boolean;
1299
+ } | undefined;
1300
+ timeout?: number | undefined;
1301
+ customFetchImpl?: import("better-auth/react").FetchEsque | undefined;
1302
+ plugins?: import("better-auth/react").BetterFetchPlugin[] | undefined;
1303
+ baseURL?: string | undefined;
1304
+ throw?: boolean | undefined;
1305
+ auth?: ({
1306
+ type: "Bearer";
1307
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
1308
+ } | {
1309
+ type: "Basic";
1310
+ username: string | (() => string | undefined) | undefined;
1311
+ password: string | (() => string | undefined) | undefined;
1312
+ } | {
1313
+ type: "Custom";
1314
+ prefix: string | (() => string | undefined) | undefined;
1315
+ value: string | (() => string | undefined) | undefined;
1316
+ }) | undefined;
1317
+ body?: undefined;
1318
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
1319
+ params?: Record<string, any> | undefined;
1320
+ duplex?: "full" | "half" | undefined;
1321
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
1322
+ retry?: import("better-auth/react").RetryOptions | undefined;
1323
+ retryAttempt?: number | undefined;
1324
+ output?: (import("better-auth/react").StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1325
+ errorSchema?: import("better-auth/react").StandardSchemaV1 | undefined;
1326
+ disableValidation?: boolean | undefined;
1327
+ }>(data_0?: import("better-auth/dist/shared/better-auth.DNnBkMGu").a<{
1328
+ query?: Record<string, any> | undefined;
1329
+ fetchOptions?: FetchOptions | undefined;
1330
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<import("better-auth/react").BetterFetchResponse<{
1331
+ status: boolean;
1332
+ }, {
1333
+ code?: string;
1334
+ message?: string;
1335
+ }, FetchOptions["throw"] extends true ? true : false>>;
1336
+ } & {
1337
+ revokeOtherSessions: <FetchOptions extends {
1338
+ method?: string | undefined;
1339
+ headers?: (HeadersInit & (HeadersInit | {
1340
+ accept: "application/json" | "text/plain" | "application/octet-stream";
1341
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
1342
+ authorization: "Bearer" | "Basic";
1343
+ })) | undefined;
1344
+ cache?: RequestCache | undefined;
1345
+ credentials?: RequestCredentials | undefined;
1346
+ integrity?: string | undefined;
1347
+ keepalive?: boolean | undefined;
1348
+ mode?: RequestMode | undefined;
1349
+ priority?: RequestPriority | undefined;
1350
+ redirect?: RequestRedirect | undefined;
1351
+ referrer?: string | undefined;
1352
+ referrerPolicy?: ReferrerPolicy | undefined;
1353
+ signal?: (AbortSignal | null) | undefined;
1354
+ window?: null | undefined;
1355
+ onRequest?: (<T extends Record<string, any>>(context: import("better-auth/react").RequestContext<T>) => Promise<import("better-auth/react").RequestContext | void> | import("better-auth/react").RequestContext | void) | undefined;
1356
+ onResponse?: ((context: import("better-auth/react").ResponseContext) => Promise<Response | void | import("better-auth/react").ResponseContext> | Response | import("better-auth/react").ResponseContext | void) | undefined;
1357
+ onSuccess?: ((context: import("better-auth/react").SuccessContext<any>) => Promise<void> | void) | undefined;
1358
+ onError?: ((context: import("better-auth/react").ErrorContext) => Promise<void> | void) | undefined;
1359
+ onRetry?: ((response: import("better-auth/react").ResponseContext) => Promise<void> | void) | undefined;
1360
+ hookOptions?: {
1361
+ cloneResponse?: boolean;
1362
+ } | undefined;
1363
+ timeout?: number | undefined;
1364
+ customFetchImpl?: import("better-auth/react").FetchEsque | undefined;
1365
+ plugins?: import("better-auth/react").BetterFetchPlugin[] | undefined;
1366
+ baseURL?: string | undefined;
1367
+ throw?: boolean | undefined;
1368
+ auth?: ({
1369
+ type: "Bearer";
1370
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
1371
+ } | {
1372
+ type: "Basic";
1373
+ username: string | (() => string | undefined) | undefined;
1374
+ password: string | (() => string | undefined) | undefined;
1375
+ } | {
1376
+ type: "Custom";
1377
+ prefix: string | (() => string | undefined) | undefined;
1378
+ value: string | (() => string | undefined) | undefined;
1379
+ }) | undefined;
1380
+ body?: undefined;
1381
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
1382
+ params?: Record<string, any> | undefined;
1383
+ duplex?: "full" | "half" | undefined;
1384
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
1385
+ retry?: import("better-auth/react").RetryOptions | undefined;
1386
+ retryAttempt?: number | undefined;
1387
+ output?: (import("better-auth/react").StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1388
+ errorSchema?: import("better-auth/react").StandardSchemaV1 | undefined;
1389
+ disableValidation?: boolean | undefined;
1390
+ }>(data_0?: import("better-auth/dist/shared/better-auth.DNnBkMGu").a<{
1391
+ query?: Record<string, any> | undefined;
1392
+ fetchOptions?: FetchOptions | undefined;
1393
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<import("better-auth/react").BetterFetchResponse<{
1394
+ status: boolean;
1395
+ }, {
1396
+ code?: string;
1397
+ message?: string;
1398
+ }, FetchOptions["throw"] extends true ? true : false>>;
1399
+ } & {
1400
+ linkSocial: <FetchOptions extends {
1401
+ method?: string | undefined;
1402
+ headers?: (HeadersInit & (HeadersInit | {
1403
+ accept: "application/json" | "text/plain" | "application/octet-stream";
1404
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
1405
+ authorization: "Bearer" | "Basic";
1406
+ })) | undefined;
1407
+ cache?: RequestCache | undefined;
1408
+ credentials?: RequestCredentials | undefined;
1409
+ integrity?: string | undefined;
1410
+ keepalive?: boolean | undefined;
1411
+ mode?: RequestMode | undefined;
1412
+ priority?: RequestPriority | undefined;
1413
+ redirect?: RequestRedirect | undefined;
1414
+ referrer?: string | undefined;
1415
+ referrerPolicy?: ReferrerPolicy | undefined;
1416
+ signal?: (AbortSignal | null) | undefined;
1417
+ window?: null | undefined;
1418
+ onRequest?: (<T extends Record<string, any>>(context: import("better-auth/react").RequestContext<T>) => Promise<import("better-auth/react").RequestContext | void> | import("better-auth/react").RequestContext | void) | undefined;
1419
+ onResponse?: ((context: import("better-auth/react").ResponseContext) => Promise<Response | void | import("better-auth/react").ResponseContext> | Response | import("better-auth/react").ResponseContext | void) | undefined;
1420
+ onSuccess?: ((context: import("better-auth/react").SuccessContext<any>) => Promise<void> | void) | undefined;
1421
+ onError?: ((context: import("better-auth/react").ErrorContext) => Promise<void> | void) | undefined;
1422
+ onRetry?: ((response: import("better-auth/react").ResponseContext) => Promise<void> | void) | undefined;
1423
+ hookOptions?: {
1424
+ cloneResponse?: boolean;
1425
+ } | undefined;
1426
+ timeout?: number | undefined;
1427
+ customFetchImpl?: import("better-auth/react").FetchEsque | undefined;
1428
+ plugins?: import("better-auth/react").BetterFetchPlugin[] | undefined;
1429
+ baseURL?: string | undefined;
1430
+ throw?: boolean | undefined;
1431
+ auth?: ({
1432
+ type: "Bearer";
1433
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
1434
+ } | {
1435
+ type: "Basic";
1436
+ username: string | (() => string | undefined) | undefined;
1437
+ password: string | (() => string | undefined) | undefined;
1438
+ } | {
1439
+ type: "Custom";
1440
+ prefix: string | (() => string | undefined) | undefined;
1441
+ value: string | (() => string | undefined) | undefined;
1442
+ }) | undefined;
1443
+ body?: (Partial<{
1444
+ provider: unknown;
1445
+ callbackURL?: string | undefined;
1446
+ idToken?: {
1447
+ token: string;
1448
+ nonce?: string | undefined;
1449
+ accessToken?: string | undefined;
1450
+ refreshToken?: string | undefined;
1451
+ scopes?: string[] | undefined;
1452
+ } | undefined;
1453
+ requestSignUp?: boolean | undefined;
1454
+ scopes?: string[] | undefined;
1455
+ errorCallbackURL?: string | undefined;
1456
+ disableRedirect?: boolean | undefined;
1457
+ }> & Record<string, any>) | undefined;
1458
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
1459
+ params?: Record<string, any> | undefined;
1460
+ duplex?: "full" | "half" | undefined;
1461
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
1462
+ retry?: import("better-auth/react").RetryOptions | undefined;
1463
+ retryAttempt?: number | undefined;
1464
+ output?: (import("better-auth/react").StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1465
+ errorSchema?: import("better-auth/react").StandardSchemaV1 | undefined;
1466
+ disableValidation?: boolean | undefined;
1467
+ }>(data_0: import("better-auth/dist/shared/better-auth.DNnBkMGu").a<{
1468
+ provider: unknown;
1469
+ callbackURL?: string | undefined;
1470
+ idToken?: {
1471
+ token: string;
1472
+ nonce?: string | undefined;
1473
+ accessToken?: string | undefined;
1474
+ refreshToken?: string | undefined;
1475
+ scopes?: string[] | undefined;
1476
+ } | undefined;
1477
+ requestSignUp?: boolean | undefined;
1478
+ scopes?: string[] | undefined;
1479
+ errorCallbackURL?: string | undefined;
1480
+ disableRedirect?: boolean | undefined;
1481
+ } & {
1482
+ fetchOptions?: FetchOptions | undefined;
1483
+ }>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/react").BetterFetchResponse<{
1484
+ url: string;
1485
+ redirect: boolean;
1486
+ }, {
1487
+ code?: string;
1488
+ message?: string;
1489
+ }, FetchOptions["throw"] extends true ? true : false>>;
1490
+ } & {
1491
+ listAccounts: <FetchOptions extends {
1492
+ method?: string | undefined;
1493
+ headers?: (HeadersInit & (HeadersInit | {
1494
+ accept: "application/json" | "text/plain" | "application/octet-stream";
1495
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
1496
+ authorization: "Bearer" | "Basic";
1497
+ })) | undefined;
1498
+ cache?: RequestCache | undefined;
1499
+ credentials?: RequestCredentials | undefined;
1500
+ integrity?: string | undefined;
1501
+ keepalive?: boolean | undefined;
1502
+ mode?: RequestMode | undefined;
1503
+ priority?: RequestPriority | undefined;
1504
+ redirect?: RequestRedirect | undefined;
1505
+ referrer?: string | undefined;
1506
+ referrerPolicy?: ReferrerPolicy | undefined;
1507
+ signal?: (AbortSignal | null) | undefined;
1508
+ window?: null | undefined;
1509
+ onRequest?: (<T extends Record<string, any>>(context: import("better-auth/react").RequestContext<T>) => Promise<import("better-auth/react").RequestContext | void> | import("better-auth/react").RequestContext | void) | undefined;
1510
+ onResponse?: ((context: import("better-auth/react").ResponseContext) => Promise<Response | void | import("better-auth/react").ResponseContext> | Response | import("better-auth/react").ResponseContext | void) | undefined;
1511
+ onSuccess?: ((context: import("better-auth/react").SuccessContext<any>) => Promise<void> | void) | undefined;
1512
+ onError?: ((context: import("better-auth/react").ErrorContext) => Promise<void> | void) | undefined;
1513
+ onRetry?: ((response: import("better-auth/react").ResponseContext) => Promise<void> | void) | undefined;
1514
+ hookOptions?: {
1515
+ cloneResponse?: boolean;
1516
+ } | undefined;
1517
+ timeout?: number | undefined;
1518
+ customFetchImpl?: import("better-auth/react").FetchEsque | undefined;
1519
+ plugins?: import("better-auth/react").BetterFetchPlugin[] | undefined;
1520
+ baseURL?: string | undefined;
1521
+ throw?: boolean | undefined;
1522
+ auth?: ({
1523
+ type: "Bearer";
1524
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
1525
+ } | {
1526
+ type: "Basic";
1527
+ username: string | (() => string | undefined) | undefined;
1528
+ password: string | (() => string | undefined) | undefined;
1529
+ } | {
1530
+ type: "Custom";
1531
+ prefix: string | (() => string | undefined) | undefined;
1532
+ value: string | (() => string | undefined) | undefined;
1533
+ }) | undefined;
1534
+ body?: undefined;
1535
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
1536
+ params?: Record<string, any> | undefined;
1537
+ duplex?: "full" | "half" | undefined;
1538
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
1539
+ retry?: import("better-auth/react").RetryOptions | undefined;
1540
+ retryAttempt?: number | undefined;
1541
+ output?: (import("better-auth/react").StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1542
+ errorSchema?: import("better-auth/react").StandardSchemaV1 | undefined;
1543
+ disableValidation?: boolean | undefined;
1544
+ }>(data_0?: import("better-auth/dist/shared/better-auth.DNnBkMGu").a<{
1545
+ query?: Record<string, any> | undefined;
1546
+ fetchOptions?: FetchOptions | undefined;
1547
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<import("better-auth/react").BetterFetchResponse<{
1548
+ id: string;
1549
+ providerId: string;
1550
+ createdAt: Date;
1551
+ updatedAt: Date;
1552
+ accountId: string;
1553
+ scopes: string[];
1554
+ }[], {
1555
+ code?: string;
1556
+ message?: string;
1557
+ }, FetchOptions["throw"] extends true ? true : false>>;
1558
+ } & {
1559
+ deleteUser: {
1560
+ callback: <FetchOptions extends {
1561
+ method?: string | undefined;
1562
+ headers?: (HeadersInit & (HeadersInit | {
1563
+ accept: "application/json" | "text/plain" | "application/octet-stream";
1564
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
1565
+ authorization: "Bearer" | "Basic";
1566
+ })) | undefined;
1567
+ cache?: RequestCache | undefined;
1568
+ credentials?: RequestCredentials | undefined;
1569
+ integrity?: string | undefined;
1570
+ keepalive?: boolean | undefined;
1571
+ mode?: RequestMode | undefined;
1572
+ priority?: RequestPriority | undefined;
1573
+ redirect?: RequestRedirect | undefined;
1574
+ referrer?: string | undefined;
1575
+ referrerPolicy?: ReferrerPolicy | undefined;
1576
+ signal?: (AbortSignal | null) | undefined;
1577
+ window?: null | undefined;
1578
+ onRequest?: (<T extends Record<string, any>>(context: import("better-auth/react").RequestContext<T>) => Promise<import("better-auth/react").RequestContext | void> | import("better-auth/react").RequestContext | void) | undefined;
1579
+ onResponse?: ((context: import("better-auth/react").ResponseContext) => Promise<Response | void | import("better-auth/react").ResponseContext> | Response | import("better-auth/react").ResponseContext | void) | undefined;
1580
+ onSuccess?: ((context: import("better-auth/react").SuccessContext<any>) => Promise<void> | void) | undefined;
1581
+ onError?: ((context: import("better-auth/react").ErrorContext) => Promise<void> | void) | undefined;
1582
+ onRetry?: ((response: import("better-auth/react").ResponseContext) => Promise<void> | void) | undefined;
1583
+ hookOptions?: {
1584
+ cloneResponse?: boolean;
1585
+ } | undefined;
1586
+ timeout?: number | undefined;
1587
+ customFetchImpl?: import("better-auth/react").FetchEsque | undefined;
1588
+ plugins?: import("better-auth/react").BetterFetchPlugin[] | undefined;
1589
+ baseURL?: string | undefined;
1590
+ throw?: boolean | undefined;
1591
+ auth?: ({
1592
+ type: "Bearer";
1593
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
1594
+ } | {
1595
+ type: "Basic";
1596
+ username: string | (() => string | undefined) | undefined;
1597
+ password: string | (() => string | undefined) | undefined;
1598
+ } | {
1599
+ type: "Custom";
1600
+ prefix: string | (() => string | undefined) | undefined;
1601
+ value: string | (() => string | undefined) | undefined;
1602
+ }) | undefined;
1603
+ body?: undefined;
1604
+ query?: (Partial<{
1605
+ token: string;
1606
+ callbackURL?: string | undefined;
1607
+ }> & Record<string, any>) | undefined;
1608
+ params?: Record<string, any> | undefined;
1609
+ duplex?: "full" | "half" | undefined;
1610
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
1611
+ retry?: import("better-auth/react").RetryOptions | undefined;
1612
+ retryAttempt?: number | undefined;
1613
+ output?: (import("better-auth/react").StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1614
+ errorSchema?: import("better-auth/react").StandardSchemaV1 | undefined;
1615
+ disableValidation?: boolean | undefined;
1616
+ }>(data_0: import("better-auth/dist/shared/better-auth.DNnBkMGu").a<{
1617
+ query: {
1618
+ token: string;
1619
+ callbackURL?: string | undefined;
1620
+ };
1621
+ fetchOptions?: FetchOptions | undefined;
1622
+ }>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/react").BetterFetchResponse<{
1623
+ success: boolean;
1624
+ message: string;
1625
+ }, {
1626
+ code?: string;
1627
+ message?: string;
1628
+ }, FetchOptions["throw"] extends true ? true : false>>;
1629
+ };
1630
+ } & {
1631
+ unlinkAccount: <FetchOptions extends {
1632
+ method?: string | undefined;
1633
+ headers?: (HeadersInit & (HeadersInit | {
1634
+ accept: "application/json" | "text/plain" | "application/octet-stream";
1635
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
1636
+ authorization: "Bearer" | "Basic";
1637
+ })) | undefined;
1638
+ cache?: RequestCache | undefined;
1639
+ credentials?: RequestCredentials | undefined;
1640
+ integrity?: string | undefined;
1641
+ keepalive?: boolean | undefined;
1642
+ mode?: RequestMode | undefined;
1643
+ priority?: RequestPriority | undefined;
1644
+ redirect?: RequestRedirect | undefined;
1645
+ referrer?: string | undefined;
1646
+ referrerPolicy?: ReferrerPolicy | undefined;
1647
+ signal?: (AbortSignal | null) | undefined;
1648
+ window?: null | undefined;
1649
+ onRequest?: (<T extends Record<string, any>>(context: import("better-auth/react").RequestContext<T>) => Promise<import("better-auth/react").RequestContext | void> | import("better-auth/react").RequestContext | void) | undefined;
1650
+ onResponse?: ((context: import("better-auth/react").ResponseContext) => Promise<Response | void | import("better-auth/react").ResponseContext> | Response | import("better-auth/react").ResponseContext | void) | undefined;
1651
+ onSuccess?: ((context: import("better-auth/react").SuccessContext<any>) => Promise<void> | void) | undefined;
1652
+ onError?: ((context: import("better-auth/react").ErrorContext) => Promise<void> | void) | undefined;
1653
+ onRetry?: ((response: import("better-auth/react").ResponseContext) => Promise<void> | void) | undefined;
1654
+ hookOptions?: {
1655
+ cloneResponse?: boolean;
1656
+ } | undefined;
1657
+ timeout?: number | undefined;
1658
+ customFetchImpl?: import("better-auth/react").FetchEsque | undefined;
1659
+ plugins?: import("better-auth/react").BetterFetchPlugin[] | undefined;
1660
+ baseURL?: string | undefined;
1661
+ throw?: boolean | undefined;
1662
+ auth?: ({
1663
+ type: "Bearer";
1664
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
1665
+ } | {
1666
+ type: "Basic";
1667
+ username: string | (() => string | undefined) | undefined;
1668
+ password: string | (() => string | undefined) | undefined;
1669
+ } | {
1670
+ type: "Custom";
1671
+ prefix: string | (() => string | undefined) | undefined;
1672
+ value: string | (() => string | undefined) | undefined;
1673
+ }) | undefined;
1674
+ body?: (Partial<{
1675
+ providerId: string;
1676
+ accountId?: string | undefined;
1677
+ }> & Record<string, any>) | undefined;
1678
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
1679
+ params?: Record<string, any> | undefined;
1680
+ duplex?: "full" | "half" | undefined;
1681
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
1682
+ retry?: import("better-auth/react").RetryOptions | undefined;
1683
+ retryAttempt?: number | undefined;
1684
+ output?: (import("better-auth/react").StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1685
+ errorSchema?: import("better-auth/react").StandardSchemaV1 | undefined;
1686
+ disableValidation?: boolean | undefined;
1687
+ }>(data_0: import("better-auth/dist/shared/better-auth.DNnBkMGu").a<{
1688
+ providerId: string;
1689
+ accountId?: string | undefined;
1690
+ } & {
1691
+ fetchOptions?: FetchOptions | undefined;
1692
+ }>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/react").BetterFetchResponse<{
1693
+ status: boolean;
1694
+ }, {
1695
+ code?: string;
1696
+ message?: string;
1697
+ }, FetchOptions["throw"] extends true ? true : false>>;
1698
+ } & {
1699
+ refreshToken: <FetchOptions extends {
1700
+ method?: string | undefined;
1701
+ headers?: (HeadersInit & (HeadersInit | {
1702
+ accept: "application/json" | "text/plain" | "application/octet-stream";
1703
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
1704
+ authorization: "Bearer" | "Basic";
1705
+ })) | undefined;
1706
+ cache?: RequestCache | undefined;
1707
+ credentials?: RequestCredentials | undefined;
1708
+ integrity?: string | undefined;
1709
+ keepalive?: boolean | undefined;
1710
+ mode?: RequestMode | undefined;
1711
+ priority?: RequestPriority | undefined;
1712
+ redirect?: RequestRedirect | undefined;
1713
+ referrer?: string | undefined;
1714
+ referrerPolicy?: ReferrerPolicy | undefined;
1715
+ signal?: (AbortSignal | null) | undefined;
1716
+ window?: null | undefined;
1717
+ onRequest?: (<T extends Record<string, any>>(context: import("better-auth/react").RequestContext<T>) => Promise<import("better-auth/react").RequestContext | void> | import("better-auth/react").RequestContext | void) | undefined;
1718
+ onResponse?: ((context: import("better-auth/react").ResponseContext) => Promise<Response | void | import("better-auth/react").ResponseContext> | Response | import("better-auth/react").ResponseContext | void) | undefined;
1719
+ onSuccess?: ((context: import("better-auth/react").SuccessContext<any>) => Promise<void> | void) | undefined;
1720
+ onError?: ((context: import("better-auth/react").ErrorContext) => Promise<void> | void) | undefined;
1721
+ onRetry?: ((response: import("better-auth/react").ResponseContext) => Promise<void> | void) | undefined;
1722
+ hookOptions?: {
1723
+ cloneResponse?: boolean;
1724
+ } | undefined;
1725
+ timeout?: number | undefined;
1726
+ customFetchImpl?: import("better-auth/react").FetchEsque | undefined;
1727
+ plugins?: import("better-auth/react").BetterFetchPlugin[] | undefined;
1728
+ baseURL?: string | undefined;
1729
+ throw?: boolean | undefined;
1730
+ auth?: ({
1731
+ type: "Bearer";
1732
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
1733
+ } | {
1734
+ type: "Basic";
1735
+ username: string | (() => string | undefined) | undefined;
1736
+ password: string | (() => string | undefined) | undefined;
1737
+ } | {
1738
+ type: "Custom";
1739
+ prefix: string | (() => string | undefined) | undefined;
1740
+ value: string | (() => string | undefined) | undefined;
1741
+ }) | undefined;
1742
+ body?: (Partial<{
1743
+ providerId: string;
1744
+ accountId?: string | undefined;
1745
+ userId?: string | undefined;
1746
+ }> & Record<string, any>) | undefined;
1747
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
1748
+ params?: Record<string, any> | undefined;
1749
+ duplex?: "full" | "half" | undefined;
1750
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
1751
+ retry?: import("better-auth/react").RetryOptions | undefined;
1752
+ retryAttempt?: number | undefined;
1753
+ output?: (import("better-auth/react").StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1754
+ errorSchema?: import("better-auth/react").StandardSchemaV1 | undefined;
1755
+ disableValidation?: boolean | undefined;
1756
+ }>(data_0: import("better-auth/dist/shared/better-auth.DNnBkMGu").a<{
1757
+ providerId: string;
1758
+ accountId?: string | undefined;
1759
+ userId?: string | undefined;
1760
+ } & {
1761
+ fetchOptions?: FetchOptions | undefined;
1762
+ }>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/react").BetterFetchResponse<any, {
1763
+ code?: string;
1764
+ message?: string;
1765
+ }, FetchOptions["throw"] extends true ? true : false>>;
1766
+ } & {
1767
+ getAccessToken: <FetchOptions extends {
1768
+ method?: string | undefined;
1769
+ headers?: (HeadersInit & (HeadersInit | {
1770
+ accept: "application/json" | "text/plain" | "application/octet-stream";
1771
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
1772
+ authorization: "Bearer" | "Basic";
1773
+ })) | undefined;
1774
+ cache?: RequestCache | undefined;
1775
+ credentials?: RequestCredentials | undefined;
1776
+ integrity?: string | undefined;
1777
+ keepalive?: boolean | undefined;
1778
+ mode?: RequestMode | undefined;
1779
+ priority?: RequestPriority | undefined;
1780
+ redirect?: RequestRedirect | undefined;
1781
+ referrer?: string | undefined;
1782
+ referrerPolicy?: ReferrerPolicy | undefined;
1783
+ signal?: (AbortSignal | null) | undefined;
1784
+ window?: null | undefined;
1785
+ onRequest?: (<T extends Record<string, any>>(context: import("better-auth/react").RequestContext<T>) => Promise<import("better-auth/react").RequestContext | void> | import("better-auth/react").RequestContext | void) | undefined;
1786
+ onResponse?: ((context: import("better-auth/react").ResponseContext) => Promise<Response | void | import("better-auth/react").ResponseContext> | Response | import("better-auth/react").ResponseContext | void) | undefined;
1787
+ onSuccess?: ((context: import("better-auth/react").SuccessContext<any>) => Promise<void> | void) | undefined;
1788
+ onError?: ((context: import("better-auth/react").ErrorContext) => Promise<void> | void) | undefined;
1789
+ onRetry?: ((response: import("better-auth/react").ResponseContext) => Promise<void> | void) | undefined;
1790
+ hookOptions?: {
1791
+ cloneResponse?: boolean;
1792
+ } | undefined;
1793
+ timeout?: number | undefined;
1794
+ customFetchImpl?: import("better-auth/react").FetchEsque | undefined;
1795
+ plugins?: import("better-auth/react").BetterFetchPlugin[] | undefined;
1796
+ baseURL?: string | undefined;
1797
+ throw?: boolean | undefined;
1798
+ auth?: ({
1799
+ type: "Bearer";
1800
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
1801
+ } | {
1802
+ type: "Basic";
1803
+ username: string | (() => string | undefined) | undefined;
1804
+ password: string | (() => string | undefined) | undefined;
1805
+ } | {
1806
+ type: "Custom";
1807
+ prefix: string | (() => string | undefined) | undefined;
1808
+ value: string | (() => string | undefined) | undefined;
1809
+ }) | undefined;
1810
+ body?: (Partial<{
1811
+ providerId: string;
1812
+ accountId?: string | undefined;
1813
+ userId?: string | undefined;
1814
+ }> & Record<string, any>) | undefined;
1815
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
1816
+ params?: Record<string, any> | undefined;
1817
+ duplex?: "full" | "half" | undefined;
1818
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
1819
+ retry?: import("better-auth/react").RetryOptions | undefined;
1820
+ retryAttempt?: number | undefined;
1821
+ output?: (import("better-auth/react").StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1822
+ errorSchema?: import("better-auth/react").StandardSchemaV1 | undefined;
1823
+ disableValidation?: boolean | undefined;
1824
+ }>(data_0: import("better-auth/dist/shared/better-auth.DNnBkMGu").a<{
1825
+ providerId: string;
1826
+ accountId?: string | undefined;
1827
+ userId?: string | undefined;
1828
+ } & {
1829
+ fetchOptions?: FetchOptions | undefined;
1830
+ }>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/react").BetterFetchResponse<{
1831
+ accessToken: string;
1832
+ accessTokenExpiresAt: Date | undefined;
1833
+ scopes: string[];
1834
+ idToken: string | undefined;
1835
+ }, {
1836
+ code?: string;
1837
+ message?: string;
1838
+ }, FetchOptions["throw"] extends true ? true : false>>;
1839
+ } & {
1840
+ accountInfo: <FetchOptions extends {
1841
+ method?: string | undefined;
1842
+ headers?: (HeadersInit & (HeadersInit | {
1843
+ accept: "application/json" | "text/plain" | "application/octet-stream";
1844
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
1845
+ authorization: "Bearer" | "Basic";
1846
+ })) | undefined;
1847
+ cache?: RequestCache | undefined;
1848
+ credentials?: RequestCredentials | undefined;
1849
+ integrity?: string | undefined;
1850
+ keepalive?: boolean | undefined;
1851
+ mode?: RequestMode | undefined;
1852
+ priority?: RequestPriority | undefined;
1853
+ redirect?: RequestRedirect | undefined;
1854
+ referrer?: string | undefined;
1855
+ referrerPolicy?: ReferrerPolicy | undefined;
1856
+ signal?: (AbortSignal | null) | undefined;
1857
+ window?: null | undefined;
1858
+ onRequest?: (<T extends Record<string, any>>(context: import("better-auth/react").RequestContext<T>) => Promise<import("better-auth/react").RequestContext | void> | import("better-auth/react").RequestContext | void) | undefined;
1859
+ onResponse?: ((context: import("better-auth/react").ResponseContext) => Promise<Response | void | import("better-auth/react").ResponseContext> | Response | import("better-auth/react").ResponseContext | void) | undefined;
1860
+ onSuccess?: ((context: import("better-auth/react").SuccessContext<any>) => Promise<void> | void) | undefined;
1861
+ onError?: ((context: import("better-auth/react").ErrorContext) => Promise<void> | void) | undefined;
1862
+ onRetry?: ((response: import("better-auth/react").ResponseContext) => Promise<void> | void) | undefined;
1863
+ hookOptions?: {
1864
+ cloneResponse?: boolean;
1865
+ } | undefined;
1866
+ timeout?: number | undefined;
1867
+ customFetchImpl?: import("better-auth/react").FetchEsque | undefined;
1868
+ plugins?: import("better-auth/react").BetterFetchPlugin[] | undefined;
1869
+ baseURL?: string | undefined;
1870
+ throw?: boolean | undefined;
1871
+ auth?: ({
1872
+ type: "Bearer";
1873
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
1874
+ } | {
1875
+ type: "Basic";
1876
+ username: string | (() => string | undefined) | undefined;
1877
+ password: string | (() => string | undefined) | undefined;
1878
+ } | {
1879
+ type: "Custom";
1880
+ prefix: string | (() => string | undefined) | undefined;
1881
+ value: string | (() => string | undefined) | undefined;
1882
+ }) | undefined;
1883
+ body?: (Partial<{
1884
+ accountId: string;
1885
+ }> & Record<string, any>) | undefined;
1886
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
1887
+ params?: Record<string, any> | undefined;
1888
+ duplex?: "full" | "half" | undefined;
1889
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
1890
+ retry?: import("better-auth/react").RetryOptions | undefined;
1891
+ retryAttempt?: number | undefined;
1892
+ output?: (import("better-auth/react").StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1893
+ errorSchema?: import("better-auth/react").StandardSchemaV1 | undefined;
1894
+ disableValidation?: boolean | undefined;
1895
+ }>(data_0: import("better-auth/dist/shared/better-auth.DNnBkMGu").a<{
1896
+ accountId: string;
1897
+ } & {
1898
+ fetchOptions?: FetchOptions | undefined;
1899
+ }>, data_1?: FetchOptions | undefined) => Promise<import("better-auth/react").BetterFetchResponse<{
1900
+ user: packages_core_dist_oauth2.OAuth2UserInfo;
1901
+ data: Record<string, any>;
1902
+ }, {
1903
+ code?: string;
1904
+ message?: string;
1905
+ }, FetchOptions["throw"] extends true ? true : false>>;
1906
+ } & {
1907
+ getSession: <FetchOptions extends {
1908
+ method?: string | undefined;
1909
+ headers?: (HeadersInit & (HeadersInit | {
1910
+ accept: "application/json" | "text/plain" | "application/octet-stream";
1911
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
1912
+ authorization: "Bearer" | "Basic";
1913
+ })) | undefined;
1914
+ cache?: RequestCache | undefined;
1915
+ credentials?: RequestCredentials | undefined;
1916
+ integrity?: string | undefined;
1917
+ keepalive?: boolean | undefined;
1918
+ mode?: RequestMode | undefined;
1919
+ priority?: RequestPriority | undefined;
1920
+ redirect?: RequestRedirect | undefined;
1921
+ referrer?: string | undefined;
1922
+ referrerPolicy?: ReferrerPolicy | undefined;
1923
+ signal?: (AbortSignal | null) | undefined;
1924
+ window?: null | undefined;
1925
+ onRequest?: (<T extends Record<string, any>>(context: import("better-auth/react").RequestContext<T>) => Promise<import("better-auth/react").RequestContext | void> | import("better-auth/react").RequestContext | void) | undefined;
1926
+ onResponse?: ((context: import("better-auth/react").ResponseContext) => Promise<Response | void | import("better-auth/react").ResponseContext> | Response | import("better-auth/react").ResponseContext | void) | undefined;
1927
+ onSuccess?: ((context: import("better-auth/react").SuccessContext<any>) => Promise<void> | void) | undefined;
1928
+ onError?: ((context: import("better-auth/react").ErrorContext) => Promise<void> | void) | undefined;
1929
+ onRetry?: ((response: import("better-auth/react").ResponseContext) => Promise<void> | void) | undefined;
1930
+ hookOptions?: {
1931
+ cloneResponse?: boolean;
1932
+ } | undefined;
1933
+ timeout?: number | undefined;
1934
+ customFetchImpl?: import("better-auth/react").FetchEsque | undefined;
1935
+ plugins?: import("better-auth/react").BetterFetchPlugin[] | undefined;
1936
+ baseURL?: string | undefined;
1937
+ throw?: boolean | undefined;
1938
+ auth?: ({
1939
+ type: "Bearer";
1940
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
1941
+ } | {
1942
+ type: "Basic";
1943
+ username: string | (() => string | undefined) | undefined;
1944
+ password: string | (() => string | undefined) | undefined;
1945
+ } | {
1946
+ type: "Custom";
1947
+ prefix: string | (() => string | undefined) | undefined;
1948
+ value: string | (() => string | undefined) | undefined;
1949
+ }) | undefined;
1950
+ body?: undefined;
1951
+ query?: (Partial<{
1952
+ disableCookieCache?: unknown;
1953
+ disableRefresh?: unknown;
1954
+ }> & Record<string, any>) | undefined;
1955
+ params?: Record<string, any> | undefined;
1956
+ duplex?: "full" | "half" | undefined;
1957
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
1958
+ retry?: import("better-auth/react").RetryOptions | undefined;
1959
+ retryAttempt?: number | undefined;
1960
+ output?: (import("better-auth/react").StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1961
+ errorSchema?: import("better-auth/react").StandardSchemaV1 | undefined;
1962
+ disableValidation?: boolean | undefined;
1963
+ }>(data_0?: import("better-auth/dist/shared/better-auth.DNnBkMGu").a<{
1964
+ query?: {
1965
+ disableCookieCache?: unknown;
1966
+ disableRefresh?: unknown;
1967
+ } | undefined;
1968
+ fetchOptions?: FetchOptions | undefined;
1969
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<import("better-auth/react").BetterFetchResponse<{
1970
+ user: {
1971
+ id: string;
1972
+ createdAt: Date;
1973
+ updatedAt: Date;
1974
+ email: string;
1975
+ emailVerified: boolean;
1976
+ name: string;
1977
+ image?: string | null | undefined;
1978
+ };
1979
+ session: {
1980
+ id: string;
1981
+ createdAt: Date;
1982
+ updatedAt: Date;
1983
+ userId: string;
1984
+ expiresAt: Date;
1985
+ token: string;
1986
+ ipAddress?: string | null | undefined;
1987
+ userAgent?: string | null | undefined;
1988
+ };
1989
+ } | null, {
1990
+ code?: string;
1991
+ message?: string;
1992
+ }, FetchOptions["throw"] extends true ? true : false>>;
1993
+ } & {
1994
+ useSession: () => {
1995
+ data: {
1996
+ user: {
1997
+ id: string;
1998
+ createdAt: Date;
1999
+ updatedAt: Date;
2000
+ email: string;
2001
+ emailVerified: boolean;
2002
+ name: string;
2003
+ image?: string | null | undefined;
2004
+ };
2005
+ session: {
2006
+ id: string;
2007
+ createdAt: Date;
2008
+ updatedAt: Date;
2009
+ userId: string;
2010
+ expiresAt: Date;
2011
+ token: string;
2012
+ ipAddress?: string | null | undefined;
2013
+ userAgent?: string | null | undefined;
2014
+ };
2015
+ } | null;
2016
+ isPending: boolean;
2017
+ isRefetching: boolean;
2018
+ error: import("better-auth/react").BetterFetchError | null;
2019
+ refetch: (queryParams?: {
2020
+ query?: import("better-auth/dist/shared/better-auth.BNARIIb2").i;
2021
+ }) => void;
2022
+ };
2023
+ $Infer: {
2024
+ Session: {
2025
+ user: {
2026
+ id: string;
2027
+ createdAt: Date;
2028
+ updatedAt: Date;
2029
+ email: string;
2030
+ emailVerified: boolean;
2031
+ name: string;
2032
+ image?: string | null | undefined;
2033
+ };
2034
+ session: {
2035
+ id: string;
2036
+ createdAt: Date;
2037
+ updatedAt: Date;
2038
+ userId: string;
2039
+ expiresAt: Date;
2040
+ token: string;
2041
+ ipAddress?: string | null | undefined;
2042
+ userAgent?: string | null | undefined;
2043
+ };
2044
+ };
2045
+ };
2046
+ $fetch: import("better-auth/react").BetterFetch<{
2047
+ plugins: (import("better-auth/react").BetterFetchPlugin | {
2048
+ id: string;
2049
+ name: string;
2050
+ hooks: {
2051
+ onSuccess: ((context: import("better-auth/react").SuccessContext<any>) => Promise<void> | void) | undefined;
2052
+ onError: ((context: import("better-auth/react").ErrorContext) => Promise<void> | void) | undefined;
2053
+ onRequest: (<T extends Record<string, any>>(context: import("better-auth/react").RequestContext<T>) => Promise<import("better-auth/react").RequestContext | void> | import("better-auth/react").RequestContext | void) | undefined;
2054
+ onResponse: ((context: import("better-auth/react").ResponseContext) => Promise<Response | void | import("better-auth/react").ResponseContext> | Response | import("better-auth/react").ResponseContext | void) | undefined;
2055
+ };
2056
+ } | {
2057
+ id: string;
2058
+ name: string;
2059
+ hooks: {
2060
+ onSuccess(context: import("better-auth/react").SuccessContext<any>): void;
2061
+ };
2062
+ })[];
2063
+ method: string;
2064
+ headers?: (HeadersInit & (HeadersInit | {
2065
+ accept: "application/json" | "text/plain" | "application/octet-stream";
2066
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
2067
+ authorization: "Bearer" | "Basic";
2068
+ })) | undefined;
2069
+ redirect?: RequestRedirect | undefined;
2070
+ cache?: RequestCache | undefined;
2071
+ credentials?: RequestCredentials;
2072
+ integrity?: string | undefined;
2073
+ keepalive?: boolean | undefined;
2074
+ mode?: RequestMode | undefined;
2075
+ priority?: RequestPriority | undefined;
2076
+ referrer?: string | undefined;
2077
+ referrerPolicy?: ReferrerPolicy | undefined;
2078
+ signal?: (AbortSignal | null) | undefined;
2079
+ window?: null | undefined;
2080
+ onRetry?: ((response: import("better-auth/react").ResponseContext) => Promise<void> | void) | undefined;
2081
+ hookOptions?: {
2082
+ cloneResponse?: boolean;
2083
+ } | undefined;
2084
+ timeout?: number | undefined;
2085
+ customFetchImpl: import("better-auth/react").FetchEsque;
2086
+ baseURL: string;
2087
+ throw?: boolean | undefined;
2088
+ auth?: ({
2089
+ type: "Bearer";
2090
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
2091
+ } | {
2092
+ type: "Basic";
2093
+ username: string | (() => string | undefined) | undefined;
2094
+ password: string | (() => string | undefined) | undefined;
2095
+ } | {
2096
+ type: "Custom";
2097
+ prefix: string | (() => string | undefined) | undefined;
2098
+ value: string | (() => string | undefined) | undefined;
2099
+ }) | undefined;
2100
+ body?: any;
2101
+ query?: any;
2102
+ params?: any;
2103
+ duplex?: "full" | "half" | undefined;
2104
+ jsonParser: (text: string) => Promise<any> | any;
2105
+ retry?: import("better-auth/react").RetryOptions | undefined;
2106
+ retryAttempt?: number | undefined;
2107
+ output?: (import("better-auth/react").StandardSchemaV1 | typeof Blob | typeof File) | undefined;
2108
+ errorSchema?: import("better-auth/react").StandardSchemaV1 | undefined;
2109
+ disableValidation?: boolean | undefined;
2110
+ }, unknown, unknown, {}>;
2111
+ $store: {
2112
+ notify: (signal?: Omit<string, "$sessionSignal"> | "$sessionSignal") => void;
2113
+ listen: (signal: Omit<string, "$sessionSignal"> | "$sessionSignal", listener: (value: boolean, oldValue?: boolean | undefined) => void) => void;
2114
+ atoms: Record<string, import("better-auth/react").WritableAtom<any>>;
2115
+ };
2116
+ $ERROR_CODES: {
2117
+ readonly USER_NOT_FOUND: "User not found";
2118
+ readonly FAILED_TO_CREATE_USER: "Failed to create user";
2119
+ readonly FAILED_TO_CREATE_SESSION: "Failed to create session";
2120
+ readonly FAILED_TO_UPDATE_USER: "Failed to update user";
2121
+ readonly FAILED_TO_GET_SESSION: "Failed to get session";
2122
+ readonly INVALID_PASSWORD: "Invalid password";
2123
+ readonly INVALID_EMAIL: "Invalid email";
2124
+ readonly INVALID_EMAIL_OR_PASSWORD: "Invalid email or password";
2125
+ readonly SOCIAL_ACCOUNT_ALREADY_LINKED: "Social account already linked";
2126
+ readonly PROVIDER_NOT_FOUND: "Provider not found";
2127
+ readonly INVALID_TOKEN: "Invalid token";
2128
+ readonly ID_TOKEN_NOT_SUPPORTED: "id_token not supported";
2129
+ readonly FAILED_TO_GET_USER_INFO: "Failed to get user info";
2130
+ readonly USER_EMAIL_NOT_FOUND: "User email not found";
2131
+ readonly EMAIL_NOT_VERIFIED: "Email not verified";
2132
+ readonly PASSWORD_TOO_SHORT: "Password too short";
2133
+ readonly PASSWORD_TOO_LONG: "Password too long";
2134
+ readonly USER_ALREADY_EXISTS: "User already exists.";
2135
+ readonly USER_ALREADY_EXISTS_USE_ANOTHER_EMAIL: "User already exists. Use another email.";
2136
+ readonly EMAIL_CAN_NOT_BE_UPDATED: "Email can not be updated";
2137
+ readonly CREDENTIAL_ACCOUNT_NOT_FOUND: "Credential account not found";
2138
+ readonly SESSION_EXPIRED: "Session expired. Re-authenticate to perform this action.";
2139
+ readonly FAILED_TO_UNLINK_LAST_ACCOUNT: "You can't unlink your last account";
2140
+ readonly ACCOUNT_NOT_FOUND: "Account not found";
2141
+ readonly USER_ALREADY_HAS_PASSWORD: "User already has a password. Provide that to delete the account.";
2142
+ };
2143
+ };