@uninspired/auth-client 0.0.1

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.
@@ -0,0 +1,3181 @@
1
+ import type { AppRouter, CheckoutRouter, PublicRouter } from "@uninspired/auth-api";
2
+ import { hc, type ClientRequestOptions } from "hono/client";
3
+ export declare function makeUsBetterAuthClient(baseURL: string): {
4
+ useListPasskeys: () => {
5
+ data: import("better-auth/plugins/passkey").Passkey[] | null;
6
+ error: null | import("@better-fetch/fetch").BetterFetchError;
7
+ isPending: boolean;
8
+ isRefetching: boolean;
9
+ refetch: (queryParams?: {
10
+ query?: import("better-auth").SessionQueryParams;
11
+ } | undefined) => void;
12
+ };
13
+ } & {
14
+ signIn: {
15
+ magicLink: <FetchOptions extends {
16
+ method?: string | undefined;
17
+ headers?: any;
18
+ keepalive?: boolean | undefined;
19
+ redirect?: import("undici-types").RequestRedirect | undefined;
20
+ integrity?: string | undefined;
21
+ signal?: (AbortSignal | null) | undefined;
22
+ credentials?: import("undici-types").RequestCredentials | undefined;
23
+ mode?: import("undici-types").RequestMode | undefined;
24
+ referrer?: string | undefined;
25
+ referrerPolicy?: import("undici-types").ReferrerPolicy | undefined;
26
+ window?: null | undefined;
27
+ dispatcher?: import("undici-types").Dispatcher | undefined;
28
+ duplex?: import("undici-types").RequestDuplex | 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
+ email: string;
56
+ name?: string | undefined;
57
+ callbackURL?: string | undefined;
58
+ newUserCallbackURL?: string | undefined;
59
+ errorCallbackURL?: string | undefined;
60
+ }> & Record<string, any>) | undefined;
61
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
62
+ params?: Record<string, any> | undefined;
63
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
64
+ retry?: import("@better-fetch/fetch").RetryOptions | undefined;
65
+ retryAttempt?: number | undefined;
66
+ output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined;
67
+ errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined;
68
+ disableValidation?: boolean | undefined;
69
+ }>(data_0: import("better-auth").Prettify<{
70
+ email: string;
71
+ name?: string | undefined;
72
+ callbackURL?: string | undefined;
73
+ newUserCallbackURL?: string | undefined;
74
+ errorCallbackURL?: string | undefined;
75
+ } & {
76
+ fetchOptions?: FetchOptions | undefined;
77
+ }>, data_1?: FetchOptions | undefined) => Promise<import("@better-fetch/fetch").BetterFetchResponse<{
78
+ status: boolean;
79
+ }, {
80
+ code?: string;
81
+ message?: string;
82
+ }, FetchOptions["throw"] extends true ? true : false>>;
83
+ };
84
+ } & {
85
+ magicLink: {
86
+ verify: <FetchOptions extends {
87
+ method?: string | undefined;
88
+ headers?: any;
89
+ keepalive?: boolean | undefined;
90
+ redirect?: import("undici-types").RequestRedirect | undefined;
91
+ integrity?: string | undefined;
92
+ signal?: (AbortSignal | null) | undefined;
93
+ credentials?: import("undici-types").RequestCredentials | undefined;
94
+ mode?: import("undici-types").RequestMode | undefined;
95
+ referrer?: string | undefined;
96
+ referrerPolicy?: import("undici-types").ReferrerPolicy | undefined;
97
+ window?: null | undefined;
98
+ dispatcher?: import("undici-types").Dispatcher | undefined;
99
+ duplex?: import("undici-types").RequestDuplex | undefined;
100
+ 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;
101
+ onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise<Response | void | import("@better-fetch/fetch").ResponseContext> | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined;
102
+ onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext<any>) => Promise<void> | void) | undefined;
103
+ onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise<void> | void) | undefined;
104
+ onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise<void> | void) | undefined;
105
+ hookOptions?: {
106
+ cloneResponse?: boolean;
107
+ } | undefined;
108
+ timeout?: number | undefined;
109
+ customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined;
110
+ plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined;
111
+ baseURL?: string | undefined;
112
+ throw?: boolean | undefined;
113
+ auth?: ({
114
+ type: "Bearer";
115
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
116
+ } | {
117
+ type: "Basic";
118
+ username: string | (() => string | undefined) | undefined;
119
+ password: string | (() => string | undefined) | undefined;
120
+ } | {
121
+ type: "Custom";
122
+ prefix: string | (() => string | undefined) | undefined;
123
+ value: string | (() => string | undefined) | undefined;
124
+ }) | undefined;
125
+ body?: undefined;
126
+ query?: (Partial<{
127
+ token: string;
128
+ callbackURL?: string | undefined;
129
+ errorCallbackURL?: string | undefined;
130
+ newUserCallbackURL?: string | undefined;
131
+ }> & Record<string, any>) | undefined;
132
+ params?: Record<string, any> | undefined;
133
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
134
+ retry?: import("@better-fetch/fetch").RetryOptions | undefined;
135
+ retryAttempt?: number | undefined;
136
+ output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined;
137
+ errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined;
138
+ disableValidation?: boolean | undefined;
139
+ }>(data_0: import("better-auth").Prettify<{
140
+ query: {
141
+ token: string;
142
+ callbackURL?: string | undefined;
143
+ errorCallbackURL?: string | undefined;
144
+ newUserCallbackURL?: string | undefined;
145
+ };
146
+ fetchOptions?: FetchOptions | undefined;
147
+ }>, data_1?: FetchOptions | undefined) => Promise<import("@better-fetch/fetch").BetterFetchResponse<{
148
+ token: string;
149
+ user: {
150
+ id: string;
151
+ email: string;
152
+ emailVerified: boolean;
153
+ name: string;
154
+ image: string | null | undefined;
155
+ createdAt: Date;
156
+ updatedAt: Date;
157
+ };
158
+ }, {
159
+ code?: string;
160
+ message?: string;
161
+ }, FetchOptions["throw"] extends true ? true : false>>;
162
+ };
163
+ } & {
164
+ emailOtp: {
165
+ checkVerificationOtp: <FetchOptions extends {
166
+ method?: string | undefined;
167
+ headers?: any;
168
+ keepalive?: boolean | undefined;
169
+ redirect?: import("undici-types").RequestRedirect | undefined;
170
+ integrity?: string | undefined;
171
+ signal?: (AbortSignal | null) | undefined;
172
+ credentials?: import("undici-types").RequestCredentials | undefined;
173
+ mode?: import("undici-types").RequestMode | undefined;
174
+ referrer?: string | undefined;
175
+ referrerPolicy?: import("undici-types").ReferrerPolicy | undefined;
176
+ window?: null | undefined;
177
+ dispatcher?: import("undici-types").Dispatcher | undefined;
178
+ duplex?: import("undici-types").RequestDuplex | undefined;
179
+ 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;
180
+ onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise<Response | void | import("@better-fetch/fetch").ResponseContext> | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined;
181
+ onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext<any>) => Promise<void> | void) | undefined;
182
+ onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise<void> | void) | undefined;
183
+ onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise<void> | void) | undefined;
184
+ hookOptions?: {
185
+ cloneResponse?: boolean;
186
+ } | undefined;
187
+ timeout?: number | undefined;
188
+ customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined;
189
+ plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined;
190
+ baseURL?: string | undefined;
191
+ throw?: boolean | undefined;
192
+ auth?: ({
193
+ type: "Bearer";
194
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
195
+ } | {
196
+ type: "Basic";
197
+ username: string | (() => string | undefined) | undefined;
198
+ password: string | (() => string | undefined) | undefined;
199
+ } | {
200
+ type: "Custom";
201
+ prefix: string | (() => string | undefined) | undefined;
202
+ value: string | (() => string | undefined) | undefined;
203
+ }) | undefined;
204
+ body?: (Partial<{
205
+ email: string;
206
+ type: "sign-in" | "forget-password" | "email-verification";
207
+ otp: string;
208
+ }> & Record<string, any>) | undefined;
209
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
210
+ params?: Record<string, any> | undefined;
211
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
212
+ retry?: import("@better-fetch/fetch").RetryOptions | undefined;
213
+ retryAttempt?: number | undefined;
214
+ output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined;
215
+ errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined;
216
+ disableValidation?: boolean | undefined;
217
+ }>(data_0: import("better-auth").Prettify<{
218
+ email: string;
219
+ type: "sign-in" | "forget-password" | "email-verification";
220
+ otp: string;
221
+ } & {
222
+ fetchOptions?: FetchOptions | undefined;
223
+ }>, data_1?: FetchOptions | undefined) => Promise<import("@better-fetch/fetch").BetterFetchResponse<{
224
+ success: boolean;
225
+ }, {
226
+ code?: string;
227
+ message?: string;
228
+ }, FetchOptions["throw"] extends true ? true : false>>;
229
+ };
230
+ } & {
231
+ emailOtp: {
232
+ verifyEmail: <FetchOptions extends {
233
+ method?: string | undefined;
234
+ headers?: any;
235
+ keepalive?: boolean | undefined;
236
+ redirect?: import("undici-types").RequestRedirect | undefined;
237
+ integrity?: string | undefined;
238
+ signal?: (AbortSignal | null) | undefined;
239
+ credentials?: import("undici-types").RequestCredentials | undefined;
240
+ mode?: import("undici-types").RequestMode | undefined;
241
+ referrer?: string | undefined;
242
+ referrerPolicy?: import("undici-types").ReferrerPolicy | undefined;
243
+ window?: null | undefined;
244
+ dispatcher?: import("undici-types").Dispatcher | undefined;
245
+ duplex?: import("undici-types").RequestDuplex | undefined;
246
+ 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;
247
+ onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise<Response | void | import("@better-fetch/fetch").ResponseContext> | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined;
248
+ onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext<any>) => Promise<void> | void) | undefined;
249
+ onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise<void> | void) | undefined;
250
+ onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise<void> | void) | undefined;
251
+ hookOptions?: {
252
+ cloneResponse?: boolean;
253
+ } | undefined;
254
+ timeout?: number | undefined;
255
+ customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined;
256
+ plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined;
257
+ baseURL?: string | undefined;
258
+ throw?: boolean | undefined;
259
+ auth?: ({
260
+ type: "Bearer";
261
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
262
+ } | {
263
+ type: "Basic";
264
+ username: string | (() => string | undefined) | undefined;
265
+ password: string | (() => string | undefined) | undefined;
266
+ } | {
267
+ type: "Custom";
268
+ prefix: string | (() => string | undefined) | undefined;
269
+ value: string | (() => string | undefined) | undefined;
270
+ }) | undefined;
271
+ body?: (Partial<{
272
+ email: string;
273
+ otp: string;
274
+ }> & Record<string, any>) | undefined;
275
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
276
+ params?: Record<string, any> | undefined;
277
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
278
+ retry?: import("@better-fetch/fetch").RetryOptions | undefined;
279
+ retryAttempt?: number | undefined;
280
+ output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined;
281
+ errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined;
282
+ disableValidation?: boolean | undefined;
283
+ }>(data_0: import("better-auth").Prettify<{
284
+ email: string;
285
+ otp: string;
286
+ } & {
287
+ fetchOptions?: FetchOptions | undefined;
288
+ }>, data_1?: FetchOptions | undefined) => Promise<import("@better-fetch/fetch").BetterFetchResponse<NonNullable<{
289
+ status: boolean;
290
+ token: string;
291
+ user: {
292
+ id: any;
293
+ email: any;
294
+ emailVerified: any;
295
+ name: any;
296
+ image: any;
297
+ createdAt: any;
298
+ updatedAt: any;
299
+ };
300
+ } | {
301
+ status: boolean;
302
+ token: null;
303
+ user: {
304
+ id: any;
305
+ email: any;
306
+ emailVerified: any;
307
+ name: any;
308
+ image: any;
309
+ createdAt: any;
310
+ updatedAt: any;
311
+ };
312
+ }>, {
313
+ code?: string;
314
+ message?: string;
315
+ }, FetchOptions["throw"] extends true ? true : false>>;
316
+ };
317
+ } & {
318
+ signIn: {
319
+ emailOtp: <FetchOptions extends {
320
+ method?: string | undefined;
321
+ headers?: any;
322
+ keepalive?: boolean | undefined;
323
+ redirect?: import("undici-types").RequestRedirect | undefined;
324
+ integrity?: string | undefined;
325
+ signal?: (AbortSignal | null) | undefined;
326
+ credentials?: import("undici-types").RequestCredentials | undefined;
327
+ mode?: import("undici-types").RequestMode | undefined;
328
+ referrer?: string | undefined;
329
+ referrerPolicy?: import("undici-types").ReferrerPolicy | undefined;
330
+ window?: null | undefined;
331
+ dispatcher?: import("undici-types").Dispatcher | undefined;
332
+ duplex?: import("undici-types").RequestDuplex | undefined;
333
+ 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;
334
+ onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise<Response | void | import("@better-fetch/fetch").ResponseContext> | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined;
335
+ onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext<any>) => Promise<void> | void) | undefined;
336
+ onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise<void> | void) | undefined;
337
+ onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise<void> | void) | undefined;
338
+ hookOptions?: {
339
+ cloneResponse?: boolean;
340
+ } | undefined;
341
+ timeout?: number | undefined;
342
+ customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined;
343
+ plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined;
344
+ baseURL?: string | undefined;
345
+ throw?: boolean | undefined;
346
+ auth?: ({
347
+ type: "Bearer";
348
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
349
+ } | {
350
+ type: "Basic";
351
+ username: string | (() => string | undefined) | undefined;
352
+ password: string | (() => string | undefined) | undefined;
353
+ } | {
354
+ type: "Custom";
355
+ prefix: string | (() => string | undefined) | undefined;
356
+ value: string | (() => string | undefined) | undefined;
357
+ }) | undefined;
358
+ body?: (Partial<{
359
+ email: string;
360
+ otp: string;
361
+ }> & Record<string, any>) | undefined;
362
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
363
+ params?: Record<string, any> | undefined;
364
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
365
+ retry?: import("@better-fetch/fetch").RetryOptions | undefined;
366
+ retryAttempt?: number | undefined;
367
+ output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined;
368
+ errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined;
369
+ disableValidation?: boolean | undefined;
370
+ }>(data_0: import("better-auth").Prettify<{
371
+ email: string;
372
+ otp: string;
373
+ } & {
374
+ fetchOptions?: FetchOptions | undefined;
375
+ }>, data_1?: FetchOptions | undefined) => Promise<import("@better-fetch/fetch").BetterFetchResponse<{
376
+ token: string;
377
+ user: {
378
+ id: string;
379
+ email: string;
380
+ emailVerified: boolean;
381
+ name: string;
382
+ image: string | null | undefined;
383
+ createdAt: Date;
384
+ updatedAt: Date;
385
+ };
386
+ }, {
387
+ code?: string;
388
+ message?: string;
389
+ }, FetchOptions["throw"] extends true ? true : false>>;
390
+ };
391
+ } & {
392
+ forgetPassword: {
393
+ emailOtp: <FetchOptions extends {
394
+ method?: string | undefined;
395
+ headers?: any;
396
+ keepalive?: boolean | undefined;
397
+ redirect?: import("undici-types").RequestRedirect | undefined;
398
+ integrity?: string | undefined;
399
+ signal?: (AbortSignal | null) | undefined;
400
+ credentials?: import("undici-types").RequestCredentials | undefined;
401
+ mode?: import("undici-types").RequestMode | undefined;
402
+ referrer?: string | undefined;
403
+ referrerPolicy?: import("undici-types").ReferrerPolicy | undefined;
404
+ window?: null | undefined;
405
+ dispatcher?: import("undici-types").Dispatcher | undefined;
406
+ duplex?: import("undici-types").RequestDuplex | undefined;
407
+ 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;
408
+ onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise<Response | void | import("@better-fetch/fetch").ResponseContext> | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined;
409
+ onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext<any>) => Promise<void> | void) | undefined;
410
+ onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise<void> | void) | undefined;
411
+ onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise<void> | void) | undefined;
412
+ hookOptions?: {
413
+ cloneResponse?: boolean;
414
+ } | undefined;
415
+ timeout?: number | undefined;
416
+ customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined;
417
+ plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined;
418
+ baseURL?: string | undefined;
419
+ throw?: boolean | undefined;
420
+ auth?: ({
421
+ type: "Bearer";
422
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
423
+ } | {
424
+ type: "Basic";
425
+ username: string | (() => string | undefined) | undefined;
426
+ password: string | (() => string | undefined) | undefined;
427
+ } | {
428
+ type: "Custom";
429
+ prefix: string | (() => string | undefined) | undefined;
430
+ value: string | (() => string | undefined) | undefined;
431
+ }) | undefined;
432
+ body?: (Partial<{
433
+ email: string;
434
+ }> & Record<string, any>) | undefined;
435
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
436
+ params?: Record<string, any> | undefined;
437
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
438
+ retry?: import("@better-fetch/fetch").RetryOptions | undefined;
439
+ retryAttempt?: number | undefined;
440
+ output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined;
441
+ errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined;
442
+ disableValidation?: boolean | undefined;
443
+ }>(data_0: import("better-auth").Prettify<{
444
+ email: string;
445
+ } & {
446
+ fetchOptions?: FetchOptions | undefined;
447
+ }>, data_1?: FetchOptions | undefined) => Promise<import("@better-fetch/fetch").BetterFetchResponse<{
448
+ success: boolean;
449
+ }, {
450
+ code?: string;
451
+ message?: string;
452
+ }, FetchOptions["throw"] extends true ? true : false>>;
453
+ };
454
+ } & {
455
+ emailOtp: {
456
+ resetPassword: <FetchOptions extends {
457
+ method?: string | undefined;
458
+ headers?: any;
459
+ keepalive?: boolean | undefined;
460
+ redirect?: import("undici-types").RequestRedirect | undefined;
461
+ integrity?: string | undefined;
462
+ signal?: (AbortSignal | null) | undefined;
463
+ credentials?: import("undici-types").RequestCredentials | undefined;
464
+ mode?: import("undici-types").RequestMode | undefined;
465
+ referrer?: string | undefined;
466
+ referrerPolicy?: import("undici-types").ReferrerPolicy | undefined;
467
+ window?: null | undefined;
468
+ dispatcher?: import("undici-types").Dispatcher | undefined;
469
+ duplex?: import("undici-types").RequestDuplex | undefined;
470
+ 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;
471
+ onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise<Response | void | import("@better-fetch/fetch").ResponseContext> | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined;
472
+ onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext<any>) => Promise<void> | void) | undefined;
473
+ onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise<void> | void) | undefined;
474
+ onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise<void> | void) | undefined;
475
+ hookOptions?: {
476
+ cloneResponse?: boolean;
477
+ } | undefined;
478
+ timeout?: number | undefined;
479
+ customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined;
480
+ plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined;
481
+ baseURL?: string | undefined;
482
+ throw?: boolean | undefined;
483
+ auth?: ({
484
+ type: "Bearer";
485
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
486
+ } | {
487
+ type: "Basic";
488
+ username: string | (() => string | undefined) | undefined;
489
+ password: string | (() => string | undefined) | undefined;
490
+ } | {
491
+ type: "Custom";
492
+ prefix: string | (() => string | undefined) | undefined;
493
+ value: string | (() => string | undefined) | undefined;
494
+ }) | undefined;
495
+ body?: (Partial<{
496
+ email: string;
497
+ otp: string;
498
+ password: string;
499
+ }> & Record<string, any>) | undefined;
500
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
501
+ params?: Record<string, any> | undefined;
502
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
503
+ retry?: import("@better-fetch/fetch").RetryOptions | undefined;
504
+ retryAttempt?: number | undefined;
505
+ output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined;
506
+ errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined;
507
+ disableValidation?: boolean | undefined;
508
+ }>(data_0: import("better-auth").Prettify<{
509
+ email: string;
510
+ otp: string;
511
+ password: string;
512
+ } & {
513
+ fetchOptions?: FetchOptions | undefined;
514
+ }>, data_1?: FetchOptions | undefined) => Promise<import("@better-fetch/fetch").BetterFetchResponse<{
515
+ success: boolean;
516
+ }, {
517
+ code?: string;
518
+ message?: string;
519
+ }, FetchOptions["throw"] extends true ? true : false>>;
520
+ };
521
+ } & {
522
+ emailOtp: {
523
+ sendVerificationOtp: <FetchOptions extends {
524
+ method?: string | undefined;
525
+ headers?: any;
526
+ keepalive?: boolean | undefined;
527
+ redirect?: import("undici-types").RequestRedirect | undefined;
528
+ integrity?: string | undefined;
529
+ signal?: (AbortSignal | null) | undefined;
530
+ credentials?: import("undici-types").RequestCredentials | undefined;
531
+ mode?: import("undici-types").RequestMode | undefined;
532
+ referrer?: string | undefined;
533
+ referrerPolicy?: import("undici-types").ReferrerPolicy | undefined;
534
+ window?: null | undefined;
535
+ dispatcher?: import("undici-types").Dispatcher | undefined;
536
+ duplex?: import("undici-types").RequestDuplex | undefined;
537
+ 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;
538
+ onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise<Response | void | import("@better-fetch/fetch").ResponseContext> | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined;
539
+ onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext<any>) => Promise<void> | void) | undefined;
540
+ onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise<void> | void) | undefined;
541
+ onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise<void> | void) | undefined;
542
+ hookOptions?: {
543
+ cloneResponse?: boolean;
544
+ } | undefined;
545
+ timeout?: number | undefined;
546
+ customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined;
547
+ plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined;
548
+ baseURL?: string | undefined;
549
+ throw?: boolean | undefined;
550
+ auth?: ({
551
+ type: "Bearer";
552
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
553
+ } | {
554
+ type: "Basic";
555
+ username: string | (() => string | undefined) | undefined;
556
+ password: string | (() => string | undefined) | undefined;
557
+ } | {
558
+ type: "Custom";
559
+ prefix: string | (() => string | undefined) | undefined;
560
+ value: string | (() => string | undefined) | undefined;
561
+ }) | undefined;
562
+ body?: (Partial<{
563
+ email: string;
564
+ type: "sign-in" | "forget-password" | "email-verification";
565
+ }> & Record<string, any>) | undefined;
566
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
567
+ params?: Record<string, any> | undefined;
568
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
569
+ retry?: import("@better-fetch/fetch").RetryOptions | undefined;
570
+ retryAttempt?: number | undefined;
571
+ output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined;
572
+ errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined;
573
+ disableValidation?: boolean | undefined;
574
+ }>(data_0: import("better-auth").Prettify<{
575
+ email: string;
576
+ type: "sign-in" | "forget-password" | "email-verification";
577
+ } & {
578
+ fetchOptions?: FetchOptions | undefined;
579
+ }>, data_1?: FetchOptions | undefined) => Promise<import("@better-fetch/fetch").BetterFetchResponse<{
580
+ success: boolean;
581
+ }, {
582
+ code?: string;
583
+ message?: string;
584
+ }, FetchOptions["throw"] extends true ? true : false>>;
585
+ };
586
+ } & {
587
+ passkey: {
588
+ generateRegisterOptions: <FetchOptions extends {
589
+ method?: string | undefined;
590
+ headers?: any;
591
+ keepalive?: boolean | undefined;
592
+ redirect?: import("undici-types").RequestRedirect | undefined;
593
+ integrity?: string | undefined;
594
+ signal?: (AbortSignal | null) | undefined;
595
+ credentials?: import("undici-types").RequestCredentials | undefined;
596
+ mode?: import("undici-types").RequestMode | undefined;
597
+ referrer?: string | undefined;
598
+ referrerPolicy?: import("undici-types").ReferrerPolicy | undefined;
599
+ window?: null | undefined;
600
+ dispatcher?: import("undici-types").Dispatcher | undefined;
601
+ duplex?: import("undici-types").RequestDuplex | undefined;
602
+ 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;
603
+ onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise<Response | void | import("@better-fetch/fetch").ResponseContext> | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined;
604
+ onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext<any>) => Promise<void> | void) | undefined;
605
+ onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise<void> | void) | undefined;
606
+ onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise<void> | void) | undefined;
607
+ hookOptions?: {
608
+ cloneResponse?: boolean;
609
+ } | undefined;
610
+ timeout?: number | undefined;
611
+ customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined;
612
+ plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined;
613
+ baseURL?: string | undefined;
614
+ throw?: boolean | undefined;
615
+ auth?: ({
616
+ type: "Bearer";
617
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
618
+ } | {
619
+ type: "Basic";
620
+ username: string | (() => string | undefined) | undefined;
621
+ password: string | (() => string | undefined) | undefined;
622
+ } | {
623
+ type: "Custom";
624
+ prefix: string | (() => string | undefined) | undefined;
625
+ value: string | (() => string | undefined) | undefined;
626
+ }) | undefined;
627
+ body?: undefined;
628
+ query?: (Partial<{
629
+ authenticatorAttachment?: "platform" | "cross-platform" | undefined;
630
+ name?: string | undefined;
631
+ }> & Record<string, any>) | undefined;
632
+ params?: Record<string, any> | undefined;
633
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
634
+ retry?: import("@better-fetch/fetch").RetryOptions | undefined;
635
+ retryAttempt?: number | undefined;
636
+ output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined;
637
+ errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined;
638
+ disableValidation?: boolean | undefined;
639
+ }>(data_0?: import("better-auth").Prettify<{
640
+ query?: {
641
+ authenticatorAttachment?: "platform" | "cross-platform" | undefined;
642
+ name?: string | undefined;
643
+ } | undefined;
644
+ fetchOptions?: FetchOptions | undefined;
645
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<import("@better-fetch/fetch").BetterFetchResponse<import("@simplewebauthn/server").PublicKeyCredentialCreationOptionsJSON, {
646
+ code?: string;
647
+ message?: string;
648
+ }, FetchOptions["throw"] extends true ? true : false>>;
649
+ };
650
+ } & {
651
+ passkey: {
652
+ generateAuthenticateOptions: <FetchOptions extends {
653
+ method?: string | undefined;
654
+ headers?: any;
655
+ keepalive?: boolean | undefined;
656
+ redirect?: import("undici-types").RequestRedirect | undefined;
657
+ integrity?: string | undefined;
658
+ signal?: (AbortSignal | null) | undefined;
659
+ credentials?: import("undici-types").RequestCredentials | undefined;
660
+ mode?: import("undici-types").RequestMode | undefined;
661
+ referrer?: string | undefined;
662
+ referrerPolicy?: import("undici-types").ReferrerPolicy | undefined;
663
+ window?: null | undefined;
664
+ dispatcher?: import("undici-types").Dispatcher | undefined;
665
+ duplex?: import("undici-types").RequestDuplex | undefined;
666
+ 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;
667
+ onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise<Response | void | import("@better-fetch/fetch").ResponseContext> | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined;
668
+ onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext<any>) => Promise<void> | void) | undefined;
669
+ onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise<void> | void) | undefined;
670
+ onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise<void> | void) | undefined;
671
+ hookOptions?: {
672
+ cloneResponse?: boolean;
673
+ } | undefined;
674
+ timeout?: number | undefined;
675
+ customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined;
676
+ plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined;
677
+ baseURL?: string | undefined;
678
+ throw?: boolean | undefined;
679
+ auth?: ({
680
+ type: "Bearer";
681
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
682
+ } | {
683
+ type: "Basic";
684
+ username: string | (() => string | undefined) | undefined;
685
+ password: string | (() => string | undefined) | undefined;
686
+ } | {
687
+ type: "Custom";
688
+ prefix: string | (() => string | undefined) | undefined;
689
+ value: string | (() => string | undefined) | undefined;
690
+ }) | undefined;
691
+ body?: (Partial<{
692
+ email?: string | undefined;
693
+ }> & Record<string, any>) | undefined;
694
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
695
+ params?: Record<string, any> | undefined;
696
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
697
+ retry?: import("@better-fetch/fetch").RetryOptions | undefined;
698
+ retryAttempt?: number | undefined;
699
+ output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined;
700
+ errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined;
701
+ disableValidation?: boolean | undefined;
702
+ }>(data_0?: import("better-auth").Prettify<{
703
+ query?: Record<string, any> | undefined;
704
+ fetchOptions?: FetchOptions | undefined;
705
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<import("@better-fetch/fetch").BetterFetchResponse<import("@simplewebauthn/server").PublicKeyCredentialRequestOptionsJSON, {
706
+ code?: string;
707
+ message?: string;
708
+ }, FetchOptions["throw"] extends true ? true : false>>;
709
+ };
710
+ } & {
711
+ passkey: {
712
+ verifyRegistration: <FetchOptions extends {
713
+ method?: string | undefined;
714
+ headers?: any;
715
+ keepalive?: boolean | undefined;
716
+ redirect?: import("undici-types").RequestRedirect | undefined;
717
+ integrity?: string | undefined;
718
+ signal?: (AbortSignal | null) | undefined;
719
+ credentials?: import("undici-types").RequestCredentials | undefined;
720
+ mode?: import("undici-types").RequestMode | undefined;
721
+ referrer?: string | undefined;
722
+ referrerPolicy?: import("undici-types").ReferrerPolicy | undefined;
723
+ window?: null | undefined;
724
+ dispatcher?: import("undici-types").Dispatcher | undefined;
725
+ duplex?: import("undici-types").RequestDuplex | undefined;
726
+ 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;
727
+ onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise<Response | void | import("@better-fetch/fetch").ResponseContext> | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined;
728
+ onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext<any>) => Promise<void> | void) | undefined;
729
+ onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise<void> | void) | undefined;
730
+ onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise<void> | void) | undefined;
731
+ hookOptions?: {
732
+ cloneResponse?: boolean;
733
+ } | undefined;
734
+ timeout?: number | undefined;
735
+ customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined;
736
+ plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined;
737
+ baseURL?: string | undefined;
738
+ throw?: boolean | undefined;
739
+ auth?: ({
740
+ type: "Bearer";
741
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
742
+ } | {
743
+ type: "Basic";
744
+ username: string | (() => string | undefined) | undefined;
745
+ password: string | (() => string | undefined) | undefined;
746
+ } | {
747
+ type: "Custom";
748
+ prefix: string | (() => string | undefined) | undefined;
749
+ value: string | (() => string | undefined) | undefined;
750
+ }) | undefined;
751
+ body?: (Partial<{
752
+ response: any;
753
+ name?: string | undefined;
754
+ }> & Record<string, any>) | undefined;
755
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
756
+ params?: Record<string, any> | undefined;
757
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
758
+ retry?: import("@better-fetch/fetch").RetryOptions | undefined;
759
+ retryAttempt?: number | undefined;
760
+ output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined;
761
+ errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined;
762
+ disableValidation?: boolean | undefined;
763
+ }>(data_0: import("better-auth").Prettify<{
764
+ response: any;
765
+ name?: string | undefined;
766
+ } & {
767
+ fetchOptions?: FetchOptions | undefined;
768
+ }>, data_1?: FetchOptions | undefined) => Promise<import("@better-fetch/fetch").BetterFetchResponse<import("better-auth/plugins/passkey").Passkey, {
769
+ code?: string;
770
+ message?: string;
771
+ }, FetchOptions["throw"] extends true ? true : false>>;
772
+ };
773
+ } & {
774
+ passkey: {
775
+ verifyAuthentication: <FetchOptions extends {
776
+ method?: string | undefined;
777
+ headers?: any;
778
+ keepalive?: boolean | undefined;
779
+ redirect?: import("undici-types").RequestRedirect | undefined;
780
+ integrity?: string | undefined;
781
+ signal?: (AbortSignal | null) | undefined;
782
+ credentials?: import("undici-types").RequestCredentials | undefined;
783
+ mode?: import("undici-types").RequestMode | undefined;
784
+ referrer?: string | undefined;
785
+ referrerPolicy?: import("undici-types").ReferrerPolicy | undefined;
786
+ window?: null | undefined;
787
+ dispatcher?: import("undici-types").Dispatcher | undefined;
788
+ duplex?: import("undici-types").RequestDuplex | undefined;
789
+ 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;
790
+ onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise<Response | void | import("@better-fetch/fetch").ResponseContext> | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined;
791
+ onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext<any>) => Promise<void> | void) | undefined;
792
+ onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise<void> | void) | undefined;
793
+ onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise<void> | void) | undefined;
794
+ hookOptions?: {
795
+ cloneResponse?: boolean;
796
+ } | undefined;
797
+ timeout?: number | undefined;
798
+ customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined;
799
+ plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined;
800
+ baseURL?: string | undefined;
801
+ throw?: boolean | undefined;
802
+ auth?: ({
803
+ type: "Bearer";
804
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
805
+ } | {
806
+ type: "Basic";
807
+ username: string | (() => string | undefined) | undefined;
808
+ password: string | (() => string | undefined) | undefined;
809
+ } | {
810
+ type: "Custom";
811
+ prefix: string | (() => string | undefined) | undefined;
812
+ value: string | (() => string | undefined) | undefined;
813
+ }) | undefined;
814
+ body?: (Partial<{
815
+ response: import("@simplewebauthn/server").AuthenticationResponseJSON;
816
+ }> & Record<string, any>) | undefined;
817
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
818
+ params?: Record<string, any> | undefined;
819
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
820
+ retry?: import("@better-fetch/fetch").RetryOptions | undefined;
821
+ retryAttempt?: number | undefined;
822
+ output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined;
823
+ errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined;
824
+ disableValidation?: boolean | undefined;
825
+ }>(data_0: import("better-auth").Prettify<{
826
+ response: import("@simplewebauthn/server").AuthenticationResponseJSON;
827
+ } & {
828
+ fetchOptions?: FetchOptions | undefined;
829
+ }>, data_1?: FetchOptions | undefined) => Promise<import("@better-fetch/fetch").BetterFetchResponse<{
830
+ session: {
831
+ id: string;
832
+ createdAt: Date;
833
+ updatedAt: Date;
834
+ userId: string;
835
+ expiresAt: Date;
836
+ token: string;
837
+ ipAddress?: string | null | undefined;
838
+ userAgent?: string | null | undefined;
839
+ };
840
+ }, {
841
+ code?: string;
842
+ message?: string;
843
+ }, FetchOptions["throw"] extends true ? true : false>>;
844
+ };
845
+ } & {
846
+ passkey: {
847
+ listUserPasskeys: <FetchOptions extends {
848
+ method?: string | undefined;
849
+ headers?: any;
850
+ keepalive?: boolean | undefined;
851
+ redirect?: import("undici-types").RequestRedirect | undefined;
852
+ integrity?: string | undefined;
853
+ signal?: (AbortSignal | null) | undefined;
854
+ credentials?: import("undici-types").RequestCredentials | undefined;
855
+ mode?: import("undici-types").RequestMode | undefined;
856
+ referrer?: string | undefined;
857
+ referrerPolicy?: import("undici-types").ReferrerPolicy | undefined;
858
+ window?: null | undefined;
859
+ dispatcher?: import("undici-types").Dispatcher | undefined;
860
+ duplex?: import("undici-types").RequestDuplex | undefined;
861
+ 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;
862
+ onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise<Response | void | import("@better-fetch/fetch").ResponseContext> | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined;
863
+ onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext<any>) => Promise<void> | void) | undefined;
864
+ onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise<void> | void) | undefined;
865
+ onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise<void> | void) | undefined;
866
+ hookOptions?: {
867
+ cloneResponse?: boolean;
868
+ } | undefined;
869
+ timeout?: number | undefined;
870
+ customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined;
871
+ plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined;
872
+ baseURL?: string | undefined;
873
+ throw?: boolean | undefined;
874
+ auth?: ({
875
+ type: "Bearer";
876
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
877
+ } | {
878
+ type: "Basic";
879
+ username: string | (() => string | undefined) | undefined;
880
+ password: string | (() => string | undefined) | undefined;
881
+ } | {
882
+ type: "Custom";
883
+ prefix: string | (() => string | undefined) | undefined;
884
+ value: string | (() => string | undefined) | undefined;
885
+ }) | undefined;
886
+ body?: undefined;
887
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
888
+ params?: Record<string, any> | undefined;
889
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
890
+ retry?: import("@better-fetch/fetch").RetryOptions | undefined;
891
+ retryAttempt?: number | undefined;
892
+ output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined;
893
+ errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined;
894
+ disableValidation?: boolean | undefined;
895
+ }>(data_0?: import("better-auth").Prettify<{
896
+ query?: Record<string, any> | undefined;
897
+ fetchOptions?: FetchOptions | undefined;
898
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<import("@better-fetch/fetch").BetterFetchResponse<import("better-auth/plugins/passkey").Passkey[], {
899
+ code?: string;
900
+ message?: string;
901
+ }, FetchOptions["throw"] extends true ? true : false>>;
902
+ };
903
+ } & {
904
+ passkey: {
905
+ deletePasskey: <FetchOptions extends {
906
+ method?: string | undefined;
907
+ headers?: any;
908
+ keepalive?: boolean | undefined;
909
+ redirect?: import("undici-types").RequestRedirect | undefined;
910
+ integrity?: string | undefined;
911
+ signal?: (AbortSignal | null) | undefined;
912
+ credentials?: import("undici-types").RequestCredentials | undefined;
913
+ mode?: import("undici-types").RequestMode | undefined;
914
+ referrer?: string | undefined;
915
+ referrerPolicy?: import("undici-types").ReferrerPolicy | undefined;
916
+ window?: null | undefined;
917
+ dispatcher?: import("undici-types").Dispatcher | undefined;
918
+ duplex?: import("undici-types").RequestDuplex | undefined;
919
+ 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;
920
+ onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise<Response | void | import("@better-fetch/fetch").ResponseContext> | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined;
921
+ onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext<any>) => Promise<void> | void) | undefined;
922
+ onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise<void> | void) | undefined;
923
+ onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise<void> | void) | undefined;
924
+ hookOptions?: {
925
+ cloneResponse?: boolean;
926
+ } | undefined;
927
+ timeout?: number | undefined;
928
+ customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined;
929
+ plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined;
930
+ baseURL?: string | undefined;
931
+ throw?: boolean | undefined;
932
+ auth?: ({
933
+ type: "Bearer";
934
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
935
+ } | {
936
+ type: "Basic";
937
+ username: string | (() => string | undefined) | undefined;
938
+ password: string | (() => string | undefined) | undefined;
939
+ } | {
940
+ type: "Custom";
941
+ prefix: string | (() => string | undefined) | undefined;
942
+ value: string | (() => string | undefined) | undefined;
943
+ }) | undefined;
944
+ body?: (Partial<{
945
+ id: string;
946
+ }> & Record<string, any>) | undefined;
947
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
948
+ params?: Record<string, any> | undefined;
949
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
950
+ retry?: import("@better-fetch/fetch").RetryOptions | undefined;
951
+ retryAttempt?: number | undefined;
952
+ output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined;
953
+ errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined;
954
+ disableValidation?: boolean | undefined;
955
+ }>(data_0: import("better-auth").Prettify<{
956
+ id: string;
957
+ } & {
958
+ fetchOptions?: FetchOptions | undefined;
959
+ }>, data_1?: FetchOptions | undefined) => Promise<import("@better-fetch/fetch").BetterFetchResponse<never, {
960
+ code?: string;
961
+ message?: string;
962
+ }, FetchOptions["throw"] extends true ? true : false>>;
963
+ };
964
+ } & {
965
+ passkey: {
966
+ updatePasskey: <FetchOptions extends {
967
+ method?: string | undefined;
968
+ headers?: any;
969
+ keepalive?: boolean | undefined;
970
+ redirect?: import("undici-types").RequestRedirect | undefined;
971
+ integrity?: string | undefined;
972
+ signal?: (AbortSignal | null) | undefined;
973
+ credentials?: import("undici-types").RequestCredentials | undefined;
974
+ mode?: import("undici-types").RequestMode | undefined;
975
+ referrer?: string | undefined;
976
+ referrerPolicy?: import("undici-types").ReferrerPolicy | undefined;
977
+ window?: null | undefined;
978
+ dispatcher?: import("undici-types").Dispatcher | undefined;
979
+ duplex?: import("undici-types").RequestDuplex | undefined;
980
+ 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;
981
+ onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise<Response | void | import("@better-fetch/fetch").ResponseContext> | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined;
982
+ onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext<any>) => Promise<void> | void) | undefined;
983
+ onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise<void> | void) | undefined;
984
+ onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise<void> | void) | undefined;
985
+ hookOptions?: {
986
+ cloneResponse?: boolean;
987
+ } | undefined;
988
+ timeout?: number | undefined;
989
+ customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined;
990
+ plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined;
991
+ baseURL?: string | undefined;
992
+ throw?: boolean | undefined;
993
+ auth?: ({
994
+ type: "Bearer";
995
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
996
+ } | {
997
+ type: "Basic";
998
+ username: string | (() => string | undefined) | undefined;
999
+ password: string | (() => string | undefined) | undefined;
1000
+ } | {
1001
+ type: "Custom";
1002
+ prefix: string | (() => string | undefined) | undefined;
1003
+ value: string | (() => string | undefined) | undefined;
1004
+ }) | undefined;
1005
+ body?: (Partial<{
1006
+ id: string;
1007
+ name: string;
1008
+ }> & Record<string, any>) | undefined;
1009
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
1010
+ params?: Record<string, any> | undefined;
1011
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
1012
+ retry?: import("@better-fetch/fetch").RetryOptions | undefined;
1013
+ retryAttempt?: number | undefined;
1014
+ output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1015
+ errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined;
1016
+ disableValidation?: boolean | undefined;
1017
+ }>(data_0: import("better-auth").Prettify<{
1018
+ id: string;
1019
+ name: string;
1020
+ } & {
1021
+ fetchOptions?: FetchOptions | undefined;
1022
+ }>, data_1?: FetchOptions | undefined) => Promise<import("@better-fetch/fetch").BetterFetchResponse<{
1023
+ passkey: import("better-auth/plugins/passkey").Passkey;
1024
+ }, {
1025
+ code?: string;
1026
+ message?: string;
1027
+ }, FetchOptions["throw"] extends true ? true : false>>;
1028
+ };
1029
+ } & {
1030
+ signIn: {
1031
+ social: <FetchOptions extends {
1032
+ method?: string | undefined;
1033
+ headers?: any;
1034
+ keepalive?: boolean | undefined;
1035
+ redirect?: import("undici-types").RequestRedirect | undefined;
1036
+ integrity?: string | undefined;
1037
+ signal?: (AbortSignal | null) | undefined;
1038
+ credentials?: import("undici-types").RequestCredentials | undefined;
1039
+ mode?: import("undici-types").RequestMode | undefined;
1040
+ referrer?: string | undefined;
1041
+ referrerPolicy?: import("undici-types").ReferrerPolicy | undefined;
1042
+ window?: null | undefined;
1043
+ dispatcher?: import("undici-types").Dispatcher | undefined;
1044
+ duplex?: import("undici-types").RequestDuplex | undefined;
1045
+ 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;
1046
+ onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise<Response | void | import("@better-fetch/fetch").ResponseContext> | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined;
1047
+ onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext<any>) => Promise<void> | void) | undefined;
1048
+ onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise<void> | void) | undefined;
1049
+ onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise<void> | void) | undefined;
1050
+ hookOptions?: {
1051
+ cloneResponse?: boolean;
1052
+ } | undefined;
1053
+ timeout?: number | undefined;
1054
+ customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined;
1055
+ plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined;
1056
+ baseURL?: string | undefined;
1057
+ throw?: boolean | undefined;
1058
+ auth?: ({
1059
+ type: "Bearer";
1060
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
1061
+ } | {
1062
+ type: "Basic";
1063
+ username: string | (() => string | undefined) | undefined;
1064
+ password: string | (() => string | undefined) | undefined;
1065
+ } | {
1066
+ type: "Custom";
1067
+ prefix: string | (() => string | undefined) | undefined;
1068
+ value: string | (() => string | undefined) | undefined;
1069
+ }) | undefined;
1070
+ body?: (Partial<{
1071
+ provider: unknown;
1072
+ callbackURL?: string | undefined;
1073
+ newUserCallbackURL?: string | undefined;
1074
+ errorCallbackURL?: string | undefined;
1075
+ disableRedirect?: boolean | undefined;
1076
+ idToken?: {
1077
+ token: string;
1078
+ nonce?: string | undefined;
1079
+ accessToken?: string | undefined;
1080
+ refreshToken?: string | undefined;
1081
+ expiresAt?: number | undefined;
1082
+ } | undefined;
1083
+ scopes?: string[] | undefined;
1084
+ requestSignUp?: boolean | undefined;
1085
+ loginHint?: string | undefined;
1086
+ }> & Record<string, any>) | undefined;
1087
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
1088
+ params?: Record<string, any> | undefined;
1089
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
1090
+ retry?: import("@better-fetch/fetch").RetryOptions | undefined;
1091
+ retryAttempt?: number | undefined;
1092
+ output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1093
+ errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined;
1094
+ disableValidation?: boolean | undefined;
1095
+ }>(data_0: import("better-auth").Prettify<{
1096
+ provider: unknown;
1097
+ callbackURL?: string | undefined;
1098
+ newUserCallbackURL?: string | undefined;
1099
+ errorCallbackURL?: string | undefined;
1100
+ disableRedirect?: boolean | undefined;
1101
+ idToken?: {
1102
+ token: string;
1103
+ nonce?: string | undefined;
1104
+ accessToken?: string | undefined;
1105
+ refreshToken?: string | undefined;
1106
+ expiresAt?: number | undefined;
1107
+ } | undefined;
1108
+ scopes?: string[] | undefined;
1109
+ requestSignUp?: boolean | undefined;
1110
+ loginHint?: string | undefined;
1111
+ } & {
1112
+ fetchOptions?: FetchOptions | undefined;
1113
+ }>, data_1?: FetchOptions | undefined) => Promise<import("@better-fetch/fetch").BetterFetchResponse<NonNullable<{
1114
+ redirect: boolean;
1115
+ token: string;
1116
+ url: undefined;
1117
+ user: {
1118
+ id: string;
1119
+ email: string;
1120
+ name: string;
1121
+ image: string | null | undefined;
1122
+ emailVerified: boolean;
1123
+ createdAt: Date;
1124
+ updatedAt: Date;
1125
+ };
1126
+ } | {
1127
+ url: string;
1128
+ redirect: boolean;
1129
+ }>, {
1130
+ code?: string;
1131
+ message?: string;
1132
+ }, FetchOptions["throw"] extends true ? true : false>>;
1133
+ };
1134
+ } & {
1135
+ signOut: <FetchOptions extends {
1136
+ method?: string | undefined;
1137
+ headers?: any;
1138
+ keepalive?: boolean | undefined;
1139
+ redirect?: import("undici-types").RequestRedirect | undefined;
1140
+ integrity?: string | undefined;
1141
+ signal?: (AbortSignal | null) | undefined;
1142
+ credentials?: import("undici-types").RequestCredentials | undefined;
1143
+ mode?: import("undici-types").RequestMode | undefined;
1144
+ referrer?: string | undefined;
1145
+ referrerPolicy?: import("undici-types").ReferrerPolicy | undefined;
1146
+ window?: null | undefined;
1147
+ dispatcher?: import("undici-types").Dispatcher | undefined;
1148
+ duplex?: import("undici-types").RequestDuplex | undefined;
1149
+ 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;
1150
+ onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise<Response | void | import("@better-fetch/fetch").ResponseContext> | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined;
1151
+ onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext<any>) => Promise<void> | void) | undefined;
1152
+ onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise<void> | void) | undefined;
1153
+ onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise<void> | void) | undefined;
1154
+ hookOptions?: {
1155
+ cloneResponse?: boolean;
1156
+ } | undefined;
1157
+ timeout?: number | undefined;
1158
+ customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined;
1159
+ plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined;
1160
+ baseURL?: string | undefined;
1161
+ throw?: boolean | undefined;
1162
+ auth?: ({
1163
+ type: "Bearer";
1164
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
1165
+ } | {
1166
+ type: "Basic";
1167
+ username: string | (() => string | undefined) | undefined;
1168
+ password: string | (() => string | undefined) | undefined;
1169
+ } | {
1170
+ type: "Custom";
1171
+ prefix: string | (() => string | undefined) | undefined;
1172
+ value: string | (() => string | undefined) | undefined;
1173
+ }) | undefined;
1174
+ body?: undefined;
1175
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
1176
+ params?: Record<string, any> | undefined;
1177
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
1178
+ retry?: import("@better-fetch/fetch").RetryOptions | undefined;
1179
+ retryAttempt?: number | undefined;
1180
+ output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1181
+ errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined;
1182
+ disableValidation?: boolean | undefined;
1183
+ }>(data_0?: import("better-auth").Prettify<{
1184
+ query?: Record<string, any> | undefined;
1185
+ fetchOptions?: FetchOptions | undefined;
1186
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<import("@better-fetch/fetch").BetterFetchResponse<{
1187
+ success: boolean;
1188
+ }, {
1189
+ code?: string;
1190
+ message?: string;
1191
+ }, FetchOptions["throw"] extends true ? true : false>>;
1192
+ } & {
1193
+ signIn: {
1194
+ email: <FetchOptions extends {
1195
+ method?: string | undefined;
1196
+ headers?: any;
1197
+ keepalive?: boolean | undefined;
1198
+ redirect?: import("undici-types").RequestRedirect | undefined;
1199
+ integrity?: string | undefined;
1200
+ signal?: (AbortSignal | null) | undefined;
1201
+ credentials?: import("undici-types").RequestCredentials | undefined;
1202
+ mode?: import("undici-types").RequestMode | undefined;
1203
+ referrer?: string | undefined;
1204
+ referrerPolicy?: import("undici-types").ReferrerPolicy | undefined;
1205
+ window?: null | undefined;
1206
+ dispatcher?: import("undici-types").Dispatcher | undefined;
1207
+ duplex?: import("undici-types").RequestDuplex | undefined;
1208
+ 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;
1209
+ onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise<Response | void | import("@better-fetch/fetch").ResponseContext> | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined;
1210
+ onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext<any>) => Promise<void> | void) | undefined;
1211
+ onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise<void> | void) | undefined;
1212
+ onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise<void> | void) | undefined;
1213
+ hookOptions?: {
1214
+ cloneResponse?: boolean;
1215
+ } | undefined;
1216
+ timeout?: number | undefined;
1217
+ customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined;
1218
+ plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined;
1219
+ baseURL?: string | undefined;
1220
+ throw?: boolean | undefined;
1221
+ auth?: ({
1222
+ type: "Bearer";
1223
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
1224
+ } | {
1225
+ type: "Basic";
1226
+ username: string | (() => string | undefined) | undefined;
1227
+ password: string | (() => string | undefined) | undefined;
1228
+ } | {
1229
+ type: "Custom";
1230
+ prefix: string | (() => string | undefined) | undefined;
1231
+ value: string | (() => string | undefined) | undefined;
1232
+ }) | undefined;
1233
+ body?: (Partial<{
1234
+ email: string;
1235
+ password: string;
1236
+ callbackURL?: string | undefined;
1237
+ rememberMe?: boolean | undefined;
1238
+ }> & Record<string, any>) | undefined;
1239
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
1240
+ params?: Record<string, any> | undefined;
1241
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
1242
+ retry?: import("@better-fetch/fetch").RetryOptions | undefined;
1243
+ retryAttempt?: number | undefined;
1244
+ output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1245
+ errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined;
1246
+ disableValidation?: boolean | undefined;
1247
+ }>(data_0: import("better-auth").Prettify<{
1248
+ email: string;
1249
+ password: string;
1250
+ callbackURL?: string | undefined;
1251
+ rememberMe?: boolean | undefined;
1252
+ } & {
1253
+ fetchOptions?: FetchOptions | undefined;
1254
+ }>, data_1?: FetchOptions | undefined) => Promise<import("@better-fetch/fetch").BetterFetchResponse<{
1255
+ redirect: boolean;
1256
+ token: string;
1257
+ url: string | undefined;
1258
+ user: {
1259
+ id: string;
1260
+ email: string;
1261
+ name: string;
1262
+ image: string | null | undefined;
1263
+ emailVerified: boolean;
1264
+ createdAt: Date;
1265
+ updatedAt: Date;
1266
+ };
1267
+ }, {
1268
+ code?: string;
1269
+ message?: string;
1270
+ }, FetchOptions["throw"] extends true ? true : false>>;
1271
+ };
1272
+ } & {
1273
+ forgetPassword: <FetchOptions extends {
1274
+ method?: string | undefined;
1275
+ headers?: any;
1276
+ keepalive?: boolean | undefined;
1277
+ redirect?: import("undici-types").RequestRedirect | undefined;
1278
+ integrity?: string | undefined;
1279
+ signal?: (AbortSignal | null) | undefined;
1280
+ credentials?: import("undici-types").RequestCredentials | undefined;
1281
+ mode?: import("undici-types").RequestMode | undefined;
1282
+ referrer?: string | undefined;
1283
+ referrerPolicy?: import("undici-types").ReferrerPolicy | undefined;
1284
+ window?: null | undefined;
1285
+ dispatcher?: import("undici-types").Dispatcher | undefined;
1286
+ duplex?: import("undici-types").RequestDuplex | undefined;
1287
+ 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;
1288
+ onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise<Response | void | import("@better-fetch/fetch").ResponseContext> | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined;
1289
+ onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext<any>) => Promise<void> | void) | undefined;
1290
+ onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise<void> | void) | undefined;
1291
+ onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise<void> | void) | undefined;
1292
+ hookOptions?: {
1293
+ cloneResponse?: boolean;
1294
+ } | undefined;
1295
+ timeout?: number | undefined;
1296
+ customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined;
1297
+ plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined;
1298
+ baseURL?: string | undefined;
1299
+ throw?: boolean | undefined;
1300
+ auth?: ({
1301
+ type: "Bearer";
1302
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
1303
+ } | {
1304
+ type: "Basic";
1305
+ username: string | (() => string | undefined) | undefined;
1306
+ password: string | (() => string | undefined) | undefined;
1307
+ } | {
1308
+ type: "Custom";
1309
+ prefix: string | (() => string | undefined) | undefined;
1310
+ value: string | (() => string | undefined) | undefined;
1311
+ }) | undefined;
1312
+ body?: (Partial<{
1313
+ email: string;
1314
+ redirectTo?: string | undefined;
1315
+ }> & Record<string, any>) | undefined;
1316
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
1317
+ params?: Record<string, any> | undefined;
1318
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
1319
+ retry?: import("@better-fetch/fetch").RetryOptions | undefined;
1320
+ retryAttempt?: number | undefined;
1321
+ output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1322
+ errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined;
1323
+ disableValidation?: boolean | undefined;
1324
+ }>(data_0: import("better-auth").Prettify<{
1325
+ email: string;
1326
+ redirectTo?: string | undefined;
1327
+ } & {
1328
+ fetchOptions?: FetchOptions | undefined;
1329
+ }>, data_1?: FetchOptions | undefined) => Promise<import("@better-fetch/fetch").BetterFetchResponse<{
1330
+ status: boolean;
1331
+ }, {
1332
+ code?: string;
1333
+ message?: string;
1334
+ }, FetchOptions["throw"] extends true ? true : false>>;
1335
+ } & {
1336
+ resetPassword: <FetchOptions extends {
1337
+ method?: string | undefined;
1338
+ headers?: any;
1339
+ keepalive?: boolean | undefined;
1340
+ redirect?: import("undici-types").RequestRedirect | undefined;
1341
+ integrity?: string | undefined;
1342
+ signal?: (AbortSignal | null) | undefined;
1343
+ credentials?: import("undici-types").RequestCredentials | undefined;
1344
+ mode?: import("undici-types").RequestMode | undefined;
1345
+ referrer?: string | undefined;
1346
+ referrerPolicy?: import("undici-types").ReferrerPolicy | undefined;
1347
+ window?: null | undefined;
1348
+ dispatcher?: import("undici-types").Dispatcher | undefined;
1349
+ duplex?: import("undici-types").RequestDuplex | undefined;
1350
+ 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;
1351
+ onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise<Response | void | import("@better-fetch/fetch").ResponseContext> | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined;
1352
+ onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext<any>) => Promise<void> | void) | undefined;
1353
+ onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise<void> | void) | undefined;
1354
+ onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise<void> | void) | undefined;
1355
+ hookOptions?: {
1356
+ cloneResponse?: boolean;
1357
+ } | undefined;
1358
+ timeout?: number | undefined;
1359
+ customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined;
1360
+ plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined;
1361
+ baseURL?: string | undefined;
1362
+ throw?: boolean | undefined;
1363
+ auth?: ({
1364
+ type: "Bearer";
1365
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
1366
+ } | {
1367
+ type: "Basic";
1368
+ username: string | (() => string | undefined) | undefined;
1369
+ password: string | (() => string | undefined) | undefined;
1370
+ } | {
1371
+ type: "Custom";
1372
+ prefix: string | (() => string | undefined) | undefined;
1373
+ value: string | (() => string | undefined) | undefined;
1374
+ }) | undefined;
1375
+ body?: (Partial<{
1376
+ newPassword: string;
1377
+ token?: string | undefined;
1378
+ }> & Record<string, any>) | undefined;
1379
+ query?: (Partial<{
1380
+ token?: string | undefined;
1381
+ }> & Record<string, any>) | undefined;
1382
+ params?: Record<string, any> | undefined;
1383
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
1384
+ retry?: import("@better-fetch/fetch").RetryOptions | undefined;
1385
+ retryAttempt?: number | undefined;
1386
+ output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1387
+ errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined;
1388
+ disableValidation?: boolean | undefined;
1389
+ }>(data_0: import("better-auth").Prettify<{
1390
+ newPassword: string;
1391
+ token?: string | undefined;
1392
+ } & {
1393
+ fetchOptions?: FetchOptions | undefined;
1394
+ }>, data_1?: FetchOptions | undefined) => Promise<import("@better-fetch/fetch").BetterFetchResponse<{
1395
+ status: boolean;
1396
+ }, {
1397
+ code?: string;
1398
+ message?: string;
1399
+ }, FetchOptions["throw"] extends true ? true : false>>;
1400
+ } & {
1401
+ verifyEmail: <FetchOptions extends {
1402
+ method?: string | undefined;
1403
+ headers?: any;
1404
+ keepalive?: boolean | undefined;
1405
+ redirect?: import("undici-types").RequestRedirect | undefined;
1406
+ integrity?: string | undefined;
1407
+ signal?: (AbortSignal | null) | undefined;
1408
+ credentials?: import("undici-types").RequestCredentials | undefined;
1409
+ mode?: import("undici-types").RequestMode | undefined;
1410
+ referrer?: string | undefined;
1411
+ referrerPolicy?: import("undici-types").ReferrerPolicy | undefined;
1412
+ window?: null | undefined;
1413
+ dispatcher?: import("undici-types").Dispatcher | undefined;
1414
+ duplex?: import("undici-types").RequestDuplex | undefined;
1415
+ 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;
1416
+ onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise<Response | void | import("@better-fetch/fetch").ResponseContext> | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined;
1417
+ onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext<any>) => Promise<void> | void) | undefined;
1418
+ onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise<void> | void) | undefined;
1419
+ onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise<void> | void) | undefined;
1420
+ hookOptions?: {
1421
+ cloneResponse?: boolean;
1422
+ } | undefined;
1423
+ timeout?: number | undefined;
1424
+ customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined;
1425
+ plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined;
1426
+ baseURL?: string | undefined;
1427
+ throw?: boolean | undefined;
1428
+ auth?: ({
1429
+ type: "Bearer";
1430
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
1431
+ } | {
1432
+ type: "Basic";
1433
+ username: string | (() => string | undefined) | undefined;
1434
+ password: string | (() => string | undefined) | undefined;
1435
+ } | {
1436
+ type: "Custom";
1437
+ prefix: string | (() => string | undefined) | undefined;
1438
+ value: string | (() => string | undefined) | undefined;
1439
+ }) | undefined;
1440
+ body?: undefined;
1441
+ query?: (Partial<{
1442
+ token: string;
1443
+ callbackURL?: string | undefined;
1444
+ }> & Record<string, any>) | undefined;
1445
+ params?: Record<string, any> | undefined;
1446
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
1447
+ retry?: import("@better-fetch/fetch").RetryOptions | undefined;
1448
+ retryAttempt?: number | undefined;
1449
+ output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1450
+ errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined;
1451
+ disableValidation?: boolean | undefined;
1452
+ }>(data_0: import("better-auth").Prettify<{
1453
+ query: {
1454
+ token: string;
1455
+ callbackURL?: string | undefined;
1456
+ };
1457
+ fetchOptions?: FetchOptions | undefined;
1458
+ }>, data_1?: FetchOptions | undefined) => Promise<import("@better-fetch/fetch").BetterFetchResponse<NonNullable<void | {
1459
+ status: boolean;
1460
+ user: {
1461
+ id: any;
1462
+ email: any;
1463
+ name: any;
1464
+ image: any;
1465
+ emailVerified: any;
1466
+ createdAt: any;
1467
+ updatedAt: any;
1468
+ };
1469
+ } | {
1470
+ status: boolean;
1471
+ user: null;
1472
+ }>, {
1473
+ code?: string;
1474
+ message?: string;
1475
+ }, FetchOptions["throw"] extends true ? true : false>>;
1476
+ } & {
1477
+ sendVerificationEmail: <FetchOptions extends {
1478
+ method?: string | undefined;
1479
+ headers?: any;
1480
+ keepalive?: boolean | undefined;
1481
+ redirect?: import("undici-types").RequestRedirect | undefined;
1482
+ integrity?: string | undefined;
1483
+ signal?: (AbortSignal | null) | undefined;
1484
+ credentials?: import("undici-types").RequestCredentials | undefined;
1485
+ mode?: import("undici-types").RequestMode | undefined;
1486
+ referrer?: string | undefined;
1487
+ referrerPolicy?: import("undici-types").ReferrerPolicy | undefined;
1488
+ window?: null | undefined;
1489
+ dispatcher?: import("undici-types").Dispatcher | undefined;
1490
+ duplex?: import("undici-types").RequestDuplex | undefined;
1491
+ 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;
1492
+ onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise<Response | void | import("@better-fetch/fetch").ResponseContext> | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined;
1493
+ onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext<any>) => Promise<void> | void) | undefined;
1494
+ onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise<void> | void) | undefined;
1495
+ onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise<void> | void) | undefined;
1496
+ hookOptions?: {
1497
+ cloneResponse?: boolean;
1498
+ } | undefined;
1499
+ timeout?: number | undefined;
1500
+ customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined;
1501
+ plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined;
1502
+ baseURL?: string | undefined;
1503
+ throw?: boolean | undefined;
1504
+ auth?: ({
1505
+ type: "Bearer";
1506
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
1507
+ } | {
1508
+ type: "Basic";
1509
+ username: string | (() => string | undefined) | undefined;
1510
+ password: string | (() => string | undefined) | undefined;
1511
+ } | {
1512
+ type: "Custom";
1513
+ prefix: string | (() => string | undefined) | undefined;
1514
+ value: string | (() => string | undefined) | undefined;
1515
+ }) | undefined;
1516
+ body?: (Partial<{
1517
+ email: string;
1518
+ callbackURL?: string | undefined;
1519
+ }> & Record<string, any>) | undefined;
1520
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
1521
+ params?: Record<string, any> | undefined;
1522
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
1523
+ retry?: import("@better-fetch/fetch").RetryOptions | undefined;
1524
+ retryAttempt?: number | undefined;
1525
+ output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1526
+ errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined;
1527
+ disableValidation?: boolean | undefined;
1528
+ }>(data_0: import("better-auth").Prettify<{
1529
+ email: string;
1530
+ callbackURL?: string | undefined;
1531
+ } & {
1532
+ fetchOptions?: FetchOptions | undefined;
1533
+ }>, data_1?: FetchOptions | undefined) => Promise<import("@better-fetch/fetch").BetterFetchResponse<{
1534
+ status: boolean;
1535
+ }, {
1536
+ code?: string;
1537
+ message?: string;
1538
+ }, FetchOptions["throw"] extends true ? true : false>>;
1539
+ } & {
1540
+ changeEmail: <FetchOptions extends {
1541
+ method?: string | undefined;
1542
+ headers?: any;
1543
+ keepalive?: boolean | undefined;
1544
+ redirect?: import("undici-types").RequestRedirect | undefined;
1545
+ integrity?: string | undefined;
1546
+ signal?: (AbortSignal | null) | undefined;
1547
+ credentials?: import("undici-types").RequestCredentials | undefined;
1548
+ mode?: import("undici-types").RequestMode | undefined;
1549
+ referrer?: string | undefined;
1550
+ referrerPolicy?: import("undici-types").ReferrerPolicy | undefined;
1551
+ window?: null | undefined;
1552
+ dispatcher?: import("undici-types").Dispatcher | undefined;
1553
+ duplex?: import("undici-types").RequestDuplex | undefined;
1554
+ 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;
1555
+ onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise<Response | void | import("@better-fetch/fetch").ResponseContext> | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined;
1556
+ onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext<any>) => Promise<void> | void) | undefined;
1557
+ onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise<void> | void) | undefined;
1558
+ onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise<void> | void) | undefined;
1559
+ hookOptions?: {
1560
+ cloneResponse?: boolean;
1561
+ } | undefined;
1562
+ timeout?: number | undefined;
1563
+ customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined;
1564
+ plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined;
1565
+ baseURL?: string | undefined;
1566
+ throw?: boolean | undefined;
1567
+ auth?: ({
1568
+ type: "Bearer";
1569
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
1570
+ } | {
1571
+ type: "Basic";
1572
+ username: string | (() => string | undefined) | undefined;
1573
+ password: string | (() => string | undefined) | undefined;
1574
+ } | {
1575
+ type: "Custom";
1576
+ prefix: string | (() => string | undefined) | undefined;
1577
+ value: string | (() => string | undefined) | undefined;
1578
+ }) | undefined;
1579
+ body?: (Partial<{
1580
+ newEmail: string;
1581
+ callbackURL?: string | undefined;
1582
+ }> & Record<string, any>) | undefined;
1583
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
1584
+ params?: Record<string, any> | undefined;
1585
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
1586
+ retry?: import("@better-fetch/fetch").RetryOptions | undefined;
1587
+ retryAttempt?: number | undefined;
1588
+ output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1589
+ errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined;
1590
+ disableValidation?: boolean | undefined;
1591
+ }>(data_0: import("better-auth").Prettify<{
1592
+ newEmail: string;
1593
+ callbackURL?: string | undefined;
1594
+ } & {
1595
+ fetchOptions?: FetchOptions | undefined;
1596
+ }>, data_1?: FetchOptions | undefined) => Promise<import("@better-fetch/fetch").BetterFetchResponse<{
1597
+ status: boolean;
1598
+ }, {
1599
+ code?: string;
1600
+ message?: string;
1601
+ }, FetchOptions["throw"] extends true ? true : false>>;
1602
+ } & {
1603
+ changePassword: <FetchOptions extends {
1604
+ method?: string | undefined;
1605
+ headers?: any;
1606
+ keepalive?: boolean | undefined;
1607
+ redirect?: import("undici-types").RequestRedirect | undefined;
1608
+ integrity?: string | undefined;
1609
+ signal?: (AbortSignal | null) | undefined;
1610
+ credentials?: import("undici-types").RequestCredentials | undefined;
1611
+ mode?: import("undici-types").RequestMode | undefined;
1612
+ referrer?: string | undefined;
1613
+ referrerPolicy?: import("undici-types").ReferrerPolicy | undefined;
1614
+ window?: null | undefined;
1615
+ dispatcher?: import("undici-types").Dispatcher | undefined;
1616
+ duplex?: import("undici-types").RequestDuplex | undefined;
1617
+ 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;
1618
+ onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise<Response | void | import("@better-fetch/fetch").ResponseContext> | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined;
1619
+ onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext<any>) => Promise<void> | void) | undefined;
1620
+ onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise<void> | void) | undefined;
1621
+ onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise<void> | void) | undefined;
1622
+ hookOptions?: {
1623
+ cloneResponse?: boolean;
1624
+ } | undefined;
1625
+ timeout?: number | undefined;
1626
+ customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined;
1627
+ plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined;
1628
+ baseURL?: string | undefined;
1629
+ throw?: boolean | undefined;
1630
+ auth?: ({
1631
+ type: "Bearer";
1632
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
1633
+ } | {
1634
+ type: "Basic";
1635
+ username: string | (() => string | undefined) | undefined;
1636
+ password: string | (() => string | undefined) | undefined;
1637
+ } | {
1638
+ type: "Custom";
1639
+ prefix: string | (() => string | undefined) | undefined;
1640
+ value: string | (() => string | undefined) | undefined;
1641
+ }) | undefined;
1642
+ body?: (Partial<{
1643
+ newPassword: string;
1644
+ currentPassword: string;
1645
+ revokeOtherSessions?: boolean | undefined;
1646
+ }> & Record<string, any>) | undefined;
1647
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
1648
+ params?: Record<string, any> | undefined;
1649
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
1650
+ retry?: import("@better-fetch/fetch").RetryOptions | undefined;
1651
+ retryAttempt?: number | undefined;
1652
+ output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1653
+ errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined;
1654
+ disableValidation?: boolean | undefined;
1655
+ }>(data_0: import("better-auth").Prettify<{
1656
+ newPassword: string;
1657
+ currentPassword: string;
1658
+ revokeOtherSessions?: boolean | undefined;
1659
+ } & {
1660
+ fetchOptions?: FetchOptions | undefined;
1661
+ }>, data_1?: FetchOptions | undefined) => Promise<import("@better-fetch/fetch").BetterFetchResponse<{
1662
+ token: string | null;
1663
+ user: {
1664
+ id: string;
1665
+ email: string;
1666
+ name: string;
1667
+ image: string | null | undefined;
1668
+ emailVerified: boolean;
1669
+ createdAt: Date;
1670
+ updatedAt: Date;
1671
+ };
1672
+ }, {
1673
+ code?: string;
1674
+ message?: string;
1675
+ }, FetchOptions["throw"] extends true ? true : false>>;
1676
+ } & {
1677
+ deleteUser: <FetchOptions extends {
1678
+ method?: string | undefined;
1679
+ headers?: any;
1680
+ keepalive?: boolean | undefined;
1681
+ redirect?: import("undici-types").RequestRedirect | undefined;
1682
+ integrity?: string | undefined;
1683
+ signal?: (AbortSignal | null) | undefined;
1684
+ credentials?: import("undici-types").RequestCredentials | undefined;
1685
+ mode?: import("undici-types").RequestMode | undefined;
1686
+ referrer?: string | undefined;
1687
+ referrerPolicy?: import("undici-types").ReferrerPolicy | undefined;
1688
+ window?: null | undefined;
1689
+ dispatcher?: import("undici-types").Dispatcher | undefined;
1690
+ duplex?: import("undici-types").RequestDuplex | undefined;
1691
+ 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;
1692
+ onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise<Response | void | import("@better-fetch/fetch").ResponseContext> | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined;
1693
+ onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext<any>) => Promise<void> | void) | undefined;
1694
+ onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise<void> | void) | undefined;
1695
+ onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise<void> | void) | undefined;
1696
+ hookOptions?: {
1697
+ cloneResponse?: boolean;
1698
+ } | undefined;
1699
+ timeout?: number | undefined;
1700
+ customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined;
1701
+ plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined;
1702
+ baseURL?: string | undefined;
1703
+ throw?: boolean | undefined;
1704
+ auth?: ({
1705
+ type: "Bearer";
1706
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
1707
+ } | {
1708
+ type: "Basic";
1709
+ username: string | (() => string | undefined) | undefined;
1710
+ password: string | (() => string | undefined) | undefined;
1711
+ } | {
1712
+ type: "Custom";
1713
+ prefix: string | (() => string | undefined) | undefined;
1714
+ value: string | (() => string | undefined) | undefined;
1715
+ }) | undefined;
1716
+ body?: (Partial<{
1717
+ callbackURL?: string | undefined;
1718
+ password?: string | undefined;
1719
+ token?: string | undefined;
1720
+ }> & Record<string, any>) | undefined;
1721
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
1722
+ params?: Record<string, any> | undefined;
1723
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
1724
+ retry?: import("@better-fetch/fetch").RetryOptions | undefined;
1725
+ retryAttempt?: number | undefined;
1726
+ output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1727
+ errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined;
1728
+ disableValidation?: boolean | undefined;
1729
+ }>(data_0?: import("better-auth").Prettify<{
1730
+ callbackURL?: string | undefined;
1731
+ password?: string | undefined;
1732
+ token?: string | undefined;
1733
+ } & {
1734
+ fetchOptions?: FetchOptions | undefined;
1735
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<import("@better-fetch/fetch").BetterFetchResponse<{
1736
+ success: boolean;
1737
+ message: string;
1738
+ }, {
1739
+ code?: string;
1740
+ message?: string;
1741
+ }, FetchOptions["throw"] extends true ? true : false>>;
1742
+ } & {
1743
+ resetPassword: {
1744
+ ":token": <FetchOptions extends {
1745
+ method?: string | undefined;
1746
+ headers?: any;
1747
+ keepalive?: boolean | undefined;
1748
+ redirect?: import("undici-types").RequestRedirect | undefined;
1749
+ integrity?: string | undefined;
1750
+ signal?: (AbortSignal | null) | undefined;
1751
+ credentials?: import("undici-types").RequestCredentials | undefined;
1752
+ mode?: import("undici-types").RequestMode | undefined;
1753
+ referrer?: string | undefined;
1754
+ referrerPolicy?: import("undici-types").ReferrerPolicy | undefined;
1755
+ window?: null | undefined;
1756
+ dispatcher?: import("undici-types").Dispatcher | undefined;
1757
+ duplex?: import("undici-types").RequestDuplex | undefined;
1758
+ 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;
1759
+ onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise<Response | void | import("@better-fetch/fetch").ResponseContext> | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined;
1760
+ onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext<any>) => Promise<void> | void) | undefined;
1761
+ onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise<void> | void) | undefined;
1762
+ onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise<void> | void) | undefined;
1763
+ hookOptions?: {
1764
+ cloneResponse?: boolean;
1765
+ } | undefined;
1766
+ timeout?: number | undefined;
1767
+ customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined;
1768
+ plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined;
1769
+ baseURL?: string | undefined;
1770
+ throw?: boolean | undefined;
1771
+ auth?: ({
1772
+ type: "Bearer";
1773
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
1774
+ } | {
1775
+ type: "Basic";
1776
+ username: string | (() => string | undefined) | undefined;
1777
+ password: string | (() => string | undefined) | undefined;
1778
+ } | {
1779
+ type: "Custom";
1780
+ prefix: string | (() => string | undefined) | undefined;
1781
+ value: string | (() => string | undefined) | undefined;
1782
+ }) | undefined;
1783
+ body?: undefined;
1784
+ query?: (Partial<{
1785
+ callbackURL: string;
1786
+ }> & Record<string, any>) | undefined;
1787
+ params?: {
1788
+ token: string;
1789
+ } | undefined;
1790
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
1791
+ retry?: import("@better-fetch/fetch").RetryOptions | undefined;
1792
+ retryAttempt?: number | undefined;
1793
+ output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1794
+ errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined;
1795
+ disableValidation?: boolean | undefined;
1796
+ }>(data_0: import("better-auth").Prettify<{
1797
+ query: {
1798
+ callbackURL: string;
1799
+ };
1800
+ fetchOptions?: FetchOptions | undefined;
1801
+ }>, data_1?: FetchOptions | undefined) => Promise<import("@better-fetch/fetch").BetterFetchResponse<never, {
1802
+ code?: string;
1803
+ message?: string;
1804
+ }, FetchOptions["throw"] extends true ? true : false>>;
1805
+ };
1806
+ } & {
1807
+ requestPasswordReset: <FetchOptions extends {
1808
+ method?: string | undefined;
1809
+ headers?: any;
1810
+ keepalive?: boolean | undefined;
1811
+ redirect?: import("undici-types").RequestRedirect | undefined;
1812
+ integrity?: string | undefined;
1813
+ signal?: (AbortSignal | null) | undefined;
1814
+ credentials?: import("undici-types").RequestCredentials | undefined;
1815
+ mode?: import("undici-types").RequestMode | undefined;
1816
+ referrer?: string | undefined;
1817
+ referrerPolicy?: import("undici-types").ReferrerPolicy | undefined;
1818
+ window?: null | undefined;
1819
+ dispatcher?: import("undici-types").Dispatcher | undefined;
1820
+ duplex?: import("undici-types").RequestDuplex | undefined;
1821
+ 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;
1822
+ onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise<Response | void | import("@better-fetch/fetch").ResponseContext> | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined;
1823
+ onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext<any>) => Promise<void> | void) | undefined;
1824
+ onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise<void> | void) | undefined;
1825
+ onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise<void> | void) | undefined;
1826
+ hookOptions?: {
1827
+ cloneResponse?: boolean;
1828
+ } | undefined;
1829
+ timeout?: number | undefined;
1830
+ customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined;
1831
+ plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined;
1832
+ baseURL?: string | undefined;
1833
+ throw?: boolean | undefined;
1834
+ auth?: ({
1835
+ type: "Bearer";
1836
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
1837
+ } | {
1838
+ type: "Basic";
1839
+ username: string | (() => string | undefined) | undefined;
1840
+ password: string | (() => string | undefined) | undefined;
1841
+ } | {
1842
+ type: "Custom";
1843
+ prefix: string | (() => string | undefined) | undefined;
1844
+ value: string | (() => string | undefined) | undefined;
1845
+ }) | undefined;
1846
+ body?: (Partial<{
1847
+ email: string;
1848
+ redirectTo?: string | undefined;
1849
+ }> & Record<string, any>) | undefined;
1850
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
1851
+ params?: Record<string, any> | undefined;
1852
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
1853
+ retry?: import("@better-fetch/fetch").RetryOptions | undefined;
1854
+ retryAttempt?: number | undefined;
1855
+ output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1856
+ errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined;
1857
+ disableValidation?: boolean | undefined;
1858
+ }>(data_0: import("better-auth").Prettify<{
1859
+ email: string;
1860
+ redirectTo?: string | undefined;
1861
+ } & {
1862
+ fetchOptions?: FetchOptions | undefined;
1863
+ }>, data_1?: FetchOptions | undefined) => Promise<import("@better-fetch/fetch").BetterFetchResponse<{
1864
+ status: boolean;
1865
+ }, {
1866
+ code?: string;
1867
+ message?: string;
1868
+ }, FetchOptions["throw"] extends true ? true : false>>;
1869
+ } & {
1870
+ resetPassword: {
1871
+ ":token": <FetchOptions extends {
1872
+ method?: string | undefined;
1873
+ headers?: any;
1874
+ keepalive?: boolean | undefined;
1875
+ redirect?: import("undici-types").RequestRedirect | undefined;
1876
+ integrity?: string | undefined;
1877
+ signal?: (AbortSignal | null) | undefined;
1878
+ credentials?: import("undici-types").RequestCredentials | undefined;
1879
+ mode?: import("undici-types").RequestMode | undefined;
1880
+ referrer?: string | undefined;
1881
+ referrerPolicy?: import("undici-types").ReferrerPolicy | undefined;
1882
+ window?: null | undefined;
1883
+ dispatcher?: import("undici-types").Dispatcher | undefined;
1884
+ duplex?: import("undici-types").RequestDuplex | undefined;
1885
+ 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;
1886
+ onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise<Response | void | import("@better-fetch/fetch").ResponseContext> | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined;
1887
+ onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext<any>) => Promise<void> | void) | undefined;
1888
+ onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise<void> | void) | undefined;
1889
+ onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise<void> | void) | undefined;
1890
+ hookOptions?: {
1891
+ cloneResponse?: boolean;
1892
+ } | undefined;
1893
+ timeout?: number | undefined;
1894
+ customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined;
1895
+ plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined;
1896
+ baseURL?: string | undefined;
1897
+ throw?: boolean | undefined;
1898
+ auth?: ({
1899
+ type: "Bearer";
1900
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
1901
+ } | {
1902
+ type: "Basic";
1903
+ username: string | (() => string | undefined) | undefined;
1904
+ password: string | (() => string | undefined) | undefined;
1905
+ } | {
1906
+ type: "Custom";
1907
+ prefix: string | (() => string | undefined) | undefined;
1908
+ value: string | (() => string | undefined) | undefined;
1909
+ }) | undefined;
1910
+ body?: undefined;
1911
+ query?: (Partial<{
1912
+ callbackURL: string;
1913
+ }> & Record<string, any>) | undefined;
1914
+ params?: {
1915
+ token: string;
1916
+ } | undefined;
1917
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
1918
+ retry?: import("@better-fetch/fetch").RetryOptions | undefined;
1919
+ retryAttempt?: number | undefined;
1920
+ output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1921
+ errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined;
1922
+ disableValidation?: boolean | undefined;
1923
+ }>(data_0: import("better-auth").Prettify<{
1924
+ query: {
1925
+ callbackURL: string;
1926
+ };
1927
+ fetchOptions?: FetchOptions | undefined;
1928
+ }>, data_1?: FetchOptions | undefined) => Promise<import("@better-fetch/fetch").BetterFetchResponse<never, {
1929
+ code?: string;
1930
+ message?: string;
1931
+ }, FetchOptions["throw"] extends true ? true : false>>;
1932
+ };
1933
+ } & {
1934
+ revokeSession: <FetchOptions extends {
1935
+ method?: string | undefined;
1936
+ headers?: any;
1937
+ keepalive?: boolean | undefined;
1938
+ redirect?: import("undici-types").RequestRedirect | undefined;
1939
+ integrity?: string | undefined;
1940
+ signal?: (AbortSignal | null) | undefined;
1941
+ credentials?: import("undici-types").RequestCredentials | undefined;
1942
+ mode?: import("undici-types").RequestMode | undefined;
1943
+ referrer?: string | undefined;
1944
+ referrerPolicy?: import("undici-types").ReferrerPolicy | undefined;
1945
+ window?: null | undefined;
1946
+ dispatcher?: import("undici-types").Dispatcher | undefined;
1947
+ duplex?: import("undici-types").RequestDuplex | undefined;
1948
+ 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;
1949
+ onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise<Response | void | import("@better-fetch/fetch").ResponseContext> | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined;
1950
+ onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext<any>) => Promise<void> | void) | undefined;
1951
+ onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise<void> | void) | undefined;
1952
+ onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise<void> | void) | undefined;
1953
+ hookOptions?: {
1954
+ cloneResponse?: boolean;
1955
+ } | undefined;
1956
+ timeout?: number | undefined;
1957
+ customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined;
1958
+ plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined;
1959
+ baseURL?: string | undefined;
1960
+ throw?: boolean | undefined;
1961
+ auth?: ({
1962
+ type: "Bearer";
1963
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
1964
+ } | {
1965
+ type: "Basic";
1966
+ username: string | (() => string | undefined) | undefined;
1967
+ password: string | (() => string | undefined) | undefined;
1968
+ } | {
1969
+ type: "Custom";
1970
+ prefix: string | (() => string | undefined) | undefined;
1971
+ value: string | (() => string | undefined) | undefined;
1972
+ }) | undefined;
1973
+ body?: (Partial<{
1974
+ token: string;
1975
+ }> & Record<string, any>) | undefined;
1976
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
1977
+ params?: Record<string, any> | undefined;
1978
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
1979
+ retry?: import("@better-fetch/fetch").RetryOptions | undefined;
1980
+ retryAttempt?: number | undefined;
1981
+ output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1982
+ errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined;
1983
+ disableValidation?: boolean | undefined;
1984
+ }>(data_0: import("better-auth").Prettify<{
1985
+ token: string;
1986
+ } & {
1987
+ fetchOptions?: FetchOptions | undefined;
1988
+ }>, data_1?: FetchOptions | undefined) => Promise<import("@better-fetch/fetch").BetterFetchResponse<{
1989
+ status: boolean;
1990
+ }, {
1991
+ code?: string;
1992
+ message?: string;
1993
+ }, FetchOptions["throw"] extends true ? true : false>>;
1994
+ } & {
1995
+ revokeSessions: <FetchOptions extends {
1996
+ method?: string | undefined;
1997
+ headers?: any;
1998
+ keepalive?: boolean | undefined;
1999
+ redirect?: import("undici-types").RequestRedirect | undefined;
2000
+ integrity?: string | undefined;
2001
+ signal?: (AbortSignal | null) | undefined;
2002
+ credentials?: import("undici-types").RequestCredentials | undefined;
2003
+ mode?: import("undici-types").RequestMode | undefined;
2004
+ referrer?: string | undefined;
2005
+ referrerPolicy?: import("undici-types").ReferrerPolicy | undefined;
2006
+ window?: null | undefined;
2007
+ dispatcher?: import("undici-types").Dispatcher | undefined;
2008
+ duplex?: import("undici-types").RequestDuplex | undefined;
2009
+ 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;
2010
+ onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise<Response | void | import("@better-fetch/fetch").ResponseContext> | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined;
2011
+ onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext<any>) => Promise<void> | void) | undefined;
2012
+ onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise<void> | void) | undefined;
2013
+ onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise<void> | void) | undefined;
2014
+ hookOptions?: {
2015
+ cloneResponse?: boolean;
2016
+ } | undefined;
2017
+ timeout?: number | undefined;
2018
+ customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined;
2019
+ plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined;
2020
+ baseURL?: string | undefined;
2021
+ throw?: boolean | undefined;
2022
+ auth?: ({
2023
+ type: "Bearer";
2024
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
2025
+ } | {
2026
+ type: "Basic";
2027
+ username: string | (() => string | undefined) | undefined;
2028
+ password: string | (() => string | undefined) | undefined;
2029
+ } | {
2030
+ type: "Custom";
2031
+ prefix: string | (() => string | undefined) | undefined;
2032
+ value: string | (() => string | undefined) | undefined;
2033
+ }) | undefined;
2034
+ body?: undefined;
2035
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
2036
+ params?: Record<string, any> | undefined;
2037
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
2038
+ retry?: import("@better-fetch/fetch").RetryOptions | undefined;
2039
+ retryAttempt?: number | undefined;
2040
+ output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined;
2041
+ errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined;
2042
+ disableValidation?: boolean | undefined;
2043
+ }>(data_0?: import("better-auth").Prettify<{
2044
+ query?: Record<string, any> | undefined;
2045
+ fetchOptions?: FetchOptions | undefined;
2046
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<import("@better-fetch/fetch").BetterFetchResponse<{
2047
+ status: boolean;
2048
+ }, {
2049
+ code?: string;
2050
+ message?: string;
2051
+ }, FetchOptions["throw"] extends true ? true : false>>;
2052
+ } & {
2053
+ revokeOtherSessions: <FetchOptions extends {
2054
+ method?: string | undefined;
2055
+ headers?: any;
2056
+ keepalive?: boolean | undefined;
2057
+ redirect?: import("undici-types").RequestRedirect | undefined;
2058
+ integrity?: string | undefined;
2059
+ signal?: (AbortSignal | null) | undefined;
2060
+ credentials?: import("undici-types").RequestCredentials | undefined;
2061
+ mode?: import("undici-types").RequestMode | undefined;
2062
+ referrer?: string | undefined;
2063
+ referrerPolicy?: import("undici-types").ReferrerPolicy | undefined;
2064
+ window?: null | undefined;
2065
+ dispatcher?: import("undici-types").Dispatcher | undefined;
2066
+ duplex?: import("undici-types").RequestDuplex | undefined;
2067
+ 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;
2068
+ onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise<Response | void | import("@better-fetch/fetch").ResponseContext> | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined;
2069
+ onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext<any>) => Promise<void> | void) | undefined;
2070
+ onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise<void> | void) | undefined;
2071
+ onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise<void> | void) | undefined;
2072
+ hookOptions?: {
2073
+ cloneResponse?: boolean;
2074
+ } | undefined;
2075
+ timeout?: number | undefined;
2076
+ customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined;
2077
+ plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined;
2078
+ baseURL?: string | undefined;
2079
+ throw?: boolean | undefined;
2080
+ auth?: ({
2081
+ type: "Bearer";
2082
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
2083
+ } | {
2084
+ type: "Basic";
2085
+ username: string | (() => string | undefined) | undefined;
2086
+ password: string | (() => string | undefined) | undefined;
2087
+ } | {
2088
+ type: "Custom";
2089
+ prefix: string | (() => string | undefined) | undefined;
2090
+ value: string | (() => string | undefined) | undefined;
2091
+ }) | undefined;
2092
+ body?: undefined;
2093
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
2094
+ params?: Record<string, any> | undefined;
2095
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
2096
+ retry?: import("@better-fetch/fetch").RetryOptions | undefined;
2097
+ retryAttempt?: number | undefined;
2098
+ output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined;
2099
+ errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined;
2100
+ disableValidation?: boolean | undefined;
2101
+ }>(data_0?: import("better-auth").Prettify<{
2102
+ query?: Record<string, any> | undefined;
2103
+ fetchOptions?: FetchOptions | undefined;
2104
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<import("@better-fetch/fetch").BetterFetchResponse<{
2105
+ status: boolean;
2106
+ }, {
2107
+ code?: string;
2108
+ message?: string;
2109
+ }, FetchOptions["throw"] extends true ? true : false>>;
2110
+ } & {
2111
+ linkSocial: <FetchOptions extends {
2112
+ method?: string | undefined;
2113
+ headers?: any;
2114
+ keepalive?: boolean | undefined;
2115
+ redirect?: import("undici-types").RequestRedirect | undefined;
2116
+ integrity?: string | undefined;
2117
+ signal?: (AbortSignal | null) | undefined;
2118
+ credentials?: import("undici-types").RequestCredentials | undefined;
2119
+ mode?: import("undici-types").RequestMode | undefined;
2120
+ referrer?: string | undefined;
2121
+ referrerPolicy?: import("undici-types").ReferrerPolicy | undefined;
2122
+ window?: null | undefined;
2123
+ dispatcher?: import("undici-types").Dispatcher | undefined;
2124
+ duplex?: import("undici-types").RequestDuplex | undefined;
2125
+ 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;
2126
+ onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise<Response | void | import("@better-fetch/fetch").ResponseContext> | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined;
2127
+ onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext<any>) => Promise<void> | void) | undefined;
2128
+ onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise<void> | void) | undefined;
2129
+ onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise<void> | void) | undefined;
2130
+ hookOptions?: {
2131
+ cloneResponse?: boolean;
2132
+ } | undefined;
2133
+ timeout?: number | undefined;
2134
+ customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined;
2135
+ plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined;
2136
+ baseURL?: string | undefined;
2137
+ throw?: boolean | undefined;
2138
+ auth?: ({
2139
+ type: "Bearer";
2140
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
2141
+ } | {
2142
+ type: "Basic";
2143
+ username: string | (() => string | undefined) | undefined;
2144
+ password: string | (() => string | undefined) | undefined;
2145
+ } | {
2146
+ type: "Custom";
2147
+ prefix: string | (() => string | undefined) | undefined;
2148
+ value: string | (() => string | undefined) | undefined;
2149
+ }) | undefined;
2150
+ body?: (Partial<{
2151
+ provider: unknown;
2152
+ callbackURL?: string | undefined;
2153
+ idToken?: {
2154
+ token: string;
2155
+ nonce?: string | undefined;
2156
+ accessToken?: string | undefined;
2157
+ refreshToken?: string | undefined;
2158
+ scopes?: string[] | undefined;
2159
+ } | undefined;
2160
+ requestSignUp?: boolean | undefined;
2161
+ scopes?: string[] | undefined;
2162
+ errorCallbackURL?: string | undefined;
2163
+ disableRedirect?: boolean | undefined;
2164
+ }> & Record<string, any>) | undefined;
2165
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
2166
+ params?: Record<string, any> | undefined;
2167
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
2168
+ retry?: import("@better-fetch/fetch").RetryOptions | undefined;
2169
+ retryAttempt?: number | undefined;
2170
+ output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined;
2171
+ errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined;
2172
+ disableValidation?: boolean | undefined;
2173
+ }>(data_0: import("better-auth").Prettify<{
2174
+ provider: unknown;
2175
+ callbackURL?: string | undefined;
2176
+ idToken?: {
2177
+ token: string;
2178
+ nonce?: string | undefined;
2179
+ accessToken?: string | undefined;
2180
+ refreshToken?: string | undefined;
2181
+ scopes?: string[] | undefined;
2182
+ } | undefined;
2183
+ requestSignUp?: boolean | undefined;
2184
+ scopes?: string[] | undefined;
2185
+ errorCallbackURL?: string | undefined;
2186
+ disableRedirect?: boolean | undefined;
2187
+ } & {
2188
+ fetchOptions?: FetchOptions | undefined;
2189
+ }>, data_1?: FetchOptions | undefined) => Promise<import("@better-fetch/fetch").BetterFetchResponse<{
2190
+ url: string;
2191
+ redirect: boolean;
2192
+ }, {
2193
+ code?: string;
2194
+ message?: string;
2195
+ }, FetchOptions["throw"] extends true ? true : false>>;
2196
+ } & {
2197
+ listAccounts: <FetchOptions extends {
2198
+ method?: string | undefined;
2199
+ headers?: any;
2200
+ keepalive?: boolean | undefined;
2201
+ redirect?: import("undici-types").RequestRedirect | undefined;
2202
+ integrity?: string | undefined;
2203
+ signal?: (AbortSignal | null) | undefined;
2204
+ credentials?: import("undici-types").RequestCredentials | undefined;
2205
+ mode?: import("undici-types").RequestMode | undefined;
2206
+ referrer?: string | undefined;
2207
+ referrerPolicy?: import("undici-types").ReferrerPolicy | undefined;
2208
+ window?: null | undefined;
2209
+ dispatcher?: import("undici-types").Dispatcher | undefined;
2210
+ duplex?: import("undici-types").RequestDuplex | undefined;
2211
+ 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;
2212
+ onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise<Response | void | import("@better-fetch/fetch").ResponseContext> | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined;
2213
+ onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext<any>) => Promise<void> | void) | undefined;
2214
+ onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise<void> | void) | undefined;
2215
+ onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise<void> | void) | undefined;
2216
+ hookOptions?: {
2217
+ cloneResponse?: boolean;
2218
+ } | undefined;
2219
+ timeout?: number | undefined;
2220
+ customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined;
2221
+ plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined;
2222
+ baseURL?: string | undefined;
2223
+ throw?: boolean | undefined;
2224
+ auth?: ({
2225
+ type: "Bearer";
2226
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
2227
+ } | {
2228
+ type: "Basic";
2229
+ username: string | (() => string | undefined) | undefined;
2230
+ password: string | (() => string | undefined) | undefined;
2231
+ } | {
2232
+ type: "Custom";
2233
+ prefix: string | (() => string | undefined) | undefined;
2234
+ value: string | (() => string | undefined) | undefined;
2235
+ }) | undefined;
2236
+ body?: undefined;
2237
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
2238
+ params?: Record<string, any> | undefined;
2239
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
2240
+ retry?: import("@better-fetch/fetch").RetryOptions | undefined;
2241
+ retryAttempt?: number | undefined;
2242
+ output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined;
2243
+ errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined;
2244
+ disableValidation?: boolean | undefined;
2245
+ }>(data_0?: import("better-auth").Prettify<{
2246
+ query?: Record<string, any> | undefined;
2247
+ fetchOptions?: FetchOptions | undefined;
2248
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<import("@better-fetch/fetch").BetterFetchResponse<{
2249
+ id: string;
2250
+ providerId: string;
2251
+ createdAt: Date;
2252
+ updatedAt: Date;
2253
+ accountId: string;
2254
+ scopes: string[];
2255
+ }[], {
2256
+ code?: string;
2257
+ message?: string;
2258
+ }, FetchOptions["throw"] extends true ? true : false>>;
2259
+ } & {
2260
+ deleteUser: {
2261
+ callback: <FetchOptions extends {
2262
+ method?: string | undefined;
2263
+ headers?: any;
2264
+ keepalive?: boolean | undefined;
2265
+ redirect?: import("undici-types").RequestRedirect | undefined;
2266
+ integrity?: string | undefined;
2267
+ signal?: (AbortSignal | null) | undefined;
2268
+ credentials?: import("undici-types").RequestCredentials | undefined;
2269
+ mode?: import("undici-types").RequestMode | undefined;
2270
+ referrer?: string | undefined;
2271
+ referrerPolicy?: import("undici-types").ReferrerPolicy | undefined;
2272
+ window?: null | undefined;
2273
+ dispatcher?: import("undici-types").Dispatcher | undefined;
2274
+ duplex?: import("undici-types").RequestDuplex | undefined;
2275
+ 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;
2276
+ onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise<Response | void | import("@better-fetch/fetch").ResponseContext> | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined;
2277
+ onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext<any>) => Promise<void> | void) | undefined;
2278
+ onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise<void> | void) | undefined;
2279
+ onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise<void> | void) | undefined;
2280
+ hookOptions?: {
2281
+ cloneResponse?: boolean;
2282
+ } | undefined;
2283
+ timeout?: number | undefined;
2284
+ customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined;
2285
+ plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined;
2286
+ baseURL?: string | undefined;
2287
+ throw?: boolean | undefined;
2288
+ auth?: ({
2289
+ type: "Bearer";
2290
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
2291
+ } | {
2292
+ type: "Basic";
2293
+ username: string | (() => string | undefined) | undefined;
2294
+ password: string | (() => string | undefined) | undefined;
2295
+ } | {
2296
+ type: "Custom";
2297
+ prefix: string | (() => string | undefined) | undefined;
2298
+ value: string | (() => string | undefined) | undefined;
2299
+ }) | undefined;
2300
+ body?: undefined;
2301
+ query?: (Partial<{
2302
+ token: string;
2303
+ callbackURL?: string | undefined;
2304
+ }> & Record<string, any>) | undefined;
2305
+ params?: Record<string, any> | undefined;
2306
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
2307
+ retry?: import("@better-fetch/fetch").RetryOptions | undefined;
2308
+ retryAttempt?: number | undefined;
2309
+ output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined;
2310
+ errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined;
2311
+ disableValidation?: boolean | undefined;
2312
+ }>(data_0: import("better-auth").Prettify<{
2313
+ query: {
2314
+ token: string;
2315
+ callbackURL?: string | undefined;
2316
+ };
2317
+ fetchOptions?: FetchOptions | undefined;
2318
+ }>, data_1?: FetchOptions | undefined) => Promise<import("@better-fetch/fetch").BetterFetchResponse<{
2319
+ success: boolean;
2320
+ message: string;
2321
+ }, {
2322
+ code?: string;
2323
+ message?: string;
2324
+ }, FetchOptions["throw"] extends true ? true : false>>;
2325
+ };
2326
+ } & {
2327
+ unlinkAccount: <FetchOptions extends {
2328
+ method?: string | undefined;
2329
+ headers?: any;
2330
+ keepalive?: boolean | undefined;
2331
+ redirect?: import("undici-types").RequestRedirect | undefined;
2332
+ integrity?: string | undefined;
2333
+ signal?: (AbortSignal | null) | undefined;
2334
+ credentials?: import("undici-types").RequestCredentials | undefined;
2335
+ mode?: import("undici-types").RequestMode | undefined;
2336
+ referrer?: string | undefined;
2337
+ referrerPolicy?: import("undici-types").ReferrerPolicy | undefined;
2338
+ window?: null | undefined;
2339
+ dispatcher?: import("undici-types").Dispatcher | undefined;
2340
+ duplex?: import("undici-types").RequestDuplex | undefined;
2341
+ 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;
2342
+ onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise<Response | void | import("@better-fetch/fetch").ResponseContext> | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined;
2343
+ onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext<any>) => Promise<void> | void) | undefined;
2344
+ onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise<void> | void) | undefined;
2345
+ onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise<void> | void) | undefined;
2346
+ hookOptions?: {
2347
+ cloneResponse?: boolean;
2348
+ } | undefined;
2349
+ timeout?: number | undefined;
2350
+ customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined;
2351
+ plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined;
2352
+ baseURL?: string | undefined;
2353
+ throw?: boolean | undefined;
2354
+ auth?: ({
2355
+ type: "Bearer";
2356
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
2357
+ } | {
2358
+ type: "Basic";
2359
+ username: string | (() => string | undefined) | undefined;
2360
+ password: string | (() => string | undefined) | undefined;
2361
+ } | {
2362
+ type: "Custom";
2363
+ prefix: string | (() => string | undefined) | undefined;
2364
+ value: string | (() => string | undefined) | undefined;
2365
+ }) | undefined;
2366
+ body?: (Partial<{
2367
+ providerId: string;
2368
+ accountId?: string | undefined;
2369
+ }> & Record<string, any>) | undefined;
2370
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
2371
+ params?: Record<string, any> | undefined;
2372
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
2373
+ retry?: import("@better-fetch/fetch").RetryOptions | undefined;
2374
+ retryAttempt?: number | undefined;
2375
+ output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined;
2376
+ errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined;
2377
+ disableValidation?: boolean | undefined;
2378
+ }>(data_0: import("better-auth").Prettify<{
2379
+ providerId: string;
2380
+ accountId?: string | undefined;
2381
+ } & {
2382
+ fetchOptions?: FetchOptions | undefined;
2383
+ }>, data_1?: FetchOptions | undefined) => Promise<import("@better-fetch/fetch").BetterFetchResponse<{
2384
+ status: boolean;
2385
+ }, {
2386
+ code?: string;
2387
+ message?: string;
2388
+ }, FetchOptions["throw"] extends true ? true : false>>;
2389
+ } & {
2390
+ refreshToken: <FetchOptions extends {
2391
+ method?: string | undefined;
2392
+ headers?: any;
2393
+ keepalive?: boolean | undefined;
2394
+ redirect?: import("undici-types").RequestRedirect | undefined;
2395
+ integrity?: string | undefined;
2396
+ signal?: (AbortSignal | null) | undefined;
2397
+ credentials?: import("undici-types").RequestCredentials | undefined;
2398
+ mode?: import("undici-types").RequestMode | undefined;
2399
+ referrer?: string | undefined;
2400
+ referrerPolicy?: import("undici-types").ReferrerPolicy | undefined;
2401
+ window?: null | undefined;
2402
+ dispatcher?: import("undici-types").Dispatcher | undefined;
2403
+ duplex?: import("undici-types").RequestDuplex | undefined;
2404
+ 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;
2405
+ onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise<Response | void | import("@better-fetch/fetch").ResponseContext> | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined;
2406
+ onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext<any>) => Promise<void> | void) | undefined;
2407
+ onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise<void> | void) | undefined;
2408
+ onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise<void> | void) | undefined;
2409
+ hookOptions?: {
2410
+ cloneResponse?: boolean;
2411
+ } | undefined;
2412
+ timeout?: number | undefined;
2413
+ customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined;
2414
+ plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined;
2415
+ baseURL?: string | undefined;
2416
+ throw?: boolean | undefined;
2417
+ auth?: ({
2418
+ type: "Bearer";
2419
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
2420
+ } | {
2421
+ type: "Basic";
2422
+ username: string | (() => string | undefined) | undefined;
2423
+ password: string | (() => string | undefined) | undefined;
2424
+ } | {
2425
+ type: "Custom";
2426
+ prefix: string | (() => string | undefined) | undefined;
2427
+ value: string | (() => string | undefined) | undefined;
2428
+ }) | undefined;
2429
+ body?: (Partial<{
2430
+ providerId: string;
2431
+ accountId?: string | undefined;
2432
+ userId?: string | undefined;
2433
+ }> & Record<string, any>) | undefined;
2434
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
2435
+ params?: Record<string, any> | undefined;
2436
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
2437
+ retry?: import("@better-fetch/fetch").RetryOptions | undefined;
2438
+ retryAttempt?: number | undefined;
2439
+ output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined;
2440
+ errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined;
2441
+ disableValidation?: boolean | undefined;
2442
+ }>(data_0: import("better-auth").Prettify<{
2443
+ providerId: string;
2444
+ accountId?: string | undefined;
2445
+ userId?: string | undefined;
2446
+ } & {
2447
+ fetchOptions?: FetchOptions | undefined;
2448
+ }>, data_1?: FetchOptions | undefined) => Promise<import("@better-fetch/fetch").BetterFetchResponse<import("better-auth").OAuth2Tokens, {
2449
+ code?: string;
2450
+ message?: string;
2451
+ }, FetchOptions["throw"] extends true ? true : false>>;
2452
+ } & {
2453
+ getAccessToken: <FetchOptions extends {
2454
+ method?: string | undefined;
2455
+ headers?: any;
2456
+ keepalive?: boolean | undefined;
2457
+ redirect?: import("undici-types").RequestRedirect | undefined;
2458
+ integrity?: string | undefined;
2459
+ signal?: (AbortSignal | null) | undefined;
2460
+ credentials?: import("undici-types").RequestCredentials | undefined;
2461
+ mode?: import("undici-types").RequestMode | undefined;
2462
+ referrer?: string | undefined;
2463
+ referrerPolicy?: import("undici-types").ReferrerPolicy | undefined;
2464
+ window?: null | undefined;
2465
+ dispatcher?: import("undici-types").Dispatcher | undefined;
2466
+ duplex?: import("undici-types").RequestDuplex | undefined;
2467
+ 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;
2468
+ onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise<Response | void | import("@better-fetch/fetch").ResponseContext> | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined;
2469
+ onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext<any>) => Promise<void> | void) | undefined;
2470
+ onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise<void> | void) | undefined;
2471
+ onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise<void> | void) | undefined;
2472
+ hookOptions?: {
2473
+ cloneResponse?: boolean;
2474
+ } | undefined;
2475
+ timeout?: number | undefined;
2476
+ customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined;
2477
+ plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined;
2478
+ baseURL?: string | undefined;
2479
+ throw?: boolean | undefined;
2480
+ auth?: ({
2481
+ type: "Bearer";
2482
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
2483
+ } | {
2484
+ type: "Basic";
2485
+ username: string | (() => string | undefined) | undefined;
2486
+ password: string | (() => string | undefined) | undefined;
2487
+ } | {
2488
+ type: "Custom";
2489
+ prefix: string | (() => string | undefined) | undefined;
2490
+ value: string | (() => string | undefined) | undefined;
2491
+ }) | undefined;
2492
+ body?: (Partial<{
2493
+ providerId: string;
2494
+ accountId?: string | undefined;
2495
+ userId?: string | undefined;
2496
+ }> & Record<string, any>) | undefined;
2497
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
2498
+ params?: Record<string, any> | undefined;
2499
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
2500
+ retry?: import("@better-fetch/fetch").RetryOptions | undefined;
2501
+ retryAttempt?: number | undefined;
2502
+ output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined;
2503
+ errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined;
2504
+ disableValidation?: boolean | undefined;
2505
+ }>(data_0: import("better-auth").Prettify<{
2506
+ providerId: string;
2507
+ accountId?: string | undefined;
2508
+ userId?: string | undefined;
2509
+ } & {
2510
+ fetchOptions?: FetchOptions | undefined;
2511
+ }>, data_1?: FetchOptions | undefined) => Promise<import("@better-fetch/fetch").BetterFetchResponse<{
2512
+ accessToken: string;
2513
+ accessTokenExpiresAt: Date | undefined;
2514
+ scopes: string[];
2515
+ idToken: string | undefined;
2516
+ }, {
2517
+ code?: string;
2518
+ message?: string;
2519
+ }, FetchOptions["throw"] extends true ? true : false>>;
2520
+ } & {
2521
+ accountInfo: <FetchOptions extends {
2522
+ method?: string | undefined;
2523
+ headers?: any;
2524
+ keepalive?: boolean | undefined;
2525
+ redirect?: import("undici-types").RequestRedirect | undefined;
2526
+ integrity?: string | undefined;
2527
+ signal?: (AbortSignal | null) | undefined;
2528
+ credentials?: import("undici-types").RequestCredentials | undefined;
2529
+ mode?: import("undici-types").RequestMode | undefined;
2530
+ referrer?: string | undefined;
2531
+ referrerPolicy?: import("undici-types").ReferrerPolicy | undefined;
2532
+ window?: null | undefined;
2533
+ dispatcher?: import("undici-types").Dispatcher | undefined;
2534
+ duplex?: import("undici-types").RequestDuplex | undefined;
2535
+ 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;
2536
+ onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise<Response | void | import("@better-fetch/fetch").ResponseContext> | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined;
2537
+ onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext<any>) => Promise<void> | void) | undefined;
2538
+ onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise<void> | void) | undefined;
2539
+ onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise<void> | void) | undefined;
2540
+ hookOptions?: {
2541
+ cloneResponse?: boolean;
2542
+ } | undefined;
2543
+ timeout?: number | undefined;
2544
+ customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined;
2545
+ plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined;
2546
+ baseURL?: string | undefined;
2547
+ throw?: boolean | undefined;
2548
+ auth?: ({
2549
+ type: "Bearer";
2550
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
2551
+ } | {
2552
+ type: "Basic";
2553
+ username: string | (() => string | undefined) | undefined;
2554
+ password: string | (() => string | undefined) | undefined;
2555
+ } | {
2556
+ type: "Custom";
2557
+ prefix: string | (() => string | undefined) | undefined;
2558
+ value: string | (() => string | undefined) | undefined;
2559
+ }) | undefined;
2560
+ body?: (Partial<{
2561
+ accountId: string;
2562
+ }> & Record<string, any>) | undefined;
2563
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
2564
+ params?: Record<string, any> | undefined;
2565
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
2566
+ retry?: import("@better-fetch/fetch").RetryOptions | undefined;
2567
+ retryAttempt?: number | undefined;
2568
+ output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined;
2569
+ errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined;
2570
+ disableValidation?: boolean | undefined;
2571
+ }>(data_0: import("better-auth").Prettify<{
2572
+ accountId: string;
2573
+ } & {
2574
+ fetchOptions?: FetchOptions | undefined;
2575
+ }>, data_1?: FetchOptions | undefined) => Promise<import("@better-fetch/fetch").BetterFetchResponse<{
2576
+ user: import("better-auth").OAuth2UserInfo;
2577
+ data: Record<string, any>;
2578
+ }, {
2579
+ code?: string;
2580
+ message?: string;
2581
+ }, FetchOptions["throw"] extends true ? true : false>>;
2582
+ } & {
2583
+ signUp: {
2584
+ email: <FetchOptions extends {
2585
+ method?: string | undefined;
2586
+ headers?: any;
2587
+ keepalive?: boolean | undefined;
2588
+ redirect?: import("undici-types").RequestRedirect | undefined;
2589
+ integrity?: string | undefined;
2590
+ signal?: (AbortSignal | null) | undefined;
2591
+ credentials?: import("undici-types").RequestCredentials | undefined;
2592
+ mode?: import("undici-types").RequestMode | undefined;
2593
+ referrer?: string | undefined;
2594
+ referrerPolicy?: import("undici-types").ReferrerPolicy | undefined;
2595
+ window?: null | undefined;
2596
+ dispatcher?: import("undici-types").Dispatcher | undefined;
2597
+ duplex?: import("undici-types").RequestDuplex | undefined;
2598
+ 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;
2599
+ onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise<Response | void | import("@better-fetch/fetch").ResponseContext> | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined;
2600
+ onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext<any>) => Promise<void> | void) | undefined;
2601
+ onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise<void> | void) | undefined;
2602
+ onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise<void> | void) | undefined;
2603
+ hookOptions?: {
2604
+ cloneResponse?: boolean;
2605
+ } | undefined;
2606
+ timeout?: number | undefined;
2607
+ customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined;
2608
+ plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined;
2609
+ baseURL?: string | undefined;
2610
+ throw?: boolean | undefined;
2611
+ auth?: ({
2612
+ type: "Bearer";
2613
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
2614
+ } | {
2615
+ type: "Basic";
2616
+ username: string | (() => string | undefined) | undefined;
2617
+ password: string | (() => string | undefined) | undefined;
2618
+ } | {
2619
+ type: "Custom";
2620
+ prefix: string | (() => string | undefined) | undefined;
2621
+ value: string | (() => string | undefined) | undefined;
2622
+ }) | undefined;
2623
+ body?: (Partial<{
2624
+ name: string;
2625
+ email: string;
2626
+ password: string;
2627
+ image?: string;
2628
+ callbackURL?: string;
2629
+ rememberMe?: boolean;
2630
+ }> & Record<string, any>) | undefined;
2631
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
2632
+ params?: Record<string, any> | undefined;
2633
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
2634
+ retry?: import("@better-fetch/fetch").RetryOptions | undefined;
2635
+ retryAttempt?: number | undefined;
2636
+ output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined;
2637
+ errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined;
2638
+ disableValidation?: boolean | undefined;
2639
+ }>(data_0: import("better-auth").Prettify<{
2640
+ email: string;
2641
+ name: string;
2642
+ password: string;
2643
+ image?: string;
2644
+ callbackURL?: string;
2645
+ fetchOptions?: FetchOptions | undefined;
2646
+ }>, data_1?: FetchOptions | undefined) => Promise<import("@better-fetch/fetch").BetterFetchResponse<NonNullable<{
2647
+ token: null;
2648
+ user: {
2649
+ id: string;
2650
+ email: string;
2651
+ name: string;
2652
+ image: string | null | undefined;
2653
+ emailVerified: boolean;
2654
+ createdAt: Date;
2655
+ updatedAt: Date;
2656
+ };
2657
+ } | {
2658
+ token: string;
2659
+ user: {
2660
+ id: string;
2661
+ email: string;
2662
+ name: string;
2663
+ image: string | null | undefined;
2664
+ emailVerified: boolean;
2665
+ createdAt: Date;
2666
+ updatedAt: Date;
2667
+ };
2668
+ }>, {
2669
+ code?: string;
2670
+ message?: string;
2671
+ }, FetchOptions["throw"] extends true ? true : false>>;
2672
+ };
2673
+ } & {
2674
+ updateUser: <FetchOptions extends {
2675
+ method?: string | undefined;
2676
+ headers?: any;
2677
+ keepalive?: boolean | undefined;
2678
+ redirect?: import("undici-types").RequestRedirect | undefined;
2679
+ integrity?: string | undefined;
2680
+ signal?: (AbortSignal | null) | undefined;
2681
+ credentials?: import("undici-types").RequestCredentials | undefined;
2682
+ mode?: import("undici-types").RequestMode | undefined;
2683
+ referrer?: string | undefined;
2684
+ referrerPolicy?: import("undici-types").ReferrerPolicy | undefined;
2685
+ window?: null | undefined;
2686
+ dispatcher?: import("undici-types").Dispatcher | undefined;
2687
+ duplex?: import("undici-types").RequestDuplex | undefined;
2688
+ 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;
2689
+ onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise<Response | void | import("@better-fetch/fetch").ResponseContext> | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined;
2690
+ onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext<any>) => Promise<void> | void) | undefined;
2691
+ onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise<void> | void) | undefined;
2692
+ onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise<void> | void) | undefined;
2693
+ hookOptions?: {
2694
+ cloneResponse?: boolean;
2695
+ } | undefined;
2696
+ timeout?: number | undefined;
2697
+ customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined;
2698
+ plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined;
2699
+ baseURL?: string | undefined;
2700
+ throw?: boolean | undefined;
2701
+ auth?: ({
2702
+ type: "Bearer";
2703
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
2704
+ } | {
2705
+ type: "Basic";
2706
+ username: string | (() => string | undefined) | undefined;
2707
+ password: string | (() => string | undefined) | undefined;
2708
+ } | {
2709
+ type: "Custom";
2710
+ prefix: string | (() => string | undefined) | undefined;
2711
+ value: string | (() => string | undefined) | undefined;
2712
+ }) | undefined;
2713
+ body?: (Partial<Partial<{}> & {
2714
+ name?: string;
2715
+ image?: string;
2716
+ }> & Record<string, any>) | undefined;
2717
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
2718
+ params?: Record<string, any> | undefined;
2719
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
2720
+ retry?: import("@better-fetch/fetch").RetryOptions | undefined;
2721
+ retryAttempt?: number | undefined;
2722
+ output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined;
2723
+ errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined;
2724
+ disableValidation?: boolean | undefined;
2725
+ }>(data_0?: import("better-auth").Prettify<{
2726
+ image?: string | null;
2727
+ name?: string;
2728
+ fetchOptions?: FetchOptions | undefined;
2729
+ } & Partial<{}>> | undefined, data_1?: FetchOptions | undefined) => Promise<import("@better-fetch/fetch").BetterFetchResponse<{
2730
+ status: boolean;
2731
+ }, {
2732
+ code?: string;
2733
+ message?: string;
2734
+ }, FetchOptions["throw"] extends true ? true : false>>;
2735
+ } & {
2736
+ listSessions: <FetchOptions extends {
2737
+ method?: string | undefined;
2738
+ headers?: any;
2739
+ keepalive?: boolean | undefined;
2740
+ redirect?: import("undici-types").RequestRedirect | undefined;
2741
+ integrity?: string | undefined;
2742
+ signal?: (AbortSignal | null) | undefined;
2743
+ credentials?: import("undici-types").RequestCredentials | undefined;
2744
+ mode?: import("undici-types").RequestMode | undefined;
2745
+ referrer?: string | undefined;
2746
+ referrerPolicy?: import("undici-types").ReferrerPolicy | undefined;
2747
+ window?: null | undefined;
2748
+ dispatcher?: import("undici-types").Dispatcher | undefined;
2749
+ duplex?: import("undici-types").RequestDuplex | undefined;
2750
+ 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;
2751
+ onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise<Response | void | import("@better-fetch/fetch").ResponseContext> | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined;
2752
+ onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext<any>) => Promise<void> | void) | undefined;
2753
+ onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise<void> | void) | undefined;
2754
+ onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise<void> | void) | undefined;
2755
+ hookOptions?: {
2756
+ cloneResponse?: boolean;
2757
+ } | undefined;
2758
+ timeout?: number | undefined;
2759
+ customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined;
2760
+ plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined;
2761
+ baseURL?: string | undefined;
2762
+ throw?: boolean | undefined;
2763
+ auth?: ({
2764
+ type: "Bearer";
2765
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
2766
+ } | {
2767
+ type: "Basic";
2768
+ username: string | (() => string | undefined) | undefined;
2769
+ password: string | (() => string | undefined) | undefined;
2770
+ } | {
2771
+ type: "Custom";
2772
+ prefix: string | (() => string | undefined) | undefined;
2773
+ value: string | (() => string | undefined) | undefined;
2774
+ }) | undefined;
2775
+ body?: undefined;
2776
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
2777
+ params?: Record<string, any> | undefined;
2778
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
2779
+ retry?: import("@better-fetch/fetch").RetryOptions | undefined;
2780
+ retryAttempt?: number | undefined;
2781
+ output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined;
2782
+ errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined;
2783
+ disableValidation?: boolean | undefined;
2784
+ }>(data_0?: import("better-auth").Prettify<{
2785
+ query?: Record<string, any> | undefined;
2786
+ fetchOptions?: FetchOptions | undefined;
2787
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<import("@better-fetch/fetch").BetterFetchResponse<import("better-auth").Prettify<{
2788
+ id: string;
2789
+ createdAt: Date;
2790
+ updatedAt: Date;
2791
+ userId: string;
2792
+ expiresAt: Date;
2793
+ token: string;
2794
+ ipAddress?: string | null | undefined | undefined;
2795
+ userAgent?: string | null | undefined | undefined;
2796
+ }>[], {
2797
+ code?: string;
2798
+ message?: string;
2799
+ }, FetchOptions["throw"] extends true ? true : false>>;
2800
+ } & {
2801
+ getSession: <FetchOptions extends {
2802
+ method?: string | undefined;
2803
+ headers?: any;
2804
+ keepalive?: boolean | undefined;
2805
+ redirect?: import("undici-types").RequestRedirect | undefined;
2806
+ integrity?: string | undefined;
2807
+ signal?: (AbortSignal | null) | undefined;
2808
+ credentials?: import("undici-types").RequestCredentials | undefined;
2809
+ mode?: import("undici-types").RequestMode | undefined;
2810
+ referrer?: string | undefined;
2811
+ referrerPolicy?: import("undici-types").ReferrerPolicy | undefined;
2812
+ window?: null | undefined;
2813
+ dispatcher?: import("undici-types").Dispatcher | undefined;
2814
+ duplex?: import("undici-types").RequestDuplex | undefined;
2815
+ 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;
2816
+ onResponse?: ((context: import("@better-fetch/fetch").ResponseContext) => Promise<Response | void | import("@better-fetch/fetch").ResponseContext> | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined;
2817
+ onSuccess?: ((context: import("@better-fetch/fetch").SuccessContext<any>) => Promise<void> | void) | undefined;
2818
+ onError?: ((context: import("@better-fetch/fetch").ErrorContext) => Promise<void> | void) | undefined;
2819
+ onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise<void> | void) | undefined;
2820
+ hookOptions?: {
2821
+ cloneResponse?: boolean;
2822
+ } | undefined;
2823
+ timeout?: number | undefined;
2824
+ customFetchImpl?: import("@better-fetch/fetch").FetchEsque | undefined;
2825
+ plugins?: import("@better-fetch/fetch").BetterFetchPlugin[] | undefined;
2826
+ baseURL?: string | undefined;
2827
+ throw?: boolean | undefined;
2828
+ auth?: ({
2829
+ type: "Bearer";
2830
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
2831
+ } | {
2832
+ type: "Basic";
2833
+ username: string | (() => string | undefined) | undefined;
2834
+ password: string | (() => string | undefined) | undefined;
2835
+ } | {
2836
+ type: "Custom";
2837
+ prefix: string | (() => string | undefined) | undefined;
2838
+ value: string | (() => string | undefined) | undefined;
2839
+ }) | undefined;
2840
+ body?: undefined;
2841
+ query?: (Partial<{
2842
+ disableCookieCache?: string | boolean | undefined;
2843
+ disableRefresh?: boolean | undefined;
2844
+ }> & Record<string, any>) | undefined;
2845
+ params?: Record<string, any> | undefined;
2846
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
2847
+ retry?: import("@better-fetch/fetch").RetryOptions | undefined;
2848
+ retryAttempt?: number | undefined;
2849
+ output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined;
2850
+ errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined;
2851
+ disableValidation?: boolean | undefined;
2852
+ }>(data_0?: import("better-auth").Prettify<{
2853
+ query?: {
2854
+ disableCookieCache?: string | boolean | undefined;
2855
+ disableRefresh?: boolean | undefined;
2856
+ } | undefined;
2857
+ fetchOptions?: FetchOptions | undefined;
2858
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<import("@better-fetch/fetch").BetterFetchResponse<{
2859
+ user: {
2860
+ id: string;
2861
+ createdAt: Date;
2862
+ updatedAt: Date;
2863
+ email: string;
2864
+ emailVerified: boolean;
2865
+ name: string;
2866
+ image?: string | null | undefined;
2867
+ };
2868
+ session: {
2869
+ id: string;
2870
+ createdAt: Date;
2871
+ updatedAt: Date;
2872
+ userId: string;
2873
+ expiresAt: Date;
2874
+ token: string;
2875
+ ipAddress?: string | null | undefined;
2876
+ userAgent?: string | null | undefined;
2877
+ };
2878
+ products: {
2879
+ subscriptions: {
2880
+ id: string;
2881
+ productId: string;
2882
+ productName: string;
2883
+ priceId: string;
2884
+ priceName: string | null;
2885
+ firstBilledAt: Date | null;
2886
+ previouslyBilledAt: Date | null;
2887
+ nextBilledAt: Date | null;
2888
+ billingFrequency: number;
2889
+ billingInterval: "day" | "week" | "month" | "year";
2890
+ canceledAt: Date | null;
2891
+ status: "active" | "trialing" | "inactive";
2892
+ createdAt: Date;
2893
+ }[];
2894
+ transactions: {
2895
+ id: string;
2896
+ priceId: string;
2897
+ productId: string;
2898
+ productName: string;
2899
+ priceName: string | null;
2900
+ createdAt: Date;
2901
+ status: "canceled" | "past_due" | "draft" | "ready" | "billed" | "paid" | "completed";
2902
+ adjustmentId: string | null;
2903
+ }[];
2904
+ };
2905
+ customer: {
2906
+ id: string;
2907
+ };
2908
+ }, {
2909
+ code?: string;
2910
+ message?: string;
2911
+ }, FetchOptions["throw"] extends true ? true : false>>;
2912
+ } & {
2913
+ signIn: {
2914
+ passkey: (opts?: {
2915
+ autoFill?: boolean;
2916
+ email?: string;
2917
+ fetchOptions?: import("@better-fetch/fetch").BetterFetchOption;
2918
+ }, options?: import("@better-fetch/fetch").BetterFetchOption) => Promise<{
2919
+ data: null;
2920
+ error: {
2921
+ message?: string | undefined;
2922
+ status: number;
2923
+ statusText: string;
2924
+ };
2925
+ } | {
2926
+ data: {
2927
+ session: import("inspector").Session;
2928
+ user: import("better-auth").User;
2929
+ };
2930
+ error: null;
2931
+ } | {
2932
+ data: null;
2933
+ error: {
2934
+ code: string;
2935
+ message: string;
2936
+ status: number;
2937
+ statusText: string;
2938
+ };
2939
+ }>;
2940
+ };
2941
+ passkey: {
2942
+ addPasskey: (opts?: {
2943
+ fetchOptions?: import("@better-fetch/fetch").BetterFetchOption;
2944
+ name?: string;
2945
+ authenticatorAttachment?: "platform" | "cross-platform";
2946
+ useAutoRegister?: boolean;
2947
+ }, fetchOpts?: import("@better-fetch/fetch").BetterFetchOption) => Promise<{
2948
+ data: null;
2949
+ error: {
2950
+ message?: string | undefined;
2951
+ status: number;
2952
+ statusText: string;
2953
+ };
2954
+ } | {
2955
+ data: null;
2956
+ error: {
2957
+ code: string;
2958
+ message: string;
2959
+ status: number;
2960
+ statusText: string;
2961
+ };
2962
+ } | undefined>;
2963
+ };
2964
+ $Infer: {
2965
+ Passkey: import("better-auth/plugins/passkey").Passkey;
2966
+ };
2967
+ } & {
2968
+ useSession: () => {
2969
+ data: {
2970
+ user: {
2971
+ id: string;
2972
+ createdAt: Date;
2973
+ updatedAt: Date;
2974
+ email: string;
2975
+ emailVerified: boolean;
2976
+ name: string;
2977
+ image?: string | null | undefined;
2978
+ };
2979
+ session: {
2980
+ id: string;
2981
+ createdAt: Date;
2982
+ updatedAt: Date;
2983
+ userId: string;
2984
+ expiresAt: Date;
2985
+ token: string;
2986
+ ipAddress?: string | null | undefined;
2987
+ userAgent?: string | null | undefined;
2988
+ };
2989
+ products: {
2990
+ subscriptions: {
2991
+ id: string;
2992
+ productId: string;
2993
+ productName: string;
2994
+ priceId: string;
2995
+ priceName: string | null;
2996
+ firstBilledAt: Date | null;
2997
+ previouslyBilledAt: Date | null;
2998
+ nextBilledAt: Date | null;
2999
+ billingFrequency: number;
3000
+ billingInterval: "day" | "week" | "month" | "year";
3001
+ canceledAt: Date | null;
3002
+ status: "active" | "trialing" | "inactive";
3003
+ createdAt: Date;
3004
+ }[];
3005
+ transactions: {
3006
+ id: string;
3007
+ priceId: string;
3008
+ productId: string;
3009
+ productName: string;
3010
+ priceName: string | null;
3011
+ createdAt: Date;
3012
+ status: "canceled" | "past_due" | "draft" | "ready" | "billed" | "paid" | "completed";
3013
+ adjustmentId: string | null;
3014
+ }[];
3015
+ };
3016
+ customer: {
3017
+ id: string;
3018
+ };
3019
+ } | null;
3020
+ isPending: boolean;
3021
+ error: import("@better-fetch/fetch").BetterFetchError | null;
3022
+ refetch: (queryParams?: {
3023
+ query?: import("better-auth").SessionQueryParams;
3024
+ }) => void;
3025
+ };
3026
+ $Infer: {
3027
+ Session: {
3028
+ user: {
3029
+ id: string;
3030
+ createdAt: Date;
3031
+ updatedAt: Date;
3032
+ email: string;
3033
+ emailVerified: boolean;
3034
+ name: string;
3035
+ image?: string | null | undefined;
3036
+ };
3037
+ session: {
3038
+ id: string;
3039
+ createdAt: Date;
3040
+ updatedAt: Date;
3041
+ userId: string;
3042
+ expiresAt: Date;
3043
+ token: string;
3044
+ ipAddress?: string | null | undefined;
3045
+ userAgent?: string | null | undefined;
3046
+ };
3047
+ products: {
3048
+ subscriptions: {
3049
+ id: string;
3050
+ productId: string;
3051
+ productName: string;
3052
+ priceId: string;
3053
+ priceName: string | null;
3054
+ firstBilledAt: Date | null;
3055
+ previouslyBilledAt: Date | null;
3056
+ nextBilledAt: Date | null;
3057
+ billingFrequency: number;
3058
+ billingInterval: "day" | "week" | "month" | "year";
3059
+ canceledAt: Date | null;
3060
+ status: "active" | "trialing" | "inactive";
3061
+ createdAt: Date;
3062
+ }[];
3063
+ transactions: {
3064
+ id: string;
3065
+ priceId: string;
3066
+ productId: string;
3067
+ productName: string;
3068
+ priceName: string | null;
3069
+ createdAt: Date;
3070
+ status: "canceled" | "past_due" | "draft" | "ready" | "billed" | "paid" | "completed";
3071
+ adjustmentId: string | null;
3072
+ }[];
3073
+ };
3074
+ customer: {
3075
+ id: string;
3076
+ };
3077
+ };
3078
+ };
3079
+ $fetch: import("@better-fetch/fetch").BetterFetch<{
3080
+ plugins: (import("@better-fetch/fetch").BetterFetchPlugin | {
3081
+ id: string;
3082
+ name: string;
3083
+ hooks: {
3084
+ onSuccess: ((context: import("@better-fetch/fetch").SuccessContext<any>) => Promise<void> | void) | undefined;
3085
+ onError: ((context: import("@better-fetch/fetch").ErrorContext) => Promise<void> | void) | undefined;
3086
+ 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;
3087
+ onResponse: ((context: import("@better-fetch/fetch").ResponseContext) => Promise<Response | void | import("@better-fetch/fetch").ResponseContext> | Response | import("@better-fetch/fetch").ResponseContext | void) | undefined;
3088
+ };
3089
+ } | {
3090
+ id: string;
3091
+ name: string;
3092
+ hooks: {
3093
+ onSuccess(context: import("@better-fetch/fetch").SuccessContext<any>): void;
3094
+ };
3095
+ })[];
3096
+ method: string;
3097
+ headers?: (HeadersInit & (HeadersInit | {
3098
+ accept: "application/json" | "text/plain" | "application/octet-stream";
3099
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
3100
+ authorization: "Bearer" | "Basic";
3101
+ })) | undefined;
3102
+ cache?: RequestCache | undefined;
3103
+ credentials?: RequestCredentials;
3104
+ integrity?: string | undefined;
3105
+ keepalive?: boolean | undefined;
3106
+ mode?: RequestMode | undefined;
3107
+ priority?: RequestPriority | undefined;
3108
+ redirect?: RequestRedirect | undefined;
3109
+ referrer?: string | undefined;
3110
+ referrerPolicy?: ReferrerPolicy | undefined;
3111
+ signal?: (AbortSignal | null) | undefined;
3112
+ window?: null | undefined;
3113
+ onRetry?: ((response: import("@better-fetch/fetch").ResponseContext) => Promise<void> | void) | undefined;
3114
+ hookOptions?: {
3115
+ cloneResponse?: boolean;
3116
+ } | undefined;
3117
+ timeout?: number | undefined;
3118
+ customFetchImpl: import("@better-fetch/fetch").FetchEsque;
3119
+ baseURL: string;
3120
+ throw?: boolean | undefined;
3121
+ auth?: ({
3122
+ type: "Bearer";
3123
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
3124
+ } | {
3125
+ type: "Basic";
3126
+ username: string | (() => string | undefined) | undefined;
3127
+ password: string | (() => string | undefined) | undefined;
3128
+ } | {
3129
+ type: "Custom";
3130
+ prefix: string | (() => string | undefined) | undefined;
3131
+ value: string | (() => string | undefined) | undefined;
3132
+ }) | undefined;
3133
+ body?: any;
3134
+ query?: any;
3135
+ params?: any;
3136
+ duplex?: "full" | "half" | undefined;
3137
+ jsonParser: (text: string) => Promise<any> | any;
3138
+ retry?: import("@better-fetch/fetch").RetryOptions | undefined;
3139
+ retryAttempt?: number | undefined;
3140
+ output?: (import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File) | undefined;
3141
+ errorSchema?: import("@better-fetch/fetch").StandardSchemaV1 | undefined;
3142
+ disableValidation?: boolean | undefined;
3143
+ }, unknown, unknown, {}>;
3144
+ $store: {
3145
+ notify: (signal?: Omit<string, "$sessionSignal"> | "$sessionSignal") => void;
3146
+ listen: (signal: Omit<string, "$sessionSignal"> | "$sessionSignal", listener: (value: boolean, oldValue?: boolean | undefined) => void) => void;
3147
+ atoms: Record<string, import("nanostores").WritableAtom<any>>;
3148
+ };
3149
+ $ERROR_CODES: {
3150
+ USER_NOT_FOUND: string;
3151
+ FAILED_TO_CREATE_USER: string;
3152
+ FAILED_TO_CREATE_SESSION: string;
3153
+ FAILED_TO_UPDATE_USER: string;
3154
+ FAILED_TO_GET_SESSION: string;
3155
+ INVALID_PASSWORD: string;
3156
+ INVALID_EMAIL: string;
3157
+ INVALID_EMAIL_OR_PASSWORD: string;
3158
+ SOCIAL_ACCOUNT_ALREADY_LINKED: string;
3159
+ PROVIDER_NOT_FOUND: string;
3160
+ INVALID_TOKEN: string;
3161
+ ID_TOKEN_NOT_SUPPORTED: string;
3162
+ FAILED_TO_GET_USER_INFO: string;
3163
+ USER_EMAIL_NOT_FOUND: string;
3164
+ EMAIL_NOT_VERIFIED: string;
3165
+ PASSWORD_TOO_SHORT: string;
3166
+ PASSWORD_TOO_LONG: string;
3167
+ USER_ALREADY_EXISTS: string;
3168
+ EMAIL_CAN_NOT_BE_UPDATED: string;
3169
+ CREDENTIAL_ACCOUNT_NOT_FOUND: string;
3170
+ SESSION_EXPIRED: string;
3171
+ FAILED_TO_UNLINK_LAST_ACCOUNT: string;
3172
+ ACCOUNT_NOT_FOUND: string;
3173
+ USER_ALREADY_HAS_PASSWORD: string;
3174
+ };
3175
+ };
3176
+ export type CheckoutClient = ReturnType<typeof hc<CheckoutRouter>>;
3177
+ export declare function makeCheckoutClient(baseURL: string, options?: ClientRequestOptions): CheckoutClient;
3178
+ export type AppClient = ReturnType<typeof hc<AppRouter>>;
3179
+ export declare function makeAppClient(baseURL: string, options?: ClientRequestOptions): AppClient;
3180
+ export type PublicClient = ReturnType<typeof hc<PublicRouter>>;
3181
+ export declare function makePublicClient(baseURL: string, options?: ClientRequestOptions): PublicClient;