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