jazz-tools 0.18.5 → 0.18.6

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