wcz-test 6.4.2 → 6.4.4

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