@pelatform/starter 0.1.5

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,4019 @@
1
+ import { C as Config, A as AuthClient, a as AuthQueryOptions, b as AnyAuthClient, N as NonThrowableResult, T as ThrowableResult, B as BetterFetchRequest, S as Session, U as User, D as DialogComponentProps, c as CardComponentProps, I as ImageOptions, F as FieldType, P as PasswordValidation, R as Refetch, d as CardClassNames, e as ApiKey, f as PathConfig, g as Provider, h as Profile, i as AvatarProps, j as ProviderIcon, V as ViewProps } from './ui-DhgTAR3u.js';
2
+ import * as react_jsx_runtime from 'react/jsx-runtime';
3
+ import * as react from 'react';
4
+ import { ReactNode, CSSProperties, ComponentProps, PropsWithChildren } from 'react';
5
+ import * as _better_fetch_fetch from '@better-fetch/fetch';
6
+ import * as better_auth_client_plugins from 'better-auth/client/plugins';
7
+ import * as _pelatform_ui_re_tanstack_query from '@pelatform/ui/re/tanstack-query';
8
+ import { AnyUseQueryOptions, QueryKey } from '@pelatform/ui/re/tanstack-query';
9
+ import * as better_auth from 'better-auth';
10
+ import { Account } from 'better-auth';
11
+ import { BetterFetchOption } from 'better-auth/react';
12
+ import * as _tanstack_query_core from '@tanstack/query-core';
13
+ import * as node_modules__better_auth_passkey_dist_index_BosVYrMJ_mjs from 'node_modules/@better-auth/passkey/dist/index-BosVYrMJ.mjs';
14
+ import { Badge, Button, Input } from '@pelatform/ui/default';
15
+ import { MenuItem } from '@pelatform/ui';
16
+ import { NavItem, LanguageSwitcherProps } from '@pelatform/ui/components';
17
+ import { LucideIcon } from 'lucide-react';
18
+ import 'node_modules/better-auth/dist/index-BLP8lbCx.mjs';
19
+ import 'node_modules/better-auth/dist/index-CfImj7fH.mjs';
20
+ import '@simplewebauthn/server';
21
+ import 'better-auth/plugins/organization';
22
+
23
+ /**
24
+ * Hook to access configuration in client components
25
+ * Must be used within a ConfigProvider
26
+ *
27
+ * @returns The configuration object with authClient
28
+ * @throws Error if used outside of ConfigProvider
29
+ *
30
+ * @example
31
+ * ```tsx
32
+ * 'use client'
33
+ *
34
+ * import { useConfig } from '@pelatform/starter'
35
+ *
36
+ * export function MyComponent() {
37
+ * const config = useConfig()
38
+ *
39
+ * return <div>{config.app.name}</div>
40
+ * }
41
+ * ```
42
+ */
43
+ declare function useConfig(): Config & {
44
+ authClient: AuthClient;
45
+ };
46
+
47
+ declare const QueryContext: react.Context<AuthQueryOptions>;
48
+ /**
49
+ * React Context for storing configuration in client components
50
+ */
51
+ declare const ConfigContext: react.Context<(Config & {
52
+ authClient: AuthClient;
53
+ }) | null>;
54
+ /**
55
+ * Props for the ConfigProvider component
56
+ */
57
+ type ConfigProviderProps = {
58
+ /** The configuration object to provide to all child components (can be partial, can have extra properties) */
59
+ config: Partial<Config> | Record<string, any>;
60
+ /** AuthClient instance to provide to all child components */
61
+ authClient: AnyAuthClient;
62
+ /** Child components that can access the configuration */
63
+ children: ReactNode;
64
+ } & Partial<AuthQueryOptions>;
65
+ /**
66
+ * Provider component that makes configuration available to all client components
67
+ * This should be wrapped around your application in the root layout
68
+ *
69
+ * @param props - Component props
70
+ * @param props.config - The configuration object to provide (can be partial, will merge with defaults)
71
+ * @param props.authClient - The Better Auth client instance
72
+ * @param props.children - Child components
73
+ *
74
+ * @example
75
+ * ```tsx
76
+ * // app/layout.tsx
77
+ * import { ConfigProvider } from '@pelatform/starter'
78
+ * import { authClient } from '@repo/auth/client'
79
+ * import { config } from '@repo/config'
80
+ *
81
+ * export default function RootLayout({ children }) {
82
+ * return (
83
+ * <html>
84
+ * <body>
85
+ * <ConfigProvider config={config} authClient={authClient}>
86
+ * {children}
87
+ * </ConfigProvider>
88
+ * </body>
89
+ * </html>
90
+ * )
91
+ * }
92
+ * ```
93
+ */
94
+ declare function ConfigProvider({ config, authClient, children, ...props }: ConfigProviderProps): react_jsx_runtime.JSX.Element;
95
+
96
+ declare function useAccountInfo(params: Parameters<AuthClient['accountInfo']>[0], options?: Partial<AnyUseQueryOptions>): _pelatform_ui_re_tanstack_query.UseQueryResult<{
97
+ user: better_auth.OAuth2UserInfo;
98
+ data: Record<string, any>;
99
+ }, Error>;
100
+ declare function useListAccounts(options?: Partial<AnyUseQueryOptions>): _pelatform_ui_re_tanstack_query.UseQueryResult<{
101
+ id: string;
102
+ providerId: string;
103
+ createdAt: Date;
104
+ updatedAt: Date;
105
+ accountId: string;
106
+ userId: string;
107
+ scopes: string[];
108
+ }[], Error>;
109
+ declare function useUnlinkAccount(options?: Partial<AuthQueryOptions>): {
110
+ mutate: _pelatform_ui_re_tanstack_query.UseMutateFunction<NonThrowableResult | ThrowableResult, Error, better_auth_client_plugins.Prettify<{
111
+ providerId: string;
112
+ accountId?: string | undefined;
113
+ } & {
114
+ fetchOptions?: better_auth.ClientFetchOption<Partial<{
115
+ providerId: string;
116
+ accountId?: string | undefined;
117
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
118
+ }>, {
119
+ previousData: {};
120
+ } | undefined>;
121
+ mutateAsync: {
122
+ (params: Omit<better_auth_client_plugins.Prettify<{
123
+ providerId: string;
124
+ accountId?: string | undefined;
125
+ } & {
126
+ fetchOptions?: better_auth.ClientFetchOption<Partial<{
127
+ providerId: string;
128
+ accountId?: string | undefined;
129
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
130
+ }>, "fetchOptions"> & {
131
+ fetchOptions?: {
132
+ throw?: true;
133
+ } | undefined;
134
+ }): Promise<ThrowableResult>;
135
+ (params: Omit<better_auth_client_plugins.Prettify<{
136
+ providerId: string;
137
+ accountId?: string | undefined;
138
+ } & {
139
+ fetchOptions?: better_auth.ClientFetchOption<Partial<{
140
+ providerId: string;
141
+ accountId?: string | undefined;
142
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
143
+ }>, "fetchOptions"> & {
144
+ fetchOptions?: _better_fetch_fetch.BetterFetchOption;
145
+ }): Promise<NonThrowableResult>;
146
+ };
147
+ isPending: boolean;
148
+ error: Error | null;
149
+ data: undefined;
150
+ variables: undefined;
151
+ isError: false;
152
+ isIdle: true;
153
+ isSuccess: false;
154
+ status: "idle";
155
+ reset: () => void;
156
+ context: {
157
+ previousData: {};
158
+ } | undefined;
159
+ failureCount: number;
160
+ failureReason: Error | null;
161
+ isPaused: boolean;
162
+ submittedAt: number;
163
+ } | {
164
+ mutate: _pelatform_ui_re_tanstack_query.UseMutateFunction<NonThrowableResult | ThrowableResult, Error, better_auth_client_plugins.Prettify<{
165
+ providerId: string;
166
+ accountId?: string | undefined;
167
+ } & {
168
+ fetchOptions?: better_auth.ClientFetchOption<Partial<{
169
+ providerId: string;
170
+ accountId?: string | undefined;
171
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
172
+ }>, {
173
+ previousData: {};
174
+ } | undefined>;
175
+ mutateAsync: {
176
+ (params: Omit<better_auth_client_plugins.Prettify<{
177
+ providerId: string;
178
+ accountId?: string | undefined;
179
+ } & {
180
+ fetchOptions?: better_auth.ClientFetchOption<Partial<{
181
+ providerId: string;
182
+ accountId?: string | undefined;
183
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
184
+ }>, "fetchOptions"> & {
185
+ fetchOptions?: {
186
+ throw?: true;
187
+ } | undefined;
188
+ }): Promise<ThrowableResult>;
189
+ (params: Omit<better_auth_client_plugins.Prettify<{
190
+ providerId: string;
191
+ accountId?: string | undefined;
192
+ } & {
193
+ fetchOptions?: better_auth.ClientFetchOption<Partial<{
194
+ providerId: string;
195
+ accountId?: string | undefined;
196
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
197
+ }>, "fetchOptions"> & {
198
+ fetchOptions?: _better_fetch_fetch.BetterFetchOption;
199
+ }): Promise<NonThrowableResult>;
200
+ };
201
+ isPending: boolean;
202
+ error: Error | null;
203
+ data: undefined;
204
+ variables: better_auth_client_plugins.Prettify<{
205
+ providerId: string;
206
+ accountId?: string | undefined;
207
+ } & {
208
+ fetchOptions?: better_auth.ClientFetchOption<Partial<{
209
+ providerId: string;
210
+ accountId?: string | undefined;
211
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
212
+ }>;
213
+ isError: false;
214
+ isIdle: false;
215
+ isSuccess: false;
216
+ status: "pending";
217
+ reset: () => void;
218
+ context: {
219
+ previousData: {};
220
+ } | undefined;
221
+ failureCount: number;
222
+ failureReason: Error | null;
223
+ isPaused: boolean;
224
+ submittedAt: number;
225
+ } | {
226
+ mutate: _pelatform_ui_re_tanstack_query.UseMutateFunction<NonThrowableResult | ThrowableResult, Error, better_auth_client_plugins.Prettify<{
227
+ providerId: string;
228
+ accountId?: string | undefined;
229
+ } & {
230
+ fetchOptions?: better_auth.ClientFetchOption<Partial<{
231
+ providerId: string;
232
+ accountId?: string | undefined;
233
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
234
+ }>, {
235
+ previousData: {};
236
+ } | undefined>;
237
+ mutateAsync: {
238
+ (params: Omit<better_auth_client_plugins.Prettify<{
239
+ providerId: string;
240
+ accountId?: string | undefined;
241
+ } & {
242
+ fetchOptions?: better_auth.ClientFetchOption<Partial<{
243
+ providerId: string;
244
+ accountId?: string | undefined;
245
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
246
+ }>, "fetchOptions"> & {
247
+ fetchOptions?: {
248
+ throw?: true;
249
+ } | undefined;
250
+ }): Promise<ThrowableResult>;
251
+ (params: Omit<better_auth_client_plugins.Prettify<{
252
+ providerId: string;
253
+ accountId?: string | undefined;
254
+ } & {
255
+ fetchOptions?: better_auth.ClientFetchOption<Partial<{
256
+ providerId: string;
257
+ accountId?: string | undefined;
258
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
259
+ }>, "fetchOptions"> & {
260
+ fetchOptions?: _better_fetch_fetch.BetterFetchOption;
261
+ }): Promise<NonThrowableResult>;
262
+ };
263
+ isPending: boolean;
264
+ error: Error | null;
265
+ data: undefined;
266
+ variables: better_auth_client_plugins.Prettify<{
267
+ providerId: string;
268
+ accountId?: string | undefined;
269
+ } & {
270
+ fetchOptions?: better_auth.ClientFetchOption<Partial<{
271
+ providerId: string;
272
+ accountId?: string | undefined;
273
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
274
+ }>;
275
+ isError: true;
276
+ isIdle: false;
277
+ isSuccess: false;
278
+ status: "error";
279
+ reset: () => void;
280
+ context: {
281
+ previousData: {};
282
+ } | undefined;
283
+ failureCount: number;
284
+ failureReason: Error | null;
285
+ isPaused: boolean;
286
+ submittedAt: number;
287
+ } | {
288
+ mutate: _pelatform_ui_re_tanstack_query.UseMutateFunction<NonThrowableResult | ThrowableResult, Error, better_auth_client_plugins.Prettify<{
289
+ providerId: string;
290
+ accountId?: string | undefined;
291
+ } & {
292
+ fetchOptions?: better_auth.ClientFetchOption<Partial<{
293
+ providerId: string;
294
+ accountId?: string | undefined;
295
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
296
+ }>, {
297
+ previousData: {};
298
+ } | undefined>;
299
+ mutateAsync: {
300
+ (params: Omit<better_auth_client_plugins.Prettify<{
301
+ providerId: string;
302
+ accountId?: string | undefined;
303
+ } & {
304
+ fetchOptions?: better_auth.ClientFetchOption<Partial<{
305
+ providerId: string;
306
+ accountId?: string | undefined;
307
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
308
+ }>, "fetchOptions"> & {
309
+ fetchOptions?: {
310
+ throw?: true;
311
+ } | undefined;
312
+ }): Promise<ThrowableResult>;
313
+ (params: Omit<better_auth_client_plugins.Prettify<{
314
+ providerId: string;
315
+ accountId?: string | undefined;
316
+ } & {
317
+ fetchOptions?: better_auth.ClientFetchOption<Partial<{
318
+ providerId: string;
319
+ accountId?: string | undefined;
320
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
321
+ }>, "fetchOptions"> & {
322
+ fetchOptions?: _better_fetch_fetch.BetterFetchOption;
323
+ }): Promise<NonThrowableResult>;
324
+ };
325
+ isPending: boolean;
326
+ error: Error | null;
327
+ data: NonThrowableResult | ThrowableResult;
328
+ variables: better_auth_client_plugins.Prettify<{
329
+ providerId: string;
330
+ accountId?: string | undefined;
331
+ } & {
332
+ fetchOptions?: better_auth.ClientFetchOption<Partial<{
333
+ providerId: string;
334
+ accountId?: string | undefined;
335
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
336
+ }>;
337
+ isError: false;
338
+ isIdle: false;
339
+ isSuccess: true;
340
+ status: "success";
341
+ reset: () => void;
342
+ context: {
343
+ previousData: {};
344
+ } | undefined;
345
+ failureCount: number;
346
+ failureReason: Error | null;
347
+ isPaused: boolean;
348
+ submittedAt: number;
349
+ };
350
+
351
+ declare function useCreateApiKey(options?: Partial<AuthQueryOptions>): {
352
+ mutate: _pelatform_ui_re_tanstack_query.UseMutateFunction<NonThrowableResult | ThrowableResult, Error, better_auth_client_plugins.Prettify<{
353
+ name?: string | undefined;
354
+ expiresIn?: number | null | undefined;
355
+ userId?: unknown;
356
+ prefix?: string | undefined;
357
+ remaining?: number | null | undefined;
358
+ metadata?: any;
359
+ refillAmount?: number | undefined;
360
+ refillInterval?: number | undefined;
361
+ rateLimitTimeWindow?: number | undefined;
362
+ rateLimitMax?: number | undefined;
363
+ rateLimitEnabled?: boolean | undefined;
364
+ permissions?: Record<string, string[]> | undefined;
365
+ } & {
366
+ fetchOptions?: better_auth.ClientFetchOption<Partial<{
367
+ name?: string | undefined;
368
+ expiresIn?: number | null | undefined;
369
+ userId?: unknown;
370
+ prefix?: string | undefined;
371
+ remaining?: number | null | undefined;
372
+ metadata?: any;
373
+ refillAmount?: number | undefined;
374
+ refillInterval?: number | undefined;
375
+ rateLimitTimeWindow?: number | undefined;
376
+ rateLimitMax?: number | undefined;
377
+ rateLimitEnabled?: boolean | undefined;
378
+ permissions?: Record<string, string[]> | undefined;
379
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
380
+ }> | undefined, {
381
+ previousData: {};
382
+ } | undefined>;
383
+ mutateAsync: {
384
+ (params: Omit<better_auth_client_plugins.Prettify<{
385
+ name?: string | undefined;
386
+ expiresIn?: number | null | undefined;
387
+ userId?: unknown;
388
+ prefix?: string | undefined;
389
+ remaining?: number | null | undefined;
390
+ metadata?: any;
391
+ refillAmount?: number | undefined;
392
+ refillInterval?: number | undefined;
393
+ rateLimitTimeWindow?: number | undefined;
394
+ rateLimitMax?: number | undefined;
395
+ rateLimitEnabled?: boolean | undefined;
396
+ permissions?: Record<string, string[]> | undefined;
397
+ } & {
398
+ fetchOptions?: better_auth.ClientFetchOption<Partial<{
399
+ name?: string | undefined;
400
+ expiresIn?: number | null | undefined;
401
+ userId?: unknown;
402
+ prefix?: string | undefined;
403
+ remaining?: number | null | undefined;
404
+ metadata?: any;
405
+ refillAmount?: number | undefined;
406
+ refillInterval?: number | undefined;
407
+ rateLimitTimeWindow?: number | undefined;
408
+ rateLimitMax?: number | undefined;
409
+ rateLimitEnabled?: boolean | undefined;
410
+ permissions?: Record<string, string[]> | undefined;
411
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
412
+ }> | undefined, "fetchOptions"> & {
413
+ fetchOptions?: {
414
+ throw?: true;
415
+ } | undefined;
416
+ }): Promise<ThrowableResult>;
417
+ (params: Omit<better_auth_client_plugins.Prettify<{
418
+ name?: string | undefined;
419
+ expiresIn?: number | null | undefined;
420
+ userId?: unknown;
421
+ prefix?: string | undefined;
422
+ remaining?: number | null | undefined;
423
+ metadata?: any;
424
+ refillAmount?: number | undefined;
425
+ refillInterval?: number | undefined;
426
+ rateLimitTimeWindow?: number | undefined;
427
+ rateLimitMax?: number | undefined;
428
+ rateLimitEnabled?: boolean | undefined;
429
+ permissions?: Record<string, string[]> | undefined;
430
+ } & {
431
+ fetchOptions?: better_auth.ClientFetchOption<Partial<{
432
+ name?: string | undefined;
433
+ expiresIn?: number | null | undefined;
434
+ userId?: unknown;
435
+ prefix?: string | undefined;
436
+ remaining?: number | null | undefined;
437
+ metadata?: any;
438
+ refillAmount?: number | undefined;
439
+ refillInterval?: number | undefined;
440
+ rateLimitTimeWindow?: number | undefined;
441
+ rateLimitMax?: number | undefined;
442
+ rateLimitEnabled?: boolean | undefined;
443
+ permissions?: Record<string, string[]> | undefined;
444
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
445
+ }> | undefined, "fetchOptions"> & {
446
+ fetchOptions?: _better_fetch_fetch.BetterFetchOption;
447
+ }): Promise<NonThrowableResult>;
448
+ };
449
+ isPending: boolean;
450
+ error: Error | null;
451
+ data: undefined;
452
+ variables: undefined;
453
+ isError: false;
454
+ isIdle: true;
455
+ isSuccess: false;
456
+ status: "idle";
457
+ reset: () => void;
458
+ context: {
459
+ previousData: {};
460
+ } | undefined;
461
+ failureCount: number;
462
+ failureReason: Error | null;
463
+ isPaused: boolean;
464
+ submittedAt: number;
465
+ } | {
466
+ mutate: _pelatform_ui_re_tanstack_query.UseMutateFunction<NonThrowableResult | ThrowableResult, Error, better_auth_client_plugins.Prettify<{
467
+ name?: string | undefined;
468
+ expiresIn?: number | null | undefined;
469
+ userId?: unknown;
470
+ prefix?: string | undefined;
471
+ remaining?: number | null | undefined;
472
+ metadata?: any;
473
+ refillAmount?: number | undefined;
474
+ refillInterval?: number | undefined;
475
+ rateLimitTimeWindow?: number | undefined;
476
+ rateLimitMax?: number | undefined;
477
+ rateLimitEnabled?: boolean | undefined;
478
+ permissions?: Record<string, string[]> | undefined;
479
+ } & {
480
+ fetchOptions?: better_auth.ClientFetchOption<Partial<{
481
+ name?: string | undefined;
482
+ expiresIn?: number | null | undefined;
483
+ userId?: unknown;
484
+ prefix?: string | undefined;
485
+ remaining?: number | null | undefined;
486
+ metadata?: any;
487
+ refillAmount?: number | undefined;
488
+ refillInterval?: number | undefined;
489
+ rateLimitTimeWindow?: number | undefined;
490
+ rateLimitMax?: number | undefined;
491
+ rateLimitEnabled?: boolean | undefined;
492
+ permissions?: Record<string, string[]> | undefined;
493
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
494
+ }> | undefined, {
495
+ previousData: {};
496
+ } | undefined>;
497
+ mutateAsync: {
498
+ (params: Omit<better_auth_client_plugins.Prettify<{
499
+ name?: string | undefined;
500
+ expiresIn?: number | null | undefined;
501
+ userId?: unknown;
502
+ prefix?: string | undefined;
503
+ remaining?: number | null | undefined;
504
+ metadata?: any;
505
+ refillAmount?: number | undefined;
506
+ refillInterval?: number | undefined;
507
+ rateLimitTimeWindow?: number | undefined;
508
+ rateLimitMax?: number | undefined;
509
+ rateLimitEnabled?: boolean | undefined;
510
+ permissions?: Record<string, string[]> | undefined;
511
+ } & {
512
+ fetchOptions?: better_auth.ClientFetchOption<Partial<{
513
+ name?: string | undefined;
514
+ expiresIn?: number | null | undefined;
515
+ userId?: unknown;
516
+ prefix?: string | undefined;
517
+ remaining?: number | null | undefined;
518
+ metadata?: any;
519
+ refillAmount?: number | undefined;
520
+ refillInterval?: number | undefined;
521
+ rateLimitTimeWindow?: number | undefined;
522
+ rateLimitMax?: number | undefined;
523
+ rateLimitEnabled?: boolean | undefined;
524
+ permissions?: Record<string, string[]> | undefined;
525
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
526
+ }> | undefined, "fetchOptions"> & {
527
+ fetchOptions?: {
528
+ throw?: true;
529
+ } | undefined;
530
+ }): Promise<ThrowableResult>;
531
+ (params: Omit<better_auth_client_plugins.Prettify<{
532
+ name?: string | undefined;
533
+ expiresIn?: number | null | undefined;
534
+ userId?: unknown;
535
+ prefix?: string | undefined;
536
+ remaining?: number | null | undefined;
537
+ metadata?: any;
538
+ refillAmount?: number | undefined;
539
+ refillInterval?: number | undefined;
540
+ rateLimitTimeWindow?: number | undefined;
541
+ rateLimitMax?: number | undefined;
542
+ rateLimitEnabled?: boolean | undefined;
543
+ permissions?: Record<string, string[]> | undefined;
544
+ } & {
545
+ fetchOptions?: better_auth.ClientFetchOption<Partial<{
546
+ name?: string | undefined;
547
+ expiresIn?: number | null | undefined;
548
+ userId?: unknown;
549
+ prefix?: string | undefined;
550
+ remaining?: number | null | undefined;
551
+ metadata?: any;
552
+ refillAmount?: number | undefined;
553
+ refillInterval?: number | undefined;
554
+ rateLimitTimeWindow?: number | undefined;
555
+ rateLimitMax?: number | undefined;
556
+ rateLimitEnabled?: boolean | undefined;
557
+ permissions?: Record<string, string[]> | undefined;
558
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
559
+ }> | undefined, "fetchOptions"> & {
560
+ fetchOptions?: _better_fetch_fetch.BetterFetchOption;
561
+ }): Promise<NonThrowableResult>;
562
+ };
563
+ isPending: boolean;
564
+ error: Error | null;
565
+ data: undefined;
566
+ variables: better_auth_client_plugins.Prettify<{
567
+ name?: string | undefined;
568
+ expiresIn?: number | null | undefined;
569
+ userId?: unknown;
570
+ prefix?: string | undefined;
571
+ remaining?: number | null | undefined;
572
+ metadata?: any;
573
+ refillAmount?: number | undefined;
574
+ refillInterval?: number | undefined;
575
+ rateLimitTimeWindow?: number | undefined;
576
+ rateLimitMax?: number | undefined;
577
+ rateLimitEnabled?: boolean | undefined;
578
+ permissions?: Record<string, string[]> | undefined;
579
+ } & {
580
+ fetchOptions?: better_auth.ClientFetchOption<Partial<{
581
+ name?: string | undefined;
582
+ expiresIn?: number | null | undefined;
583
+ userId?: unknown;
584
+ prefix?: string | undefined;
585
+ remaining?: number | null | undefined;
586
+ metadata?: any;
587
+ refillAmount?: number | undefined;
588
+ refillInterval?: number | undefined;
589
+ rateLimitTimeWindow?: number | undefined;
590
+ rateLimitMax?: number | undefined;
591
+ rateLimitEnabled?: boolean | undefined;
592
+ permissions?: Record<string, string[]> | undefined;
593
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
594
+ }> | undefined;
595
+ isError: false;
596
+ isIdle: false;
597
+ isSuccess: false;
598
+ status: "pending";
599
+ reset: () => void;
600
+ context: {
601
+ previousData: {};
602
+ } | undefined;
603
+ failureCount: number;
604
+ failureReason: Error | null;
605
+ isPaused: boolean;
606
+ submittedAt: number;
607
+ } | {
608
+ mutate: _pelatform_ui_re_tanstack_query.UseMutateFunction<NonThrowableResult | ThrowableResult, Error, better_auth_client_plugins.Prettify<{
609
+ name?: string | undefined;
610
+ expiresIn?: number | null | undefined;
611
+ userId?: unknown;
612
+ prefix?: string | undefined;
613
+ remaining?: number | null | undefined;
614
+ metadata?: any;
615
+ refillAmount?: number | undefined;
616
+ refillInterval?: number | undefined;
617
+ rateLimitTimeWindow?: number | undefined;
618
+ rateLimitMax?: number | undefined;
619
+ rateLimitEnabled?: boolean | undefined;
620
+ permissions?: Record<string, string[]> | undefined;
621
+ } & {
622
+ fetchOptions?: better_auth.ClientFetchOption<Partial<{
623
+ name?: string | undefined;
624
+ expiresIn?: number | null | undefined;
625
+ userId?: unknown;
626
+ prefix?: string | undefined;
627
+ remaining?: number | null | undefined;
628
+ metadata?: any;
629
+ refillAmount?: number | undefined;
630
+ refillInterval?: number | undefined;
631
+ rateLimitTimeWindow?: number | undefined;
632
+ rateLimitMax?: number | undefined;
633
+ rateLimitEnabled?: boolean | undefined;
634
+ permissions?: Record<string, string[]> | undefined;
635
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
636
+ }> | undefined, {
637
+ previousData: {};
638
+ } | undefined>;
639
+ mutateAsync: {
640
+ (params: Omit<better_auth_client_plugins.Prettify<{
641
+ name?: string | undefined;
642
+ expiresIn?: number | null | undefined;
643
+ userId?: unknown;
644
+ prefix?: string | undefined;
645
+ remaining?: number | null | undefined;
646
+ metadata?: any;
647
+ refillAmount?: number | undefined;
648
+ refillInterval?: number | undefined;
649
+ rateLimitTimeWindow?: number | undefined;
650
+ rateLimitMax?: number | undefined;
651
+ rateLimitEnabled?: boolean | undefined;
652
+ permissions?: Record<string, string[]> | undefined;
653
+ } & {
654
+ fetchOptions?: better_auth.ClientFetchOption<Partial<{
655
+ name?: string | undefined;
656
+ expiresIn?: number | null | undefined;
657
+ userId?: unknown;
658
+ prefix?: string | undefined;
659
+ remaining?: number | null | undefined;
660
+ metadata?: any;
661
+ refillAmount?: number | undefined;
662
+ refillInterval?: number | undefined;
663
+ rateLimitTimeWindow?: number | undefined;
664
+ rateLimitMax?: number | undefined;
665
+ rateLimitEnabled?: boolean | undefined;
666
+ permissions?: Record<string, string[]> | undefined;
667
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
668
+ }> | undefined, "fetchOptions"> & {
669
+ fetchOptions?: {
670
+ throw?: true;
671
+ } | undefined;
672
+ }): Promise<ThrowableResult>;
673
+ (params: Omit<better_auth_client_plugins.Prettify<{
674
+ name?: string | undefined;
675
+ expiresIn?: number | null | undefined;
676
+ userId?: unknown;
677
+ prefix?: string | undefined;
678
+ remaining?: number | null | undefined;
679
+ metadata?: any;
680
+ refillAmount?: number | undefined;
681
+ refillInterval?: number | undefined;
682
+ rateLimitTimeWindow?: number | undefined;
683
+ rateLimitMax?: number | undefined;
684
+ rateLimitEnabled?: boolean | undefined;
685
+ permissions?: Record<string, string[]> | undefined;
686
+ } & {
687
+ fetchOptions?: better_auth.ClientFetchOption<Partial<{
688
+ name?: string | undefined;
689
+ expiresIn?: number | null | undefined;
690
+ userId?: unknown;
691
+ prefix?: string | undefined;
692
+ remaining?: number | null | undefined;
693
+ metadata?: any;
694
+ refillAmount?: number | undefined;
695
+ refillInterval?: number | undefined;
696
+ rateLimitTimeWindow?: number | undefined;
697
+ rateLimitMax?: number | undefined;
698
+ rateLimitEnabled?: boolean | undefined;
699
+ permissions?: Record<string, string[]> | undefined;
700
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
701
+ }> | undefined, "fetchOptions"> & {
702
+ fetchOptions?: _better_fetch_fetch.BetterFetchOption;
703
+ }): Promise<NonThrowableResult>;
704
+ };
705
+ isPending: boolean;
706
+ error: Error | null;
707
+ data: undefined;
708
+ variables: better_auth_client_plugins.Prettify<{
709
+ name?: string | undefined;
710
+ expiresIn?: number | null | undefined;
711
+ userId?: unknown;
712
+ prefix?: string | undefined;
713
+ remaining?: number | null | undefined;
714
+ metadata?: any;
715
+ refillAmount?: number | undefined;
716
+ refillInterval?: number | undefined;
717
+ rateLimitTimeWindow?: number | undefined;
718
+ rateLimitMax?: number | undefined;
719
+ rateLimitEnabled?: boolean | undefined;
720
+ permissions?: Record<string, string[]> | undefined;
721
+ } & {
722
+ fetchOptions?: better_auth.ClientFetchOption<Partial<{
723
+ name?: string | undefined;
724
+ expiresIn?: number | null | undefined;
725
+ userId?: unknown;
726
+ prefix?: string | undefined;
727
+ remaining?: number | null | undefined;
728
+ metadata?: any;
729
+ refillAmount?: number | undefined;
730
+ refillInterval?: number | undefined;
731
+ rateLimitTimeWindow?: number | undefined;
732
+ rateLimitMax?: number | undefined;
733
+ rateLimitEnabled?: boolean | undefined;
734
+ permissions?: Record<string, string[]> | undefined;
735
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
736
+ }> | undefined;
737
+ isError: true;
738
+ isIdle: false;
739
+ isSuccess: false;
740
+ status: "error";
741
+ reset: () => void;
742
+ context: {
743
+ previousData: {};
744
+ } | undefined;
745
+ failureCount: number;
746
+ failureReason: Error | null;
747
+ isPaused: boolean;
748
+ submittedAt: number;
749
+ } | {
750
+ mutate: _pelatform_ui_re_tanstack_query.UseMutateFunction<NonThrowableResult | ThrowableResult, Error, better_auth_client_plugins.Prettify<{
751
+ name?: string | undefined;
752
+ expiresIn?: number | null | undefined;
753
+ userId?: unknown;
754
+ prefix?: string | undefined;
755
+ remaining?: number | null | undefined;
756
+ metadata?: any;
757
+ refillAmount?: number | undefined;
758
+ refillInterval?: number | undefined;
759
+ rateLimitTimeWindow?: number | undefined;
760
+ rateLimitMax?: number | undefined;
761
+ rateLimitEnabled?: boolean | undefined;
762
+ permissions?: Record<string, string[]> | undefined;
763
+ } & {
764
+ fetchOptions?: better_auth.ClientFetchOption<Partial<{
765
+ name?: string | undefined;
766
+ expiresIn?: number | null | undefined;
767
+ userId?: unknown;
768
+ prefix?: string | undefined;
769
+ remaining?: number | null | undefined;
770
+ metadata?: any;
771
+ refillAmount?: number | undefined;
772
+ refillInterval?: number | undefined;
773
+ rateLimitTimeWindow?: number | undefined;
774
+ rateLimitMax?: number | undefined;
775
+ rateLimitEnabled?: boolean | undefined;
776
+ permissions?: Record<string, string[]> | undefined;
777
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
778
+ }> | undefined, {
779
+ previousData: {};
780
+ } | undefined>;
781
+ mutateAsync: {
782
+ (params: Omit<better_auth_client_plugins.Prettify<{
783
+ name?: string | undefined;
784
+ expiresIn?: number | null | undefined;
785
+ userId?: unknown;
786
+ prefix?: string | undefined;
787
+ remaining?: number | null | undefined;
788
+ metadata?: any;
789
+ refillAmount?: number | undefined;
790
+ refillInterval?: number | undefined;
791
+ rateLimitTimeWindow?: number | undefined;
792
+ rateLimitMax?: number | undefined;
793
+ rateLimitEnabled?: boolean | undefined;
794
+ permissions?: Record<string, string[]> | undefined;
795
+ } & {
796
+ fetchOptions?: better_auth.ClientFetchOption<Partial<{
797
+ name?: string | undefined;
798
+ expiresIn?: number | null | undefined;
799
+ userId?: unknown;
800
+ prefix?: string | undefined;
801
+ remaining?: number | null | undefined;
802
+ metadata?: any;
803
+ refillAmount?: number | undefined;
804
+ refillInterval?: number | undefined;
805
+ rateLimitTimeWindow?: number | undefined;
806
+ rateLimitMax?: number | undefined;
807
+ rateLimitEnabled?: boolean | undefined;
808
+ permissions?: Record<string, string[]> | undefined;
809
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
810
+ }> | undefined, "fetchOptions"> & {
811
+ fetchOptions?: {
812
+ throw?: true;
813
+ } | undefined;
814
+ }): Promise<ThrowableResult>;
815
+ (params: Omit<better_auth_client_plugins.Prettify<{
816
+ name?: string | undefined;
817
+ expiresIn?: number | null | undefined;
818
+ userId?: unknown;
819
+ prefix?: string | undefined;
820
+ remaining?: number | null | undefined;
821
+ metadata?: any;
822
+ refillAmount?: number | undefined;
823
+ refillInterval?: number | undefined;
824
+ rateLimitTimeWindow?: number | undefined;
825
+ rateLimitMax?: number | undefined;
826
+ rateLimitEnabled?: boolean | undefined;
827
+ permissions?: Record<string, string[]> | undefined;
828
+ } & {
829
+ fetchOptions?: better_auth.ClientFetchOption<Partial<{
830
+ name?: string | undefined;
831
+ expiresIn?: number | null | undefined;
832
+ userId?: unknown;
833
+ prefix?: string | undefined;
834
+ remaining?: number | null | undefined;
835
+ metadata?: any;
836
+ refillAmount?: number | undefined;
837
+ refillInterval?: number | undefined;
838
+ rateLimitTimeWindow?: number | undefined;
839
+ rateLimitMax?: number | undefined;
840
+ rateLimitEnabled?: boolean | undefined;
841
+ permissions?: Record<string, string[]> | undefined;
842
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
843
+ }> | undefined, "fetchOptions"> & {
844
+ fetchOptions?: _better_fetch_fetch.BetterFetchOption;
845
+ }): Promise<NonThrowableResult>;
846
+ };
847
+ isPending: boolean;
848
+ error: Error | null;
849
+ data: NonThrowableResult | ThrowableResult;
850
+ variables: better_auth_client_plugins.Prettify<{
851
+ name?: string | undefined;
852
+ expiresIn?: number | null | undefined;
853
+ userId?: unknown;
854
+ prefix?: string | undefined;
855
+ remaining?: number | null | undefined;
856
+ metadata?: any;
857
+ refillAmount?: number | undefined;
858
+ refillInterval?: number | undefined;
859
+ rateLimitTimeWindow?: number | undefined;
860
+ rateLimitMax?: number | undefined;
861
+ rateLimitEnabled?: boolean | undefined;
862
+ permissions?: Record<string, string[]> | undefined;
863
+ } & {
864
+ fetchOptions?: better_auth.ClientFetchOption<Partial<{
865
+ name?: string | undefined;
866
+ expiresIn?: number | null | undefined;
867
+ userId?: unknown;
868
+ prefix?: string | undefined;
869
+ remaining?: number | null | undefined;
870
+ metadata?: any;
871
+ refillAmount?: number | undefined;
872
+ refillInterval?: number | undefined;
873
+ rateLimitTimeWindow?: number | undefined;
874
+ rateLimitMax?: number | undefined;
875
+ rateLimitEnabled?: boolean | undefined;
876
+ permissions?: Record<string, string[]> | undefined;
877
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
878
+ }> | undefined;
879
+ isError: false;
880
+ isIdle: false;
881
+ isSuccess: true;
882
+ status: "success";
883
+ reset: () => void;
884
+ context: {
885
+ previousData: {};
886
+ } | undefined;
887
+ failureCount: number;
888
+ failureReason: Error | null;
889
+ isPaused: boolean;
890
+ submittedAt: number;
891
+ };
892
+ declare function useDeleteApiKey(options?: Partial<AuthQueryOptions>): {
893
+ mutate: _pelatform_ui_re_tanstack_query.UseMutateFunction<NonThrowableResult | ThrowableResult, Error, better_auth_client_plugins.Prettify<{
894
+ keyId: string;
895
+ } & {
896
+ fetchOptions?: better_auth.ClientFetchOption<Partial<{
897
+ keyId: string;
898
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
899
+ }>, {
900
+ previousData: {};
901
+ } | undefined>;
902
+ mutateAsync: {
903
+ (params: Omit<better_auth_client_plugins.Prettify<{
904
+ keyId: string;
905
+ } & {
906
+ fetchOptions?: better_auth.ClientFetchOption<Partial<{
907
+ keyId: string;
908
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
909
+ }>, "fetchOptions"> & {
910
+ fetchOptions?: {
911
+ throw?: true;
912
+ } | undefined;
913
+ }): Promise<ThrowableResult>;
914
+ (params: Omit<better_auth_client_plugins.Prettify<{
915
+ keyId: string;
916
+ } & {
917
+ fetchOptions?: better_auth.ClientFetchOption<Partial<{
918
+ keyId: string;
919
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
920
+ }>, "fetchOptions"> & {
921
+ fetchOptions?: _better_fetch_fetch.BetterFetchOption;
922
+ }): Promise<NonThrowableResult>;
923
+ };
924
+ isPending: boolean;
925
+ error: Error | null;
926
+ data: undefined;
927
+ variables: undefined;
928
+ isError: false;
929
+ isIdle: true;
930
+ isSuccess: false;
931
+ status: "idle";
932
+ reset: () => void;
933
+ context: {
934
+ previousData: {};
935
+ } | undefined;
936
+ failureCount: number;
937
+ failureReason: Error | null;
938
+ isPaused: boolean;
939
+ submittedAt: number;
940
+ } | {
941
+ mutate: _pelatform_ui_re_tanstack_query.UseMutateFunction<NonThrowableResult | ThrowableResult, Error, better_auth_client_plugins.Prettify<{
942
+ keyId: string;
943
+ } & {
944
+ fetchOptions?: better_auth.ClientFetchOption<Partial<{
945
+ keyId: string;
946
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
947
+ }>, {
948
+ previousData: {};
949
+ } | undefined>;
950
+ mutateAsync: {
951
+ (params: Omit<better_auth_client_plugins.Prettify<{
952
+ keyId: string;
953
+ } & {
954
+ fetchOptions?: better_auth.ClientFetchOption<Partial<{
955
+ keyId: string;
956
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
957
+ }>, "fetchOptions"> & {
958
+ fetchOptions?: {
959
+ throw?: true;
960
+ } | undefined;
961
+ }): Promise<ThrowableResult>;
962
+ (params: Omit<better_auth_client_plugins.Prettify<{
963
+ keyId: string;
964
+ } & {
965
+ fetchOptions?: better_auth.ClientFetchOption<Partial<{
966
+ keyId: string;
967
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
968
+ }>, "fetchOptions"> & {
969
+ fetchOptions?: _better_fetch_fetch.BetterFetchOption;
970
+ }): Promise<NonThrowableResult>;
971
+ };
972
+ isPending: boolean;
973
+ error: Error | null;
974
+ data: undefined;
975
+ variables: better_auth_client_plugins.Prettify<{
976
+ keyId: string;
977
+ } & {
978
+ fetchOptions?: better_auth.ClientFetchOption<Partial<{
979
+ keyId: string;
980
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
981
+ }>;
982
+ isError: false;
983
+ isIdle: false;
984
+ isSuccess: false;
985
+ status: "pending";
986
+ reset: () => void;
987
+ context: {
988
+ previousData: {};
989
+ } | undefined;
990
+ failureCount: number;
991
+ failureReason: Error | null;
992
+ isPaused: boolean;
993
+ submittedAt: number;
994
+ } | {
995
+ mutate: _pelatform_ui_re_tanstack_query.UseMutateFunction<NonThrowableResult | ThrowableResult, Error, better_auth_client_plugins.Prettify<{
996
+ keyId: string;
997
+ } & {
998
+ fetchOptions?: better_auth.ClientFetchOption<Partial<{
999
+ keyId: string;
1000
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
1001
+ }>, {
1002
+ previousData: {};
1003
+ } | undefined>;
1004
+ mutateAsync: {
1005
+ (params: Omit<better_auth_client_plugins.Prettify<{
1006
+ keyId: string;
1007
+ } & {
1008
+ fetchOptions?: better_auth.ClientFetchOption<Partial<{
1009
+ keyId: string;
1010
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
1011
+ }>, "fetchOptions"> & {
1012
+ fetchOptions?: {
1013
+ throw?: true;
1014
+ } | undefined;
1015
+ }): Promise<ThrowableResult>;
1016
+ (params: Omit<better_auth_client_plugins.Prettify<{
1017
+ keyId: string;
1018
+ } & {
1019
+ fetchOptions?: better_auth.ClientFetchOption<Partial<{
1020
+ keyId: string;
1021
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
1022
+ }>, "fetchOptions"> & {
1023
+ fetchOptions?: _better_fetch_fetch.BetterFetchOption;
1024
+ }): Promise<NonThrowableResult>;
1025
+ };
1026
+ isPending: boolean;
1027
+ error: Error | null;
1028
+ data: undefined;
1029
+ variables: better_auth_client_plugins.Prettify<{
1030
+ keyId: string;
1031
+ } & {
1032
+ fetchOptions?: better_auth.ClientFetchOption<Partial<{
1033
+ keyId: string;
1034
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
1035
+ }>;
1036
+ isError: true;
1037
+ isIdle: false;
1038
+ isSuccess: false;
1039
+ status: "error";
1040
+ reset: () => void;
1041
+ context: {
1042
+ previousData: {};
1043
+ } | undefined;
1044
+ failureCount: number;
1045
+ failureReason: Error | null;
1046
+ isPaused: boolean;
1047
+ submittedAt: number;
1048
+ } | {
1049
+ mutate: _pelatform_ui_re_tanstack_query.UseMutateFunction<NonThrowableResult | ThrowableResult, Error, better_auth_client_plugins.Prettify<{
1050
+ keyId: string;
1051
+ } & {
1052
+ fetchOptions?: better_auth.ClientFetchOption<Partial<{
1053
+ keyId: string;
1054
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
1055
+ }>, {
1056
+ previousData: {};
1057
+ } | undefined>;
1058
+ mutateAsync: {
1059
+ (params: Omit<better_auth_client_plugins.Prettify<{
1060
+ keyId: string;
1061
+ } & {
1062
+ fetchOptions?: better_auth.ClientFetchOption<Partial<{
1063
+ keyId: string;
1064
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
1065
+ }>, "fetchOptions"> & {
1066
+ fetchOptions?: {
1067
+ throw?: true;
1068
+ } | undefined;
1069
+ }): Promise<ThrowableResult>;
1070
+ (params: Omit<better_auth_client_plugins.Prettify<{
1071
+ keyId: string;
1072
+ } & {
1073
+ fetchOptions?: better_auth.ClientFetchOption<Partial<{
1074
+ keyId: string;
1075
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
1076
+ }>, "fetchOptions"> & {
1077
+ fetchOptions?: _better_fetch_fetch.BetterFetchOption;
1078
+ }): Promise<NonThrowableResult>;
1079
+ };
1080
+ isPending: boolean;
1081
+ error: Error | null;
1082
+ data: NonThrowableResult | ThrowableResult;
1083
+ variables: better_auth_client_plugins.Prettify<{
1084
+ keyId: string;
1085
+ } & {
1086
+ fetchOptions?: better_auth.ClientFetchOption<Partial<{
1087
+ keyId: string;
1088
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
1089
+ }>;
1090
+ isError: false;
1091
+ isIdle: false;
1092
+ isSuccess: true;
1093
+ status: "success";
1094
+ reset: () => void;
1095
+ context: {
1096
+ previousData: {};
1097
+ } | undefined;
1098
+ failureCount: number;
1099
+ failureReason: Error | null;
1100
+ isPaused: boolean;
1101
+ submittedAt: number;
1102
+ };
1103
+ declare function useListApiKeys(options?: Partial<AnyUseQueryOptions>): _pelatform_ui_re_tanstack_query.UseQueryResult<{
1104
+ permissions: {
1105
+ [key: string]: string[];
1106
+ } | null;
1107
+ id: string;
1108
+ name: string | null;
1109
+ start: string | null;
1110
+ prefix: string | null;
1111
+ userId: string;
1112
+ refillInterval: number | null;
1113
+ refillAmount: number | null;
1114
+ lastRefillAt: Date | null;
1115
+ enabled: boolean;
1116
+ rateLimitEnabled: boolean;
1117
+ rateLimitTimeWindow: number | null;
1118
+ rateLimitMax: number | null;
1119
+ requestCount: number;
1120
+ remaining: number | null;
1121
+ lastRequest: Date | null;
1122
+ expiresAt: Date | null;
1123
+ createdAt: Date;
1124
+ updatedAt: Date;
1125
+ metadata: Record<string, any> | null;
1126
+ }[], Error>;
1127
+
1128
+ type AuthMutationFn<TParams> = (params: TParams) => Promise<ThrowableResult | NonThrowableResult>;
1129
+ declare function useAuthMutation<TAuthFn extends AuthMutationFn<any>>({ queryKey, mutationFn, optimisticData, options, }: {
1130
+ queryKey: QueryKey;
1131
+ mutationFn: TAuthFn;
1132
+ optimisticData?(params: Omit<Parameters<TAuthFn>[0], 'fetchOptions'>, previousData: unknown): unknown;
1133
+ options?: Partial<AuthQueryOptions>;
1134
+ }): {
1135
+ mutate: _pelatform_ui_re_tanstack_query.UseMutateFunction<NonThrowableResult | ThrowableResult, Error, Parameters<TAuthFn>[0], {
1136
+ previousData: {};
1137
+ } | undefined>;
1138
+ mutateAsync: {
1139
+ (params: Omit<Parameters<TAuthFn>[0], "fetchOptions"> & {
1140
+ fetchOptions?: {
1141
+ throw?: true;
1142
+ } | undefined;
1143
+ }): Promise<ThrowableResult>;
1144
+ (params: Omit<Parameters<TAuthFn>[0], "fetchOptions"> & {
1145
+ fetchOptions?: BetterFetchOption;
1146
+ }): Promise<NonThrowableResult>;
1147
+ };
1148
+ isPending: boolean;
1149
+ error: Error | null;
1150
+ data: undefined;
1151
+ variables: undefined;
1152
+ isError: false;
1153
+ isIdle: true;
1154
+ isSuccess: false;
1155
+ status: "idle";
1156
+ reset: () => void;
1157
+ context: {
1158
+ previousData: {};
1159
+ } | undefined;
1160
+ failureCount: number;
1161
+ failureReason: Error | null;
1162
+ isPaused: boolean;
1163
+ submittedAt: number;
1164
+ } | {
1165
+ mutate: _pelatform_ui_re_tanstack_query.UseMutateFunction<NonThrowableResult | ThrowableResult, Error, Parameters<TAuthFn>[0], {
1166
+ previousData: {};
1167
+ } | undefined>;
1168
+ mutateAsync: {
1169
+ (params: Omit<Parameters<TAuthFn>[0], "fetchOptions"> & {
1170
+ fetchOptions?: {
1171
+ throw?: true;
1172
+ } | undefined;
1173
+ }): Promise<ThrowableResult>;
1174
+ (params: Omit<Parameters<TAuthFn>[0], "fetchOptions"> & {
1175
+ fetchOptions?: BetterFetchOption;
1176
+ }): Promise<NonThrowableResult>;
1177
+ };
1178
+ isPending: boolean;
1179
+ error: Error | null;
1180
+ data: undefined;
1181
+ variables: Parameters<TAuthFn>[0];
1182
+ isError: false;
1183
+ isIdle: false;
1184
+ isSuccess: false;
1185
+ status: "pending";
1186
+ reset: () => void;
1187
+ context: {
1188
+ previousData: {};
1189
+ } | undefined;
1190
+ failureCount: number;
1191
+ failureReason: Error | null;
1192
+ isPaused: boolean;
1193
+ submittedAt: number;
1194
+ } | {
1195
+ mutate: _pelatform_ui_re_tanstack_query.UseMutateFunction<NonThrowableResult | ThrowableResult, Error, Parameters<TAuthFn>[0], {
1196
+ previousData: {};
1197
+ } | undefined>;
1198
+ mutateAsync: {
1199
+ (params: Omit<Parameters<TAuthFn>[0], "fetchOptions"> & {
1200
+ fetchOptions?: {
1201
+ throw?: true;
1202
+ } | undefined;
1203
+ }): Promise<ThrowableResult>;
1204
+ (params: Omit<Parameters<TAuthFn>[0], "fetchOptions"> & {
1205
+ fetchOptions?: BetterFetchOption;
1206
+ }): Promise<NonThrowableResult>;
1207
+ };
1208
+ isPending: boolean;
1209
+ error: Error | null;
1210
+ data: undefined;
1211
+ variables: Parameters<TAuthFn>[0];
1212
+ isError: true;
1213
+ isIdle: false;
1214
+ isSuccess: false;
1215
+ status: "error";
1216
+ reset: () => void;
1217
+ context: {
1218
+ previousData: {};
1219
+ } | undefined;
1220
+ failureCount: number;
1221
+ failureReason: Error | null;
1222
+ isPaused: boolean;
1223
+ submittedAt: number;
1224
+ } | {
1225
+ mutate: _pelatform_ui_re_tanstack_query.UseMutateFunction<NonThrowableResult | ThrowableResult, Error, Parameters<TAuthFn>[0], {
1226
+ previousData: {};
1227
+ } | undefined>;
1228
+ mutateAsync: {
1229
+ (params: Omit<Parameters<TAuthFn>[0], "fetchOptions"> & {
1230
+ fetchOptions?: {
1231
+ throw?: true;
1232
+ } | undefined;
1233
+ }): Promise<ThrowableResult>;
1234
+ (params: Omit<Parameters<TAuthFn>[0], "fetchOptions"> & {
1235
+ fetchOptions?: BetterFetchOption;
1236
+ }): Promise<NonThrowableResult>;
1237
+ };
1238
+ isPending: boolean;
1239
+ error: Error | null;
1240
+ data: NonThrowableResult | ThrowableResult;
1241
+ variables: Parameters<TAuthFn>[0];
1242
+ isError: false;
1243
+ isIdle: false;
1244
+ isSuccess: true;
1245
+ status: "success";
1246
+ reset: () => void;
1247
+ context: {
1248
+ previousData: {};
1249
+ } | undefined;
1250
+ failureCount: number;
1251
+ failureReason: Error | null;
1252
+ isPaused: boolean;
1253
+ submittedAt: number;
1254
+ };
1255
+ declare const useOnMutateError: () => {
1256
+ onMutateError: (error: Error, queryKey: QueryKey, context?: {
1257
+ previousData?: unknown;
1258
+ }) => void;
1259
+ };
1260
+
1261
+ type UseAuthQueryProps<TData> = {
1262
+ queryKey: QueryKey;
1263
+ queryFn: BetterFetchRequest<TData>;
1264
+ options?: Partial<AnyUseQueryOptions>;
1265
+ };
1266
+ declare function useAuthQuery<TData>({ queryKey, queryFn, options }: UseAuthQueryProps<TData>): _pelatform_ui_re_tanstack_query.UseQueryResult<_tanstack_query_core.NoInfer<TData>, Error>;
1267
+
1268
+ declare function useListDeviceSessions(options?: Partial<AnyUseQueryOptions>): _pelatform_ui_re_tanstack_query.UseQueryResult<{
1269
+ session: better_auth.Session;
1270
+ user: better_auth.User;
1271
+ }[], Error>;
1272
+ declare function useRevokeDeviceSession(options?: Partial<AuthQueryOptions>): {
1273
+ mutate: _pelatform_ui_re_tanstack_query.UseMutateFunction<NonThrowableResult | ThrowableResult, Error, better_auth_client_plugins.Prettify<{
1274
+ sessionToken: string;
1275
+ } & {
1276
+ fetchOptions?: better_auth.ClientFetchOption<Partial<{
1277
+ sessionToken: string;
1278
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
1279
+ }>, {
1280
+ previousData: {};
1281
+ } | undefined>;
1282
+ mutateAsync: {
1283
+ (params: Omit<better_auth_client_plugins.Prettify<{
1284
+ sessionToken: string;
1285
+ } & {
1286
+ fetchOptions?: better_auth.ClientFetchOption<Partial<{
1287
+ sessionToken: string;
1288
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
1289
+ }>, "fetchOptions"> & {
1290
+ fetchOptions?: {
1291
+ throw?: true;
1292
+ } | undefined;
1293
+ }): Promise<ThrowableResult>;
1294
+ (params: Omit<better_auth_client_plugins.Prettify<{
1295
+ sessionToken: string;
1296
+ } & {
1297
+ fetchOptions?: better_auth.ClientFetchOption<Partial<{
1298
+ sessionToken: string;
1299
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
1300
+ }>, "fetchOptions"> & {
1301
+ fetchOptions?: _better_fetch_fetch.BetterFetchOption;
1302
+ }): Promise<NonThrowableResult>;
1303
+ };
1304
+ isPending: boolean;
1305
+ error: Error | null;
1306
+ data: undefined;
1307
+ variables: undefined;
1308
+ isError: false;
1309
+ isIdle: true;
1310
+ isSuccess: false;
1311
+ status: "idle";
1312
+ reset: () => void;
1313
+ context: {
1314
+ previousData: {};
1315
+ } | undefined;
1316
+ failureCount: number;
1317
+ failureReason: Error | null;
1318
+ isPaused: boolean;
1319
+ submittedAt: number;
1320
+ } | {
1321
+ mutate: _pelatform_ui_re_tanstack_query.UseMutateFunction<NonThrowableResult | ThrowableResult, Error, better_auth_client_plugins.Prettify<{
1322
+ sessionToken: string;
1323
+ } & {
1324
+ fetchOptions?: better_auth.ClientFetchOption<Partial<{
1325
+ sessionToken: string;
1326
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
1327
+ }>, {
1328
+ previousData: {};
1329
+ } | undefined>;
1330
+ mutateAsync: {
1331
+ (params: Omit<better_auth_client_plugins.Prettify<{
1332
+ sessionToken: string;
1333
+ } & {
1334
+ fetchOptions?: better_auth.ClientFetchOption<Partial<{
1335
+ sessionToken: string;
1336
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
1337
+ }>, "fetchOptions"> & {
1338
+ fetchOptions?: {
1339
+ throw?: true;
1340
+ } | undefined;
1341
+ }): Promise<ThrowableResult>;
1342
+ (params: Omit<better_auth_client_plugins.Prettify<{
1343
+ sessionToken: string;
1344
+ } & {
1345
+ fetchOptions?: better_auth.ClientFetchOption<Partial<{
1346
+ sessionToken: string;
1347
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
1348
+ }>, "fetchOptions"> & {
1349
+ fetchOptions?: _better_fetch_fetch.BetterFetchOption;
1350
+ }): Promise<NonThrowableResult>;
1351
+ };
1352
+ isPending: boolean;
1353
+ error: Error | null;
1354
+ data: undefined;
1355
+ variables: better_auth_client_plugins.Prettify<{
1356
+ sessionToken: string;
1357
+ } & {
1358
+ fetchOptions?: better_auth.ClientFetchOption<Partial<{
1359
+ sessionToken: string;
1360
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
1361
+ }>;
1362
+ isError: false;
1363
+ isIdle: false;
1364
+ isSuccess: false;
1365
+ status: "pending";
1366
+ reset: () => void;
1367
+ context: {
1368
+ previousData: {};
1369
+ } | undefined;
1370
+ failureCount: number;
1371
+ failureReason: Error | null;
1372
+ isPaused: boolean;
1373
+ submittedAt: number;
1374
+ } | {
1375
+ mutate: _pelatform_ui_re_tanstack_query.UseMutateFunction<NonThrowableResult | ThrowableResult, Error, better_auth_client_plugins.Prettify<{
1376
+ sessionToken: string;
1377
+ } & {
1378
+ fetchOptions?: better_auth.ClientFetchOption<Partial<{
1379
+ sessionToken: string;
1380
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
1381
+ }>, {
1382
+ previousData: {};
1383
+ } | undefined>;
1384
+ mutateAsync: {
1385
+ (params: Omit<better_auth_client_plugins.Prettify<{
1386
+ sessionToken: string;
1387
+ } & {
1388
+ fetchOptions?: better_auth.ClientFetchOption<Partial<{
1389
+ sessionToken: string;
1390
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
1391
+ }>, "fetchOptions"> & {
1392
+ fetchOptions?: {
1393
+ throw?: true;
1394
+ } | undefined;
1395
+ }): Promise<ThrowableResult>;
1396
+ (params: Omit<better_auth_client_plugins.Prettify<{
1397
+ sessionToken: string;
1398
+ } & {
1399
+ fetchOptions?: better_auth.ClientFetchOption<Partial<{
1400
+ sessionToken: string;
1401
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
1402
+ }>, "fetchOptions"> & {
1403
+ fetchOptions?: _better_fetch_fetch.BetterFetchOption;
1404
+ }): Promise<NonThrowableResult>;
1405
+ };
1406
+ isPending: boolean;
1407
+ error: Error | null;
1408
+ data: undefined;
1409
+ variables: better_auth_client_plugins.Prettify<{
1410
+ sessionToken: string;
1411
+ } & {
1412
+ fetchOptions?: better_auth.ClientFetchOption<Partial<{
1413
+ sessionToken: string;
1414
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
1415
+ }>;
1416
+ isError: true;
1417
+ isIdle: false;
1418
+ isSuccess: false;
1419
+ status: "error";
1420
+ reset: () => void;
1421
+ context: {
1422
+ previousData: {};
1423
+ } | undefined;
1424
+ failureCount: number;
1425
+ failureReason: Error | null;
1426
+ isPaused: boolean;
1427
+ submittedAt: number;
1428
+ } | {
1429
+ mutate: _pelatform_ui_re_tanstack_query.UseMutateFunction<NonThrowableResult | ThrowableResult, Error, better_auth_client_plugins.Prettify<{
1430
+ sessionToken: string;
1431
+ } & {
1432
+ fetchOptions?: better_auth.ClientFetchOption<Partial<{
1433
+ sessionToken: string;
1434
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
1435
+ }>, {
1436
+ previousData: {};
1437
+ } | undefined>;
1438
+ mutateAsync: {
1439
+ (params: Omit<better_auth_client_plugins.Prettify<{
1440
+ sessionToken: string;
1441
+ } & {
1442
+ fetchOptions?: better_auth.ClientFetchOption<Partial<{
1443
+ sessionToken: string;
1444
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
1445
+ }>, "fetchOptions"> & {
1446
+ fetchOptions?: {
1447
+ throw?: true;
1448
+ } | undefined;
1449
+ }): Promise<ThrowableResult>;
1450
+ (params: Omit<better_auth_client_plugins.Prettify<{
1451
+ sessionToken: string;
1452
+ } & {
1453
+ fetchOptions?: better_auth.ClientFetchOption<Partial<{
1454
+ sessionToken: string;
1455
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
1456
+ }>, "fetchOptions"> & {
1457
+ fetchOptions?: _better_fetch_fetch.BetterFetchOption;
1458
+ }): Promise<NonThrowableResult>;
1459
+ };
1460
+ isPending: boolean;
1461
+ error: Error | null;
1462
+ data: NonThrowableResult | ThrowableResult;
1463
+ variables: better_auth_client_plugins.Prettify<{
1464
+ sessionToken: string;
1465
+ } & {
1466
+ fetchOptions?: better_auth.ClientFetchOption<Partial<{
1467
+ sessionToken: string;
1468
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
1469
+ }>;
1470
+ isError: false;
1471
+ isIdle: false;
1472
+ isSuccess: true;
1473
+ status: "success";
1474
+ reset: () => void;
1475
+ context: {
1476
+ previousData: {};
1477
+ } | undefined;
1478
+ failureCount: number;
1479
+ failureReason: Error | null;
1480
+ isPaused: boolean;
1481
+ submittedAt: number;
1482
+ };
1483
+ declare function useSetActiveSession(): {
1484
+ setActiveSession: _pelatform_ui_re_tanstack_query.UseMutateFunction<{
1485
+ data: {
1486
+ session: better_auth.Session & Record<string, any>;
1487
+ user: better_auth.User & Record<string, any>;
1488
+ };
1489
+ error: null;
1490
+ } | {
1491
+ data: null;
1492
+ error: {
1493
+ code?: string | undefined | undefined;
1494
+ message?: string | undefined | undefined;
1495
+ status: number;
1496
+ statusText: string;
1497
+ };
1498
+ }, Error, better_auth_client_plugins.Prettify<{
1499
+ sessionToken: string;
1500
+ } & {
1501
+ fetchOptions?: better_auth.ClientFetchOption<Partial<{
1502
+ sessionToken: string;
1503
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
1504
+ }>, unknown>;
1505
+ setActiveSessionAsync: _pelatform_ui_re_tanstack_query.UseMutateAsyncFunction<{
1506
+ data: {
1507
+ session: better_auth.Session & Record<string, any>;
1508
+ user: better_auth.User & Record<string, any>;
1509
+ };
1510
+ error: null;
1511
+ } | {
1512
+ data: null;
1513
+ error: {
1514
+ code?: string | undefined | undefined;
1515
+ message?: string | undefined | undefined;
1516
+ status: number;
1517
+ statusText: string;
1518
+ };
1519
+ }, Error, better_auth_client_plugins.Prettify<{
1520
+ sessionToken: string;
1521
+ } & {
1522
+ fetchOptions?: better_auth.ClientFetchOption<Partial<{
1523
+ sessionToken: string;
1524
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
1525
+ }>, unknown>;
1526
+ setActiveSessionPending: boolean;
1527
+ setActiveSessionError: Error | null;
1528
+ data: undefined;
1529
+ variables: undefined;
1530
+ error: null;
1531
+ isError: false;
1532
+ isIdle: true;
1533
+ isPending: false;
1534
+ isSuccess: false;
1535
+ status: "idle";
1536
+ mutate: _pelatform_ui_re_tanstack_query.UseMutateFunction<{
1537
+ data: {
1538
+ session: better_auth.Session & Record<string, any>;
1539
+ user: better_auth.User & Record<string, any>;
1540
+ };
1541
+ error: null;
1542
+ } | {
1543
+ data: null;
1544
+ error: {
1545
+ code?: string | undefined | undefined;
1546
+ message?: string | undefined | undefined;
1547
+ status: number;
1548
+ statusText: string;
1549
+ };
1550
+ }, Error, better_auth_client_plugins.Prettify<{
1551
+ sessionToken: string;
1552
+ } & {
1553
+ fetchOptions?: better_auth.ClientFetchOption<Partial<{
1554
+ sessionToken: string;
1555
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
1556
+ }>, unknown>;
1557
+ reset: () => void;
1558
+ context: unknown;
1559
+ failureCount: number;
1560
+ failureReason: Error | null;
1561
+ isPaused: boolean;
1562
+ submittedAt: number;
1563
+ mutateAsync: _pelatform_ui_re_tanstack_query.UseMutateAsyncFunction<{
1564
+ data: {
1565
+ session: better_auth.Session & Record<string, any>;
1566
+ user: better_auth.User & Record<string, any>;
1567
+ };
1568
+ error: null;
1569
+ } | {
1570
+ data: null;
1571
+ error: {
1572
+ code?: string | undefined | undefined;
1573
+ message?: string | undefined | undefined;
1574
+ status: number;
1575
+ statusText: string;
1576
+ };
1577
+ }, Error, better_auth_client_plugins.Prettify<{
1578
+ sessionToken: string;
1579
+ } & {
1580
+ fetchOptions?: better_auth.ClientFetchOption<Partial<{
1581
+ sessionToken: string;
1582
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
1583
+ }>, unknown>;
1584
+ } | {
1585
+ setActiveSession: _pelatform_ui_re_tanstack_query.UseMutateFunction<{
1586
+ data: {
1587
+ session: better_auth.Session & Record<string, any>;
1588
+ user: better_auth.User & Record<string, any>;
1589
+ };
1590
+ error: null;
1591
+ } | {
1592
+ data: null;
1593
+ error: {
1594
+ code?: string | undefined | undefined;
1595
+ message?: string | undefined | undefined;
1596
+ status: number;
1597
+ statusText: string;
1598
+ };
1599
+ }, Error, better_auth_client_plugins.Prettify<{
1600
+ sessionToken: string;
1601
+ } & {
1602
+ fetchOptions?: better_auth.ClientFetchOption<Partial<{
1603
+ sessionToken: string;
1604
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
1605
+ }>, unknown>;
1606
+ setActiveSessionAsync: _pelatform_ui_re_tanstack_query.UseMutateAsyncFunction<{
1607
+ data: {
1608
+ session: better_auth.Session & Record<string, any>;
1609
+ user: better_auth.User & Record<string, any>;
1610
+ };
1611
+ error: null;
1612
+ } | {
1613
+ data: null;
1614
+ error: {
1615
+ code?: string | undefined | undefined;
1616
+ message?: string | undefined | undefined;
1617
+ status: number;
1618
+ statusText: string;
1619
+ };
1620
+ }, Error, better_auth_client_plugins.Prettify<{
1621
+ sessionToken: string;
1622
+ } & {
1623
+ fetchOptions?: better_auth.ClientFetchOption<Partial<{
1624
+ sessionToken: string;
1625
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
1626
+ }>, unknown>;
1627
+ setActiveSessionPending: boolean;
1628
+ setActiveSessionError: Error | null;
1629
+ data: undefined;
1630
+ variables: better_auth_client_plugins.Prettify<{
1631
+ sessionToken: string;
1632
+ } & {
1633
+ fetchOptions?: better_auth.ClientFetchOption<Partial<{
1634
+ sessionToken: string;
1635
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
1636
+ }>;
1637
+ error: null;
1638
+ isError: false;
1639
+ isIdle: false;
1640
+ isPending: true;
1641
+ isSuccess: false;
1642
+ status: "pending";
1643
+ mutate: _pelatform_ui_re_tanstack_query.UseMutateFunction<{
1644
+ data: {
1645
+ session: better_auth.Session & Record<string, any>;
1646
+ user: better_auth.User & Record<string, any>;
1647
+ };
1648
+ error: null;
1649
+ } | {
1650
+ data: null;
1651
+ error: {
1652
+ code?: string | undefined | undefined;
1653
+ message?: string | undefined | undefined;
1654
+ status: number;
1655
+ statusText: string;
1656
+ };
1657
+ }, Error, better_auth_client_plugins.Prettify<{
1658
+ sessionToken: string;
1659
+ } & {
1660
+ fetchOptions?: better_auth.ClientFetchOption<Partial<{
1661
+ sessionToken: string;
1662
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
1663
+ }>, unknown>;
1664
+ reset: () => void;
1665
+ context: unknown;
1666
+ failureCount: number;
1667
+ failureReason: Error | null;
1668
+ isPaused: boolean;
1669
+ submittedAt: number;
1670
+ mutateAsync: _pelatform_ui_re_tanstack_query.UseMutateAsyncFunction<{
1671
+ data: {
1672
+ session: better_auth.Session & Record<string, any>;
1673
+ user: better_auth.User & Record<string, any>;
1674
+ };
1675
+ error: null;
1676
+ } | {
1677
+ data: null;
1678
+ error: {
1679
+ code?: string | undefined | undefined;
1680
+ message?: string | undefined | undefined;
1681
+ status: number;
1682
+ statusText: string;
1683
+ };
1684
+ }, Error, better_auth_client_plugins.Prettify<{
1685
+ sessionToken: string;
1686
+ } & {
1687
+ fetchOptions?: better_auth.ClientFetchOption<Partial<{
1688
+ sessionToken: string;
1689
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
1690
+ }>, unknown>;
1691
+ } | {
1692
+ setActiveSession: _pelatform_ui_re_tanstack_query.UseMutateFunction<{
1693
+ data: {
1694
+ session: better_auth.Session & Record<string, any>;
1695
+ user: better_auth.User & Record<string, any>;
1696
+ };
1697
+ error: null;
1698
+ } | {
1699
+ data: null;
1700
+ error: {
1701
+ code?: string | undefined | undefined;
1702
+ message?: string | undefined | undefined;
1703
+ status: number;
1704
+ statusText: string;
1705
+ };
1706
+ }, Error, better_auth_client_plugins.Prettify<{
1707
+ sessionToken: string;
1708
+ } & {
1709
+ fetchOptions?: better_auth.ClientFetchOption<Partial<{
1710
+ sessionToken: string;
1711
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
1712
+ }>, unknown>;
1713
+ setActiveSessionAsync: _pelatform_ui_re_tanstack_query.UseMutateAsyncFunction<{
1714
+ data: {
1715
+ session: better_auth.Session & Record<string, any>;
1716
+ user: better_auth.User & Record<string, any>;
1717
+ };
1718
+ error: null;
1719
+ } | {
1720
+ data: null;
1721
+ error: {
1722
+ code?: string | undefined | undefined;
1723
+ message?: string | undefined | undefined;
1724
+ status: number;
1725
+ statusText: string;
1726
+ };
1727
+ }, Error, better_auth_client_plugins.Prettify<{
1728
+ sessionToken: string;
1729
+ } & {
1730
+ fetchOptions?: better_auth.ClientFetchOption<Partial<{
1731
+ sessionToken: string;
1732
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
1733
+ }>, unknown>;
1734
+ setActiveSessionPending: boolean;
1735
+ setActiveSessionError: Error | null;
1736
+ data: undefined;
1737
+ error: Error;
1738
+ variables: better_auth_client_plugins.Prettify<{
1739
+ sessionToken: string;
1740
+ } & {
1741
+ fetchOptions?: better_auth.ClientFetchOption<Partial<{
1742
+ sessionToken: string;
1743
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
1744
+ }>;
1745
+ isError: true;
1746
+ isIdle: false;
1747
+ isPending: false;
1748
+ isSuccess: false;
1749
+ status: "error";
1750
+ mutate: _pelatform_ui_re_tanstack_query.UseMutateFunction<{
1751
+ data: {
1752
+ session: better_auth.Session & Record<string, any>;
1753
+ user: better_auth.User & Record<string, any>;
1754
+ };
1755
+ error: null;
1756
+ } | {
1757
+ data: null;
1758
+ error: {
1759
+ code?: string | undefined | undefined;
1760
+ message?: string | undefined | undefined;
1761
+ status: number;
1762
+ statusText: string;
1763
+ };
1764
+ }, Error, better_auth_client_plugins.Prettify<{
1765
+ sessionToken: string;
1766
+ } & {
1767
+ fetchOptions?: better_auth.ClientFetchOption<Partial<{
1768
+ sessionToken: string;
1769
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
1770
+ }>, unknown>;
1771
+ reset: () => void;
1772
+ context: unknown;
1773
+ failureCount: number;
1774
+ failureReason: Error | null;
1775
+ isPaused: boolean;
1776
+ submittedAt: number;
1777
+ mutateAsync: _pelatform_ui_re_tanstack_query.UseMutateAsyncFunction<{
1778
+ data: {
1779
+ session: better_auth.Session & Record<string, any>;
1780
+ user: better_auth.User & Record<string, any>;
1781
+ };
1782
+ error: null;
1783
+ } | {
1784
+ data: null;
1785
+ error: {
1786
+ code?: string | undefined | undefined;
1787
+ message?: string | undefined | undefined;
1788
+ status: number;
1789
+ statusText: string;
1790
+ };
1791
+ }, Error, better_auth_client_plugins.Prettify<{
1792
+ sessionToken: string;
1793
+ } & {
1794
+ fetchOptions?: better_auth.ClientFetchOption<Partial<{
1795
+ sessionToken: string;
1796
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
1797
+ }>, unknown>;
1798
+ } | {
1799
+ setActiveSession: _pelatform_ui_re_tanstack_query.UseMutateFunction<{
1800
+ data: {
1801
+ session: better_auth.Session & Record<string, any>;
1802
+ user: better_auth.User & Record<string, any>;
1803
+ };
1804
+ error: null;
1805
+ } | {
1806
+ data: null;
1807
+ error: {
1808
+ code?: string | undefined | undefined;
1809
+ message?: string | undefined | undefined;
1810
+ status: number;
1811
+ statusText: string;
1812
+ };
1813
+ }, Error, better_auth_client_plugins.Prettify<{
1814
+ sessionToken: string;
1815
+ } & {
1816
+ fetchOptions?: better_auth.ClientFetchOption<Partial<{
1817
+ sessionToken: string;
1818
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
1819
+ }>, unknown>;
1820
+ setActiveSessionAsync: _pelatform_ui_re_tanstack_query.UseMutateAsyncFunction<{
1821
+ data: {
1822
+ session: better_auth.Session & Record<string, any>;
1823
+ user: better_auth.User & Record<string, any>;
1824
+ };
1825
+ error: null;
1826
+ } | {
1827
+ data: null;
1828
+ error: {
1829
+ code?: string | undefined | undefined;
1830
+ message?: string | undefined | undefined;
1831
+ status: number;
1832
+ statusText: string;
1833
+ };
1834
+ }, Error, better_auth_client_plugins.Prettify<{
1835
+ sessionToken: string;
1836
+ } & {
1837
+ fetchOptions?: better_auth.ClientFetchOption<Partial<{
1838
+ sessionToken: string;
1839
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
1840
+ }>, unknown>;
1841
+ setActiveSessionPending: boolean;
1842
+ setActiveSessionError: Error | null;
1843
+ data: {
1844
+ data: {
1845
+ session: better_auth.Session & Record<string, any>;
1846
+ user: better_auth.User & Record<string, any>;
1847
+ };
1848
+ error: null;
1849
+ } | {
1850
+ data: null;
1851
+ error: {
1852
+ code?: string | undefined | undefined;
1853
+ message?: string | undefined | undefined;
1854
+ status: number;
1855
+ statusText: string;
1856
+ };
1857
+ };
1858
+ error: null;
1859
+ variables: better_auth_client_plugins.Prettify<{
1860
+ sessionToken: string;
1861
+ } & {
1862
+ fetchOptions?: better_auth.ClientFetchOption<Partial<{
1863
+ sessionToken: string;
1864
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
1865
+ }>;
1866
+ isError: false;
1867
+ isIdle: false;
1868
+ isPending: false;
1869
+ isSuccess: true;
1870
+ status: "success";
1871
+ mutate: _pelatform_ui_re_tanstack_query.UseMutateFunction<{
1872
+ data: {
1873
+ session: better_auth.Session & Record<string, any>;
1874
+ user: better_auth.User & Record<string, any>;
1875
+ };
1876
+ error: null;
1877
+ } | {
1878
+ data: null;
1879
+ error: {
1880
+ code?: string | undefined | undefined;
1881
+ message?: string | undefined | undefined;
1882
+ status: number;
1883
+ statusText: string;
1884
+ };
1885
+ }, Error, better_auth_client_plugins.Prettify<{
1886
+ sessionToken: string;
1887
+ } & {
1888
+ fetchOptions?: better_auth.ClientFetchOption<Partial<{
1889
+ sessionToken: string;
1890
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
1891
+ }>, unknown>;
1892
+ reset: () => void;
1893
+ context: unknown;
1894
+ failureCount: number;
1895
+ failureReason: Error | null;
1896
+ isPaused: boolean;
1897
+ submittedAt: number;
1898
+ mutateAsync: _pelatform_ui_re_tanstack_query.UseMutateAsyncFunction<{
1899
+ data: {
1900
+ session: better_auth.Session & Record<string, any>;
1901
+ user: better_auth.User & Record<string, any>;
1902
+ };
1903
+ error: null;
1904
+ } | {
1905
+ data: null;
1906
+ error: {
1907
+ code?: string | undefined | undefined;
1908
+ message?: string | undefined | undefined;
1909
+ status: number;
1910
+ statusText: string;
1911
+ };
1912
+ }, Error, better_auth_client_plugins.Prettify<{
1913
+ sessionToken: string;
1914
+ } & {
1915
+ fetchOptions?: better_auth.ClientFetchOption<Partial<{
1916
+ sessionToken: string;
1917
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
1918
+ }>, unknown>;
1919
+ };
1920
+
1921
+ declare function useDeletePasskey(options?: Partial<AuthQueryOptions>): {
1922
+ mutate: _pelatform_ui_re_tanstack_query.UseMutateFunction<NonThrowableResult | ThrowableResult, Error, better_auth_client_plugins.Prettify<{
1923
+ id: string;
1924
+ } & {
1925
+ fetchOptions?: better_auth.ClientFetchOption<Partial<{
1926
+ id: string;
1927
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
1928
+ }>, {
1929
+ previousData: {};
1930
+ } | undefined>;
1931
+ mutateAsync: {
1932
+ (params: Omit<better_auth_client_plugins.Prettify<{
1933
+ id: string;
1934
+ } & {
1935
+ fetchOptions?: better_auth.ClientFetchOption<Partial<{
1936
+ id: string;
1937
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
1938
+ }>, "fetchOptions"> & {
1939
+ fetchOptions?: {
1940
+ throw?: true;
1941
+ } | undefined;
1942
+ }): Promise<ThrowableResult>;
1943
+ (params: Omit<better_auth_client_plugins.Prettify<{
1944
+ id: string;
1945
+ } & {
1946
+ fetchOptions?: better_auth.ClientFetchOption<Partial<{
1947
+ id: string;
1948
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
1949
+ }>, "fetchOptions"> & {
1950
+ fetchOptions?: _better_fetch_fetch.BetterFetchOption;
1951
+ }): Promise<NonThrowableResult>;
1952
+ };
1953
+ isPending: boolean;
1954
+ error: Error | null;
1955
+ data: undefined;
1956
+ variables: undefined;
1957
+ isError: false;
1958
+ isIdle: true;
1959
+ isSuccess: false;
1960
+ status: "idle";
1961
+ reset: () => void;
1962
+ context: {
1963
+ previousData: {};
1964
+ } | undefined;
1965
+ failureCount: number;
1966
+ failureReason: Error | null;
1967
+ isPaused: boolean;
1968
+ submittedAt: number;
1969
+ } | {
1970
+ mutate: _pelatform_ui_re_tanstack_query.UseMutateFunction<NonThrowableResult | ThrowableResult, Error, better_auth_client_plugins.Prettify<{
1971
+ id: string;
1972
+ } & {
1973
+ fetchOptions?: better_auth.ClientFetchOption<Partial<{
1974
+ id: string;
1975
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
1976
+ }>, {
1977
+ previousData: {};
1978
+ } | undefined>;
1979
+ mutateAsync: {
1980
+ (params: Omit<better_auth_client_plugins.Prettify<{
1981
+ id: string;
1982
+ } & {
1983
+ fetchOptions?: better_auth.ClientFetchOption<Partial<{
1984
+ id: string;
1985
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
1986
+ }>, "fetchOptions"> & {
1987
+ fetchOptions?: {
1988
+ throw?: true;
1989
+ } | undefined;
1990
+ }): Promise<ThrowableResult>;
1991
+ (params: Omit<better_auth_client_plugins.Prettify<{
1992
+ id: string;
1993
+ } & {
1994
+ fetchOptions?: better_auth.ClientFetchOption<Partial<{
1995
+ id: string;
1996
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
1997
+ }>, "fetchOptions"> & {
1998
+ fetchOptions?: _better_fetch_fetch.BetterFetchOption;
1999
+ }): Promise<NonThrowableResult>;
2000
+ };
2001
+ isPending: boolean;
2002
+ error: Error | null;
2003
+ data: undefined;
2004
+ variables: better_auth_client_plugins.Prettify<{
2005
+ id: string;
2006
+ } & {
2007
+ fetchOptions?: better_auth.ClientFetchOption<Partial<{
2008
+ id: string;
2009
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
2010
+ }>;
2011
+ isError: false;
2012
+ isIdle: false;
2013
+ isSuccess: false;
2014
+ status: "pending";
2015
+ reset: () => void;
2016
+ context: {
2017
+ previousData: {};
2018
+ } | undefined;
2019
+ failureCount: number;
2020
+ failureReason: Error | null;
2021
+ isPaused: boolean;
2022
+ submittedAt: number;
2023
+ } | {
2024
+ mutate: _pelatform_ui_re_tanstack_query.UseMutateFunction<NonThrowableResult | ThrowableResult, Error, better_auth_client_plugins.Prettify<{
2025
+ id: string;
2026
+ } & {
2027
+ fetchOptions?: better_auth.ClientFetchOption<Partial<{
2028
+ id: string;
2029
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
2030
+ }>, {
2031
+ previousData: {};
2032
+ } | undefined>;
2033
+ mutateAsync: {
2034
+ (params: Omit<better_auth_client_plugins.Prettify<{
2035
+ id: string;
2036
+ } & {
2037
+ fetchOptions?: better_auth.ClientFetchOption<Partial<{
2038
+ id: string;
2039
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
2040
+ }>, "fetchOptions"> & {
2041
+ fetchOptions?: {
2042
+ throw?: true;
2043
+ } | undefined;
2044
+ }): Promise<ThrowableResult>;
2045
+ (params: Omit<better_auth_client_plugins.Prettify<{
2046
+ id: string;
2047
+ } & {
2048
+ fetchOptions?: better_auth.ClientFetchOption<Partial<{
2049
+ id: string;
2050
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
2051
+ }>, "fetchOptions"> & {
2052
+ fetchOptions?: _better_fetch_fetch.BetterFetchOption;
2053
+ }): Promise<NonThrowableResult>;
2054
+ };
2055
+ isPending: boolean;
2056
+ error: Error | null;
2057
+ data: undefined;
2058
+ variables: better_auth_client_plugins.Prettify<{
2059
+ id: string;
2060
+ } & {
2061
+ fetchOptions?: better_auth.ClientFetchOption<Partial<{
2062
+ id: string;
2063
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
2064
+ }>;
2065
+ isError: true;
2066
+ isIdle: false;
2067
+ isSuccess: false;
2068
+ status: "error";
2069
+ reset: () => void;
2070
+ context: {
2071
+ previousData: {};
2072
+ } | undefined;
2073
+ failureCount: number;
2074
+ failureReason: Error | null;
2075
+ isPaused: boolean;
2076
+ submittedAt: number;
2077
+ } | {
2078
+ mutate: _pelatform_ui_re_tanstack_query.UseMutateFunction<NonThrowableResult | ThrowableResult, Error, better_auth_client_plugins.Prettify<{
2079
+ id: string;
2080
+ } & {
2081
+ fetchOptions?: better_auth.ClientFetchOption<Partial<{
2082
+ id: string;
2083
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
2084
+ }>, {
2085
+ previousData: {};
2086
+ } | undefined>;
2087
+ mutateAsync: {
2088
+ (params: Omit<better_auth_client_plugins.Prettify<{
2089
+ id: string;
2090
+ } & {
2091
+ fetchOptions?: better_auth.ClientFetchOption<Partial<{
2092
+ id: string;
2093
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
2094
+ }>, "fetchOptions"> & {
2095
+ fetchOptions?: {
2096
+ throw?: true;
2097
+ } | undefined;
2098
+ }): Promise<ThrowableResult>;
2099
+ (params: Omit<better_auth_client_plugins.Prettify<{
2100
+ id: string;
2101
+ } & {
2102
+ fetchOptions?: better_auth.ClientFetchOption<Partial<{
2103
+ id: string;
2104
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
2105
+ }>, "fetchOptions"> & {
2106
+ fetchOptions?: _better_fetch_fetch.BetterFetchOption;
2107
+ }): Promise<NonThrowableResult>;
2108
+ };
2109
+ isPending: boolean;
2110
+ error: Error | null;
2111
+ data: NonThrowableResult | ThrowableResult;
2112
+ variables: better_auth_client_plugins.Prettify<{
2113
+ id: string;
2114
+ } & {
2115
+ fetchOptions?: better_auth.ClientFetchOption<Partial<{
2116
+ id: string;
2117
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
2118
+ }>;
2119
+ isError: false;
2120
+ isIdle: false;
2121
+ isSuccess: true;
2122
+ status: "success";
2123
+ reset: () => void;
2124
+ context: {
2125
+ previousData: {};
2126
+ } | undefined;
2127
+ failureCount: number;
2128
+ failureReason: Error | null;
2129
+ isPaused: boolean;
2130
+ submittedAt: number;
2131
+ };
2132
+ declare function useListPasskeys(options?: Partial<AnyUseQueryOptions>): _pelatform_ui_re_tanstack_query.UseQueryResult<node_modules__better_auth_passkey_dist_index_BosVYrMJ_mjs.n[], Error>;
2133
+
2134
+ declare function useListSessions(options?: Partial<AnyUseQueryOptions>): _pelatform_ui_re_tanstack_query.UseQueryResult<better_auth_client_plugins.Prettify<{
2135
+ id: string;
2136
+ createdAt: Date;
2137
+ updatedAt: Date;
2138
+ userId: string;
2139
+ expiresAt: Date;
2140
+ token: string;
2141
+ ipAddress?: string | null | undefined | undefined;
2142
+ userAgent?: string | null | undefined | undefined;
2143
+ }>[], Error>;
2144
+ declare function useRevokeOtherSessions(options?: Partial<AuthQueryOptions>): {
2145
+ mutate: _pelatform_ui_re_tanstack_query.UseMutateFunction<NonThrowableResult | ThrowableResult, Error, better_auth_client_plugins.Prettify<{
2146
+ query?: Record<string, any> | undefined;
2147
+ fetchOptions?: better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
2148
+ }> | undefined, {
2149
+ previousData: {};
2150
+ } | undefined>;
2151
+ mutateAsync: {
2152
+ (params: Omit<better_auth_client_plugins.Prettify<{
2153
+ query?: Record<string, any> | undefined;
2154
+ fetchOptions?: better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
2155
+ }> | undefined, "fetchOptions"> & {
2156
+ fetchOptions?: {
2157
+ throw?: true;
2158
+ } | undefined;
2159
+ }): Promise<ThrowableResult>;
2160
+ (params: Omit<better_auth_client_plugins.Prettify<{
2161
+ query?: Record<string, any> | undefined;
2162
+ fetchOptions?: better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
2163
+ }> | undefined, "fetchOptions"> & {
2164
+ fetchOptions?: _better_fetch_fetch.BetterFetchOption;
2165
+ }): Promise<NonThrowableResult>;
2166
+ };
2167
+ isPending: boolean;
2168
+ error: Error | null;
2169
+ data: undefined;
2170
+ variables: undefined;
2171
+ isError: false;
2172
+ isIdle: true;
2173
+ isSuccess: false;
2174
+ status: "idle";
2175
+ reset: () => void;
2176
+ context: {
2177
+ previousData: {};
2178
+ } | undefined;
2179
+ failureCount: number;
2180
+ failureReason: Error | null;
2181
+ isPaused: boolean;
2182
+ submittedAt: number;
2183
+ } | {
2184
+ mutate: _pelatform_ui_re_tanstack_query.UseMutateFunction<NonThrowableResult | ThrowableResult, Error, better_auth_client_plugins.Prettify<{
2185
+ query?: Record<string, any> | undefined;
2186
+ fetchOptions?: better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
2187
+ }> | undefined, {
2188
+ previousData: {};
2189
+ } | undefined>;
2190
+ mutateAsync: {
2191
+ (params: Omit<better_auth_client_plugins.Prettify<{
2192
+ query?: Record<string, any> | undefined;
2193
+ fetchOptions?: better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
2194
+ }> | undefined, "fetchOptions"> & {
2195
+ fetchOptions?: {
2196
+ throw?: true;
2197
+ } | undefined;
2198
+ }): Promise<ThrowableResult>;
2199
+ (params: Omit<better_auth_client_plugins.Prettify<{
2200
+ query?: Record<string, any> | undefined;
2201
+ fetchOptions?: better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
2202
+ }> | undefined, "fetchOptions"> & {
2203
+ fetchOptions?: _better_fetch_fetch.BetterFetchOption;
2204
+ }): Promise<NonThrowableResult>;
2205
+ };
2206
+ isPending: boolean;
2207
+ error: Error | null;
2208
+ data: undefined;
2209
+ variables: better_auth_client_plugins.Prettify<{
2210
+ query?: Record<string, any> | undefined;
2211
+ fetchOptions?: better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
2212
+ }> | undefined;
2213
+ isError: false;
2214
+ isIdle: false;
2215
+ isSuccess: false;
2216
+ status: "pending";
2217
+ reset: () => void;
2218
+ context: {
2219
+ previousData: {};
2220
+ } | undefined;
2221
+ failureCount: number;
2222
+ failureReason: Error | null;
2223
+ isPaused: boolean;
2224
+ submittedAt: number;
2225
+ } | {
2226
+ mutate: _pelatform_ui_re_tanstack_query.UseMutateFunction<NonThrowableResult | ThrowableResult, Error, better_auth_client_plugins.Prettify<{
2227
+ query?: Record<string, any> | undefined;
2228
+ fetchOptions?: better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
2229
+ }> | undefined, {
2230
+ previousData: {};
2231
+ } | undefined>;
2232
+ mutateAsync: {
2233
+ (params: Omit<better_auth_client_plugins.Prettify<{
2234
+ query?: Record<string, any> | undefined;
2235
+ fetchOptions?: better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
2236
+ }> | undefined, "fetchOptions"> & {
2237
+ fetchOptions?: {
2238
+ throw?: true;
2239
+ } | undefined;
2240
+ }): Promise<ThrowableResult>;
2241
+ (params: Omit<better_auth_client_plugins.Prettify<{
2242
+ query?: Record<string, any> | undefined;
2243
+ fetchOptions?: better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
2244
+ }> | undefined, "fetchOptions"> & {
2245
+ fetchOptions?: _better_fetch_fetch.BetterFetchOption;
2246
+ }): Promise<NonThrowableResult>;
2247
+ };
2248
+ isPending: boolean;
2249
+ error: Error | null;
2250
+ data: undefined;
2251
+ variables: better_auth_client_plugins.Prettify<{
2252
+ query?: Record<string, any> | undefined;
2253
+ fetchOptions?: better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
2254
+ }> | undefined;
2255
+ isError: true;
2256
+ isIdle: false;
2257
+ isSuccess: false;
2258
+ status: "error";
2259
+ reset: () => void;
2260
+ context: {
2261
+ previousData: {};
2262
+ } | undefined;
2263
+ failureCount: number;
2264
+ failureReason: Error | null;
2265
+ isPaused: boolean;
2266
+ submittedAt: number;
2267
+ } | {
2268
+ mutate: _pelatform_ui_re_tanstack_query.UseMutateFunction<NonThrowableResult | ThrowableResult, Error, better_auth_client_plugins.Prettify<{
2269
+ query?: Record<string, any> | undefined;
2270
+ fetchOptions?: better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
2271
+ }> | undefined, {
2272
+ previousData: {};
2273
+ } | undefined>;
2274
+ mutateAsync: {
2275
+ (params: Omit<better_auth_client_plugins.Prettify<{
2276
+ query?: Record<string, any> | undefined;
2277
+ fetchOptions?: better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
2278
+ }> | undefined, "fetchOptions"> & {
2279
+ fetchOptions?: {
2280
+ throw?: true;
2281
+ } | undefined;
2282
+ }): Promise<ThrowableResult>;
2283
+ (params: Omit<better_auth_client_plugins.Prettify<{
2284
+ query?: Record<string, any> | undefined;
2285
+ fetchOptions?: better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
2286
+ }> | undefined, "fetchOptions"> & {
2287
+ fetchOptions?: _better_fetch_fetch.BetterFetchOption;
2288
+ }): Promise<NonThrowableResult>;
2289
+ };
2290
+ isPending: boolean;
2291
+ error: Error | null;
2292
+ data: NonThrowableResult | ThrowableResult;
2293
+ variables: better_auth_client_plugins.Prettify<{
2294
+ query?: Record<string, any> | undefined;
2295
+ fetchOptions?: better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
2296
+ }> | undefined;
2297
+ isError: false;
2298
+ isIdle: false;
2299
+ isSuccess: true;
2300
+ status: "success";
2301
+ reset: () => void;
2302
+ context: {
2303
+ previousData: {};
2304
+ } | undefined;
2305
+ failureCount: number;
2306
+ failureReason: Error | null;
2307
+ isPaused: boolean;
2308
+ submittedAt: number;
2309
+ };
2310
+ declare function useRevokeSession(options?: Partial<AuthQueryOptions>): {
2311
+ mutate: _pelatform_ui_re_tanstack_query.UseMutateFunction<NonThrowableResult | ThrowableResult, Error, better_auth_client_plugins.Prettify<{
2312
+ token: string;
2313
+ } & {
2314
+ fetchOptions?: better_auth.ClientFetchOption<Partial<{
2315
+ token: string;
2316
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
2317
+ }>, {
2318
+ previousData: {};
2319
+ } | undefined>;
2320
+ mutateAsync: {
2321
+ (params: Omit<better_auth_client_plugins.Prettify<{
2322
+ token: string;
2323
+ } & {
2324
+ fetchOptions?: better_auth.ClientFetchOption<Partial<{
2325
+ token: string;
2326
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
2327
+ }>, "fetchOptions"> & {
2328
+ fetchOptions?: {
2329
+ throw?: true;
2330
+ } | undefined;
2331
+ }): Promise<ThrowableResult>;
2332
+ (params: Omit<better_auth_client_plugins.Prettify<{
2333
+ token: string;
2334
+ } & {
2335
+ fetchOptions?: better_auth.ClientFetchOption<Partial<{
2336
+ token: string;
2337
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
2338
+ }>, "fetchOptions"> & {
2339
+ fetchOptions?: _better_fetch_fetch.BetterFetchOption;
2340
+ }): Promise<NonThrowableResult>;
2341
+ };
2342
+ isPending: boolean;
2343
+ error: Error | null;
2344
+ data: undefined;
2345
+ variables: undefined;
2346
+ isError: false;
2347
+ isIdle: true;
2348
+ isSuccess: false;
2349
+ status: "idle";
2350
+ reset: () => void;
2351
+ context: {
2352
+ previousData: {};
2353
+ } | undefined;
2354
+ failureCount: number;
2355
+ failureReason: Error | null;
2356
+ isPaused: boolean;
2357
+ submittedAt: number;
2358
+ } | {
2359
+ mutate: _pelatform_ui_re_tanstack_query.UseMutateFunction<NonThrowableResult | ThrowableResult, Error, better_auth_client_plugins.Prettify<{
2360
+ token: string;
2361
+ } & {
2362
+ fetchOptions?: better_auth.ClientFetchOption<Partial<{
2363
+ token: string;
2364
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
2365
+ }>, {
2366
+ previousData: {};
2367
+ } | undefined>;
2368
+ mutateAsync: {
2369
+ (params: Omit<better_auth_client_plugins.Prettify<{
2370
+ token: string;
2371
+ } & {
2372
+ fetchOptions?: better_auth.ClientFetchOption<Partial<{
2373
+ token: string;
2374
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
2375
+ }>, "fetchOptions"> & {
2376
+ fetchOptions?: {
2377
+ throw?: true;
2378
+ } | undefined;
2379
+ }): Promise<ThrowableResult>;
2380
+ (params: Omit<better_auth_client_plugins.Prettify<{
2381
+ token: string;
2382
+ } & {
2383
+ fetchOptions?: better_auth.ClientFetchOption<Partial<{
2384
+ token: string;
2385
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
2386
+ }>, "fetchOptions"> & {
2387
+ fetchOptions?: _better_fetch_fetch.BetterFetchOption;
2388
+ }): Promise<NonThrowableResult>;
2389
+ };
2390
+ isPending: boolean;
2391
+ error: Error | null;
2392
+ data: undefined;
2393
+ variables: better_auth_client_plugins.Prettify<{
2394
+ token: string;
2395
+ } & {
2396
+ fetchOptions?: better_auth.ClientFetchOption<Partial<{
2397
+ token: string;
2398
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
2399
+ }>;
2400
+ isError: false;
2401
+ isIdle: false;
2402
+ isSuccess: false;
2403
+ status: "pending";
2404
+ reset: () => void;
2405
+ context: {
2406
+ previousData: {};
2407
+ } | undefined;
2408
+ failureCount: number;
2409
+ failureReason: Error | null;
2410
+ isPaused: boolean;
2411
+ submittedAt: number;
2412
+ } | {
2413
+ mutate: _pelatform_ui_re_tanstack_query.UseMutateFunction<NonThrowableResult | ThrowableResult, Error, better_auth_client_plugins.Prettify<{
2414
+ token: string;
2415
+ } & {
2416
+ fetchOptions?: better_auth.ClientFetchOption<Partial<{
2417
+ token: string;
2418
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
2419
+ }>, {
2420
+ previousData: {};
2421
+ } | undefined>;
2422
+ mutateAsync: {
2423
+ (params: Omit<better_auth_client_plugins.Prettify<{
2424
+ token: string;
2425
+ } & {
2426
+ fetchOptions?: better_auth.ClientFetchOption<Partial<{
2427
+ token: string;
2428
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
2429
+ }>, "fetchOptions"> & {
2430
+ fetchOptions?: {
2431
+ throw?: true;
2432
+ } | undefined;
2433
+ }): Promise<ThrowableResult>;
2434
+ (params: Omit<better_auth_client_plugins.Prettify<{
2435
+ token: string;
2436
+ } & {
2437
+ fetchOptions?: better_auth.ClientFetchOption<Partial<{
2438
+ token: string;
2439
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
2440
+ }>, "fetchOptions"> & {
2441
+ fetchOptions?: _better_fetch_fetch.BetterFetchOption;
2442
+ }): Promise<NonThrowableResult>;
2443
+ };
2444
+ isPending: boolean;
2445
+ error: Error | null;
2446
+ data: undefined;
2447
+ variables: better_auth_client_plugins.Prettify<{
2448
+ token: string;
2449
+ } & {
2450
+ fetchOptions?: better_auth.ClientFetchOption<Partial<{
2451
+ token: string;
2452
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
2453
+ }>;
2454
+ isError: true;
2455
+ isIdle: false;
2456
+ isSuccess: false;
2457
+ status: "error";
2458
+ reset: () => void;
2459
+ context: {
2460
+ previousData: {};
2461
+ } | undefined;
2462
+ failureCount: number;
2463
+ failureReason: Error | null;
2464
+ isPaused: boolean;
2465
+ submittedAt: number;
2466
+ } | {
2467
+ mutate: _pelatform_ui_re_tanstack_query.UseMutateFunction<NonThrowableResult | ThrowableResult, Error, better_auth_client_plugins.Prettify<{
2468
+ token: string;
2469
+ } & {
2470
+ fetchOptions?: better_auth.ClientFetchOption<Partial<{
2471
+ token: string;
2472
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
2473
+ }>, {
2474
+ previousData: {};
2475
+ } | undefined>;
2476
+ mutateAsync: {
2477
+ (params: Omit<better_auth_client_plugins.Prettify<{
2478
+ token: string;
2479
+ } & {
2480
+ fetchOptions?: better_auth.ClientFetchOption<Partial<{
2481
+ token: string;
2482
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
2483
+ }>, "fetchOptions"> & {
2484
+ fetchOptions?: {
2485
+ throw?: true;
2486
+ } | undefined;
2487
+ }): Promise<ThrowableResult>;
2488
+ (params: Omit<better_auth_client_plugins.Prettify<{
2489
+ token: string;
2490
+ } & {
2491
+ fetchOptions?: better_auth.ClientFetchOption<Partial<{
2492
+ token: string;
2493
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
2494
+ }>, "fetchOptions"> & {
2495
+ fetchOptions?: _better_fetch_fetch.BetterFetchOption;
2496
+ }): Promise<NonThrowableResult>;
2497
+ };
2498
+ isPending: boolean;
2499
+ error: Error | null;
2500
+ data: NonThrowableResult | ThrowableResult;
2501
+ variables: better_auth_client_plugins.Prettify<{
2502
+ token: string;
2503
+ } & {
2504
+ fetchOptions?: better_auth.ClientFetchOption<Partial<{
2505
+ token: string;
2506
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
2507
+ }>;
2508
+ isError: false;
2509
+ isIdle: false;
2510
+ isSuccess: true;
2511
+ status: "success";
2512
+ reset: () => void;
2513
+ context: {
2514
+ previousData: {};
2515
+ } | undefined;
2516
+ failureCount: number;
2517
+ failureReason: Error | null;
2518
+ isPaused: boolean;
2519
+ submittedAt: number;
2520
+ };
2521
+ declare function useRevokeSessions(options?: Partial<AuthQueryOptions>): {
2522
+ mutate: _pelatform_ui_re_tanstack_query.UseMutateFunction<NonThrowableResult | ThrowableResult, Error, better_auth_client_plugins.Prettify<{
2523
+ query?: Record<string, any> | undefined;
2524
+ fetchOptions?: better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
2525
+ }> | undefined, {
2526
+ previousData: {};
2527
+ } | undefined>;
2528
+ mutateAsync: {
2529
+ (params: Omit<better_auth_client_plugins.Prettify<{
2530
+ query?: Record<string, any> | undefined;
2531
+ fetchOptions?: better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
2532
+ }> | undefined, "fetchOptions"> & {
2533
+ fetchOptions?: {
2534
+ throw?: true;
2535
+ } | undefined;
2536
+ }): Promise<ThrowableResult>;
2537
+ (params: Omit<better_auth_client_plugins.Prettify<{
2538
+ query?: Record<string, any> | undefined;
2539
+ fetchOptions?: better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
2540
+ }> | undefined, "fetchOptions"> & {
2541
+ fetchOptions?: _better_fetch_fetch.BetterFetchOption;
2542
+ }): Promise<NonThrowableResult>;
2543
+ };
2544
+ isPending: boolean;
2545
+ error: Error | null;
2546
+ data: undefined;
2547
+ variables: undefined;
2548
+ isError: false;
2549
+ isIdle: true;
2550
+ isSuccess: false;
2551
+ status: "idle";
2552
+ reset: () => void;
2553
+ context: {
2554
+ previousData: {};
2555
+ } | undefined;
2556
+ failureCount: number;
2557
+ failureReason: Error | null;
2558
+ isPaused: boolean;
2559
+ submittedAt: number;
2560
+ } | {
2561
+ mutate: _pelatform_ui_re_tanstack_query.UseMutateFunction<NonThrowableResult | ThrowableResult, Error, better_auth_client_plugins.Prettify<{
2562
+ query?: Record<string, any> | undefined;
2563
+ fetchOptions?: better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
2564
+ }> | undefined, {
2565
+ previousData: {};
2566
+ } | undefined>;
2567
+ mutateAsync: {
2568
+ (params: Omit<better_auth_client_plugins.Prettify<{
2569
+ query?: Record<string, any> | undefined;
2570
+ fetchOptions?: better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
2571
+ }> | undefined, "fetchOptions"> & {
2572
+ fetchOptions?: {
2573
+ throw?: true;
2574
+ } | undefined;
2575
+ }): Promise<ThrowableResult>;
2576
+ (params: Omit<better_auth_client_plugins.Prettify<{
2577
+ query?: Record<string, any> | undefined;
2578
+ fetchOptions?: better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
2579
+ }> | undefined, "fetchOptions"> & {
2580
+ fetchOptions?: _better_fetch_fetch.BetterFetchOption;
2581
+ }): Promise<NonThrowableResult>;
2582
+ };
2583
+ isPending: boolean;
2584
+ error: Error | null;
2585
+ data: undefined;
2586
+ variables: better_auth_client_plugins.Prettify<{
2587
+ query?: Record<string, any> | undefined;
2588
+ fetchOptions?: better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
2589
+ }> | undefined;
2590
+ isError: false;
2591
+ isIdle: false;
2592
+ isSuccess: false;
2593
+ status: "pending";
2594
+ reset: () => void;
2595
+ context: {
2596
+ previousData: {};
2597
+ } | undefined;
2598
+ failureCount: number;
2599
+ failureReason: Error | null;
2600
+ isPaused: boolean;
2601
+ submittedAt: number;
2602
+ } | {
2603
+ mutate: _pelatform_ui_re_tanstack_query.UseMutateFunction<NonThrowableResult | ThrowableResult, Error, better_auth_client_plugins.Prettify<{
2604
+ query?: Record<string, any> | undefined;
2605
+ fetchOptions?: better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
2606
+ }> | undefined, {
2607
+ previousData: {};
2608
+ } | undefined>;
2609
+ mutateAsync: {
2610
+ (params: Omit<better_auth_client_plugins.Prettify<{
2611
+ query?: Record<string, any> | undefined;
2612
+ fetchOptions?: better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
2613
+ }> | undefined, "fetchOptions"> & {
2614
+ fetchOptions?: {
2615
+ throw?: true;
2616
+ } | undefined;
2617
+ }): Promise<ThrowableResult>;
2618
+ (params: Omit<better_auth_client_plugins.Prettify<{
2619
+ query?: Record<string, any> | undefined;
2620
+ fetchOptions?: better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
2621
+ }> | undefined, "fetchOptions"> & {
2622
+ fetchOptions?: _better_fetch_fetch.BetterFetchOption;
2623
+ }): Promise<NonThrowableResult>;
2624
+ };
2625
+ isPending: boolean;
2626
+ error: Error | null;
2627
+ data: undefined;
2628
+ variables: better_auth_client_plugins.Prettify<{
2629
+ query?: Record<string, any> | undefined;
2630
+ fetchOptions?: better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
2631
+ }> | undefined;
2632
+ isError: true;
2633
+ isIdle: false;
2634
+ isSuccess: false;
2635
+ status: "error";
2636
+ reset: () => void;
2637
+ context: {
2638
+ previousData: {};
2639
+ } | undefined;
2640
+ failureCount: number;
2641
+ failureReason: Error | null;
2642
+ isPaused: boolean;
2643
+ submittedAt: number;
2644
+ } | {
2645
+ mutate: _pelatform_ui_re_tanstack_query.UseMutateFunction<NonThrowableResult | ThrowableResult, Error, better_auth_client_plugins.Prettify<{
2646
+ query?: Record<string, any> | undefined;
2647
+ fetchOptions?: better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
2648
+ }> | undefined, {
2649
+ previousData: {};
2650
+ } | undefined>;
2651
+ mutateAsync: {
2652
+ (params: Omit<better_auth_client_plugins.Prettify<{
2653
+ query?: Record<string, any> | undefined;
2654
+ fetchOptions?: better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
2655
+ }> | undefined, "fetchOptions"> & {
2656
+ fetchOptions?: {
2657
+ throw?: true;
2658
+ } | undefined;
2659
+ }): Promise<ThrowableResult>;
2660
+ (params: Omit<better_auth_client_plugins.Prettify<{
2661
+ query?: Record<string, any> | undefined;
2662
+ fetchOptions?: better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
2663
+ }> | undefined, "fetchOptions"> & {
2664
+ fetchOptions?: _better_fetch_fetch.BetterFetchOption;
2665
+ }): Promise<NonThrowableResult>;
2666
+ };
2667
+ isPending: boolean;
2668
+ error: Error | null;
2669
+ data: NonThrowableResult | ThrowableResult;
2670
+ variables: better_auth_client_plugins.Prettify<{
2671
+ query?: Record<string, any> | undefined;
2672
+ fetchOptions?: better_auth.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
2673
+ }> | undefined;
2674
+ isError: false;
2675
+ isIdle: false;
2676
+ isSuccess: true;
2677
+ status: "success";
2678
+ reset: () => void;
2679
+ context: {
2680
+ previousData: {};
2681
+ } | undefined;
2682
+ failureCount: number;
2683
+ failureReason: Error | null;
2684
+ isPaused: boolean;
2685
+ submittedAt: number;
2686
+ };
2687
+
2688
+ type LayoutContextType = {
2689
+ style: CSSProperties;
2690
+ bodyClassName: string;
2691
+ isMobile: boolean;
2692
+ isSidebarOpen: boolean;
2693
+ sidebarToggle: () => void;
2694
+ logoHeader: ReactNode;
2695
+ };
2696
+ declare const LayoutContext: react.Context<LayoutContextType | undefined>;
2697
+ declare const useLayout: () => LayoutContextType;
2698
+
2699
+ declare function useOnSuccessTransition(redirectToProp?: string): {
2700
+ isPending: boolean;
2701
+ onSuccess: () => Promise<void>;
2702
+ redirectTo: string;
2703
+ };
2704
+
2705
+ declare function useSession(options?: Partial<AnyUseQueryOptions>): {
2706
+ session: Session | undefined;
2707
+ user: User | undefined;
2708
+ data: {
2709
+ user: {
2710
+ id: string;
2711
+ createdAt: Date;
2712
+ updatedAt: Date;
2713
+ email: string;
2714
+ emailVerified: boolean;
2715
+ name: string;
2716
+ image?: string | null | undefined;
2717
+ isAnonymous: boolean | null | undefined;
2718
+ phoneNumber?: string | null | undefined;
2719
+ phoneNumberVerified?: boolean | null | undefined;
2720
+ twoFactorEnabled: boolean | null | undefined;
2721
+ username?: string | null | undefined;
2722
+ displayUsername?: string | null | undefined;
2723
+ banned: boolean | null | undefined;
2724
+ role?: string | null | undefined;
2725
+ banReason?: string | null | undefined;
2726
+ banExpires?: Date | null | undefined;
2727
+ };
2728
+ session: {
2729
+ id: string;
2730
+ createdAt: Date;
2731
+ updatedAt: Date;
2732
+ userId: string;
2733
+ expiresAt: Date;
2734
+ token: string;
2735
+ ipAddress?: string | null | undefined;
2736
+ userAgent?: string | null | undefined;
2737
+ impersonatedBy?: string | null | undefined;
2738
+ activeOrganizationId?: string | null | undefined;
2739
+ };
2740
+ };
2741
+ error: Error;
2742
+ isError: true;
2743
+ isPending: false;
2744
+ isLoading: false;
2745
+ isLoadingError: false;
2746
+ isRefetchError: true;
2747
+ isSuccess: false;
2748
+ isPlaceholderData: false;
2749
+ status: "error";
2750
+ dataUpdatedAt: number;
2751
+ errorUpdatedAt: number;
2752
+ failureCount: number;
2753
+ failureReason: Error | null;
2754
+ errorUpdateCount: number;
2755
+ isFetched: boolean;
2756
+ isFetchedAfterMount: boolean;
2757
+ isFetching: boolean;
2758
+ isInitialLoading: boolean;
2759
+ isPaused: boolean;
2760
+ isRefetching: boolean;
2761
+ isStale: boolean;
2762
+ isEnabled: boolean;
2763
+ refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<{
2764
+ user: {
2765
+ id: string;
2766
+ createdAt: Date;
2767
+ updatedAt: Date;
2768
+ email: string;
2769
+ emailVerified: boolean;
2770
+ name: string;
2771
+ image?: string | null | undefined;
2772
+ isAnonymous: boolean | null | undefined;
2773
+ phoneNumber?: string | null | undefined;
2774
+ phoneNumberVerified?: boolean | null | undefined;
2775
+ twoFactorEnabled: boolean | null | undefined;
2776
+ username?: string | null | undefined;
2777
+ displayUsername?: string | null | undefined;
2778
+ banned: boolean | null | undefined;
2779
+ role?: string | null | undefined;
2780
+ banReason?: string | null | undefined;
2781
+ banExpires?: Date | null | undefined;
2782
+ };
2783
+ session: {
2784
+ id: string;
2785
+ createdAt: Date;
2786
+ updatedAt: Date;
2787
+ userId: string;
2788
+ expiresAt: Date;
2789
+ token: string;
2790
+ ipAddress?: string | null | undefined;
2791
+ userAgent?: string | null | undefined;
2792
+ impersonatedBy?: string | null | undefined;
2793
+ activeOrganizationId?: string | null | undefined;
2794
+ };
2795
+ }, Error>>;
2796
+ fetchStatus: _tanstack_query_core.FetchStatus;
2797
+ promise: Promise<{
2798
+ user: {
2799
+ id: string;
2800
+ createdAt: Date;
2801
+ updatedAt: Date;
2802
+ email: string;
2803
+ emailVerified: boolean;
2804
+ name: string;
2805
+ image?: string | null | undefined;
2806
+ isAnonymous: boolean | null | undefined;
2807
+ phoneNumber?: string | null | undefined;
2808
+ phoneNumberVerified?: boolean | null | undefined;
2809
+ twoFactorEnabled: boolean | null | undefined;
2810
+ username?: string | null | undefined;
2811
+ displayUsername?: string | null | undefined;
2812
+ banned: boolean | null | undefined;
2813
+ role?: string | null | undefined;
2814
+ banReason?: string | null | undefined;
2815
+ banExpires?: Date | null | undefined;
2816
+ };
2817
+ session: {
2818
+ id: string;
2819
+ createdAt: Date;
2820
+ updatedAt: Date;
2821
+ userId: string;
2822
+ expiresAt: Date;
2823
+ token: string;
2824
+ ipAddress?: string | null | undefined;
2825
+ userAgent?: string | null | undefined;
2826
+ impersonatedBy?: string | null | undefined;
2827
+ activeOrganizationId?: string | null | undefined;
2828
+ };
2829
+ }>;
2830
+ } | {
2831
+ session: Session | undefined;
2832
+ user: User | undefined;
2833
+ data: {
2834
+ user: {
2835
+ id: string;
2836
+ createdAt: Date;
2837
+ updatedAt: Date;
2838
+ email: string;
2839
+ emailVerified: boolean;
2840
+ name: string;
2841
+ image?: string | null | undefined;
2842
+ isAnonymous: boolean | null | undefined;
2843
+ phoneNumber?: string | null | undefined;
2844
+ phoneNumberVerified?: boolean | null | undefined;
2845
+ twoFactorEnabled: boolean | null | undefined;
2846
+ username?: string | null | undefined;
2847
+ displayUsername?: string | null | undefined;
2848
+ banned: boolean | null | undefined;
2849
+ role?: string | null | undefined;
2850
+ banReason?: string | null | undefined;
2851
+ banExpires?: Date | null | undefined;
2852
+ };
2853
+ session: {
2854
+ id: string;
2855
+ createdAt: Date;
2856
+ updatedAt: Date;
2857
+ userId: string;
2858
+ expiresAt: Date;
2859
+ token: string;
2860
+ ipAddress?: string | null | undefined;
2861
+ userAgent?: string | null | undefined;
2862
+ impersonatedBy?: string | null | undefined;
2863
+ activeOrganizationId?: string | null | undefined;
2864
+ };
2865
+ };
2866
+ error: null;
2867
+ isError: false;
2868
+ isPending: false;
2869
+ isLoading: false;
2870
+ isLoadingError: false;
2871
+ isRefetchError: false;
2872
+ isSuccess: true;
2873
+ isPlaceholderData: false;
2874
+ status: "success";
2875
+ dataUpdatedAt: number;
2876
+ errorUpdatedAt: number;
2877
+ failureCount: number;
2878
+ failureReason: Error | null;
2879
+ errorUpdateCount: number;
2880
+ isFetched: boolean;
2881
+ isFetchedAfterMount: boolean;
2882
+ isFetching: boolean;
2883
+ isInitialLoading: boolean;
2884
+ isPaused: boolean;
2885
+ isRefetching: boolean;
2886
+ isStale: boolean;
2887
+ isEnabled: boolean;
2888
+ refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<{
2889
+ user: {
2890
+ id: string;
2891
+ createdAt: Date;
2892
+ updatedAt: Date;
2893
+ email: string;
2894
+ emailVerified: boolean;
2895
+ name: string;
2896
+ image?: string | null | undefined;
2897
+ isAnonymous: boolean | null | undefined;
2898
+ phoneNumber?: string | null | undefined;
2899
+ phoneNumberVerified?: boolean | null | undefined;
2900
+ twoFactorEnabled: boolean | null | undefined;
2901
+ username?: string | null | undefined;
2902
+ displayUsername?: string | null | undefined;
2903
+ banned: boolean | null | undefined;
2904
+ role?: string | null | undefined;
2905
+ banReason?: string | null | undefined;
2906
+ banExpires?: Date | null | undefined;
2907
+ };
2908
+ session: {
2909
+ id: string;
2910
+ createdAt: Date;
2911
+ updatedAt: Date;
2912
+ userId: string;
2913
+ expiresAt: Date;
2914
+ token: string;
2915
+ ipAddress?: string | null | undefined;
2916
+ userAgent?: string | null | undefined;
2917
+ impersonatedBy?: string | null | undefined;
2918
+ activeOrganizationId?: string | null | undefined;
2919
+ };
2920
+ }, Error>>;
2921
+ fetchStatus: _tanstack_query_core.FetchStatus;
2922
+ promise: Promise<{
2923
+ user: {
2924
+ id: string;
2925
+ createdAt: Date;
2926
+ updatedAt: Date;
2927
+ email: string;
2928
+ emailVerified: boolean;
2929
+ name: string;
2930
+ image?: string | null | undefined;
2931
+ isAnonymous: boolean | null | undefined;
2932
+ phoneNumber?: string | null | undefined;
2933
+ phoneNumberVerified?: boolean | null | undefined;
2934
+ twoFactorEnabled: boolean | null | undefined;
2935
+ username?: string | null | undefined;
2936
+ displayUsername?: string | null | undefined;
2937
+ banned: boolean | null | undefined;
2938
+ role?: string | null | undefined;
2939
+ banReason?: string | null | undefined;
2940
+ banExpires?: Date | null | undefined;
2941
+ };
2942
+ session: {
2943
+ id: string;
2944
+ createdAt: Date;
2945
+ updatedAt: Date;
2946
+ userId: string;
2947
+ expiresAt: Date;
2948
+ token: string;
2949
+ ipAddress?: string | null | undefined;
2950
+ userAgent?: string | null | undefined;
2951
+ impersonatedBy?: string | null | undefined;
2952
+ activeOrganizationId?: string | null | undefined;
2953
+ };
2954
+ }>;
2955
+ } | {
2956
+ session: Session | undefined;
2957
+ user: User | undefined;
2958
+ data: undefined;
2959
+ error: Error;
2960
+ isError: true;
2961
+ isPending: false;
2962
+ isLoading: false;
2963
+ isLoadingError: true;
2964
+ isRefetchError: false;
2965
+ isSuccess: false;
2966
+ isPlaceholderData: false;
2967
+ status: "error";
2968
+ dataUpdatedAt: number;
2969
+ errorUpdatedAt: number;
2970
+ failureCount: number;
2971
+ failureReason: Error | null;
2972
+ errorUpdateCount: number;
2973
+ isFetched: boolean;
2974
+ isFetchedAfterMount: boolean;
2975
+ isFetching: boolean;
2976
+ isInitialLoading: boolean;
2977
+ isPaused: boolean;
2978
+ isRefetching: boolean;
2979
+ isStale: boolean;
2980
+ isEnabled: boolean;
2981
+ refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<{
2982
+ user: {
2983
+ id: string;
2984
+ createdAt: Date;
2985
+ updatedAt: Date;
2986
+ email: string;
2987
+ emailVerified: boolean;
2988
+ name: string;
2989
+ image?: string | null | undefined;
2990
+ isAnonymous: boolean | null | undefined;
2991
+ phoneNumber?: string | null | undefined;
2992
+ phoneNumberVerified?: boolean | null | undefined;
2993
+ twoFactorEnabled: boolean | null | undefined;
2994
+ username?: string | null | undefined;
2995
+ displayUsername?: string | null | undefined;
2996
+ banned: boolean | null | undefined;
2997
+ role?: string | null | undefined;
2998
+ banReason?: string | null | undefined;
2999
+ banExpires?: Date | null | undefined;
3000
+ };
3001
+ session: {
3002
+ id: string;
3003
+ createdAt: Date;
3004
+ updatedAt: Date;
3005
+ userId: string;
3006
+ expiresAt: Date;
3007
+ token: string;
3008
+ ipAddress?: string | null | undefined;
3009
+ userAgent?: string | null | undefined;
3010
+ impersonatedBy?: string | null | undefined;
3011
+ activeOrganizationId?: string | null | undefined;
3012
+ };
3013
+ }, Error>>;
3014
+ fetchStatus: _tanstack_query_core.FetchStatus;
3015
+ promise: Promise<{
3016
+ user: {
3017
+ id: string;
3018
+ createdAt: Date;
3019
+ updatedAt: Date;
3020
+ email: string;
3021
+ emailVerified: boolean;
3022
+ name: string;
3023
+ image?: string | null | undefined;
3024
+ isAnonymous: boolean | null | undefined;
3025
+ phoneNumber?: string | null | undefined;
3026
+ phoneNumberVerified?: boolean | null | undefined;
3027
+ twoFactorEnabled: boolean | null | undefined;
3028
+ username?: string | null | undefined;
3029
+ displayUsername?: string | null | undefined;
3030
+ banned: boolean | null | undefined;
3031
+ role?: string | null | undefined;
3032
+ banReason?: string | null | undefined;
3033
+ banExpires?: Date | null | undefined;
3034
+ };
3035
+ session: {
3036
+ id: string;
3037
+ createdAt: Date;
3038
+ updatedAt: Date;
3039
+ userId: string;
3040
+ expiresAt: Date;
3041
+ token: string;
3042
+ ipAddress?: string | null | undefined;
3043
+ userAgent?: string | null | undefined;
3044
+ impersonatedBy?: string | null | undefined;
3045
+ activeOrganizationId?: string | null | undefined;
3046
+ };
3047
+ }>;
3048
+ } | {
3049
+ session: Session | undefined;
3050
+ user: User | undefined;
3051
+ data: undefined;
3052
+ error: null;
3053
+ isError: false;
3054
+ isPending: true;
3055
+ isLoading: true;
3056
+ isLoadingError: false;
3057
+ isRefetchError: false;
3058
+ isSuccess: false;
3059
+ isPlaceholderData: false;
3060
+ status: "pending";
3061
+ dataUpdatedAt: number;
3062
+ errorUpdatedAt: number;
3063
+ failureCount: number;
3064
+ failureReason: Error | null;
3065
+ errorUpdateCount: number;
3066
+ isFetched: boolean;
3067
+ isFetchedAfterMount: boolean;
3068
+ isFetching: boolean;
3069
+ isInitialLoading: boolean;
3070
+ isPaused: boolean;
3071
+ isRefetching: boolean;
3072
+ isStale: boolean;
3073
+ isEnabled: boolean;
3074
+ refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<{
3075
+ user: {
3076
+ id: string;
3077
+ createdAt: Date;
3078
+ updatedAt: Date;
3079
+ email: string;
3080
+ emailVerified: boolean;
3081
+ name: string;
3082
+ image?: string | null | undefined;
3083
+ isAnonymous: boolean | null | undefined;
3084
+ phoneNumber?: string | null | undefined;
3085
+ phoneNumberVerified?: boolean | null | undefined;
3086
+ twoFactorEnabled: boolean | null | undefined;
3087
+ username?: string | null | undefined;
3088
+ displayUsername?: string | null | undefined;
3089
+ banned: boolean | null | undefined;
3090
+ role?: string | null | undefined;
3091
+ banReason?: string | null | undefined;
3092
+ banExpires?: Date | null | undefined;
3093
+ };
3094
+ session: {
3095
+ id: string;
3096
+ createdAt: Date;
3097
+ updatedAt: Date;
3098
+ userId: string;
3099
+ expiresAt: Date;
3100
+ token: string;
3101
+ ipAddress?: string | null | undefined;
3102
+ userAgent?: string | null | undefined;
3103
+ impersonatedBy?: string | null | undefined;
3104
+ activeOrganizationId?: string | null | undefined;
3105
+ };
3106
+ }, Error>>;
3107
+ fetchStatus: _tanstack_query_core.FetchStatus;
3108
+ promise: Promise<{
3109
+ user: {
3110
+ id: string;
3111
+ createdAt: Date;
3112
+ updatedAt: Date;
3113
+ email: string;
3114
+ emailVerified: boolean;
3115
+ name: string;
3116
+ image?: string | null | undefined;
3117
+ isAnonymous: boolean | null | undefined;
3118
+ phoneNumber?: string | null | undefined;
3119
+ phoneNumberVerified?: boolean | null | undefined;
3120
+ twoFactorEnabled: boolean | null | undefined;
3121
+ username?: string | null | undefined;
3122
+ displayUsername?: string | null | undefined;
3123
+ banned: boolean | null | undefined;
3124
+ role?: string | null | undefined;
3125
+ banReason?: string | null | undefined;
3126
+ banExpires?: Date | null | undefined;
3127
+ };
3128
+ session: {
3129
+ id: string;
3130
+ createdAt: Date;
3131
+ updatedAt: Date;
3132
+ userId: string;
3133
+ expiresAt: Date;
3134
+ token: string;
3135
+ ipAddress?: string | null | undefined;
3136
+ userAgent?: string | null | undefined;
3137
+ impersonatedBy?: string | null | undefined;
3138
+ activeOrganizationId?: string | null | undefined;
3139
+ };
3140
+ }>;
3141
+ } | {
3142
+ session: Session | undefined;
3143
+ user: User | undefined;
3144
+ data: undefined;
3145
+ error: null;
3146
+ isError: false;
3147
+ isPending: true;
3148
+ isLoadingError: false;
3149
+ isRefetchError: false;
3150
+ isSuccess: false;
3151
+ isPlaceholderData: false;
3152
+ status: "pending";
3153
+ dataUpdatedAt: number;
3154
+ errorUpdatedAt: number;
3155
+ failureCount: number;
3156
+ failureReason: Error | null;
3157
+ errorUpdateCount: number;
3158
+ isFetched: boolean;
3159
+ isFetchedAfterMount: boolean;
3160
+ isFetching: boolean;
3161
+ isLoading: boolean;
3162
+ isInitialLoading: boolean;
3163
+ isPaused: boolean;
3164
+ isRefetching: boolean;
3165
+ isStale: boolean;
3166
+ isEnabled: boolean;
3167
+ refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<{
3168
+ user: {
3169
+ id: string;
3170
+ createdAt: Date;
3171
+ updatedAt: Date;
3172
+ email: string;
3173
+ emailVerified: boolean;
3174
+ name: string;
3175
+ image?: string | null | undefined;
3176
+ isAnonymous: boolean | null | undefined;
3177
+ phoneNumber?: string | null | undefined;
3178
+ phoneNumberVerified?: boolean | null | undefined;
3179
+ twoFactorEnabled: boolean | null | undefined;
3180
+ username?: string | null | undefined;
3181
+ displayUsername?: string | null | undefined;
3182
+ banned: boolean | null | undefined;
3183
+ role?: string | null | undefined;
3184
+ banReason?: string | null | undefined;
3185
+ banExpires?: Date | null | undefined;
3186
+ };
3187
+ session: {
3188
+ id: string;
3189
+ createdAt: Date;
3190
+ updatedAt: Date;
3191
+ userId: string;
3192
+ expiresAt: Date;
3193
+ token: string;
3194
+ ipAddress?: string | null | undefined;
3195
+ userAgent?: string | null | undefined;
3196
+ impersonatedBy?: string | null | undefined;
3197
+ activeOrganizationId?: string | null | undefined;
3198
+ };
3199
+ }, Error>>;
3200
+ fetchStatus: _tanstack_query_core.FetchStatus;
3201
+ promise: Promise<{
3202
+ user: {
3203
+ id: string;
3204
+ createdAt: Date;
3205
+ updatedAt: Date;
3206
+ email: string;
3207
+ emailVerified: boolean;
3208
+ name: string;
3209
+ image?: string | null | undefined;
3210
+ isAnonymous: boolean | null | undefined;
3211
+ phoneNumber?: string | null | undefined;
3212
+ phoneNumberVerified?: boolean | null | undefined;
3213
+ twoFactorEnabled: boolean | null | undefined;
3214
+ username?: string | null | undefined;
3215
+ displayUsername?: string | null | undefined;
3216
+ banned: boolean | null | undefined;
3217
+ role?: string | null | undefined;
3218
+ banReason?: string | null | undefined;
3219
+ banExpires?: Date | null | undefined;
3220
+ };
3221
+ session: {
3222
+ id: string;
3223
+ createdAt: Date;
3224
+ updatedAt: Date;
3225
+ userId: string;
3226
+ expiresAt: Date;
3227
+ token: string;
3228
+ ipAddress?: string | null | undefined;
3229
+ userAgent?: string | null | undefined;
3230
+ impersonatedBy?: string | null | undefined;
3231
+ activeOrganizationId?: string | null | undefined;
3232
+ };
3233
+ }>;
3234
+ } | {
3235
+ session: Session | undefined;
3236
+ user: User | undefined;
3237
+ data: {
3238
+ user: {
3239
+ id: string;
3240
+ createdAt: Date;
3241
+ updatedAt: Date;
3242
+ email: string;
3243
+ emailVerified: boolean;
3244
+ name: string;
3245
+ image?: string | null | undefined;
3246
+ isAnonymous: boolean | null | undefined;
3247
+ phoneNumber?: string | null | undefined;
3248
+ phoneNumberVerified?: boolean | null | undefined;
3249
+ twoFactorEnabled: boolean | null | undefined;
3250
+ username?: string | null | undefined;
3251
+ displayUsername?: string | null | undefined;
3252
+ banned: boolean | null | undefined;
3253
+ role?: string | null | undefined;
3254
+ banReason?: string | null | undefined;
3255
+ banExpires?: Date | null | undefined;
3256
+ };
3257
+ session: {
3258
+ id: string;
3259
+ createdAt: Date;
3260
+ updatedAt: Date;
3261
+ userId: string;
3262
+ expiresAt: Date;
3263
+ token: string;
3264
+ ipAddress?: string | null | undefined;
3265
+ userAgent?: string | null | undefined;
3266
+ impersonatedBy?: string | null | undefined;
3267
+ activeOrganizationId?: string | null | undefined;
3268
+ };
3269
+ };
3270
+ isError: false;
3271
+ error: null;
3272
+ isPending: false;
3273
+ isLoading: false;
3274
+ isLoadingError: false;
3275
+ isRefetchError: false;
3276
+ isSuccess: true;
3277
+ isPlaceholderData: true;
3278
+ status: "success";
3279
+ dataUpdatedAt: number;
3280
+ errorUpdatedAt: number;
3281
+ failureCount: number;
3282
+ failureReason: Error | null;
3283
+ errorUpdateCount: number;
3284
+ isFetched: boolean;
3285
+ isFetchedAfterMount: boolean;
3286
+ isFetching: boolean;
3287
+ isInitialLoading: boolean;
3288
+ isPaused: boolean;
3289
+ isRefetching: boolean;
3290
+ isStale: boolean;
3291
+ isEnabled: boolean;
3292
+ refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<{
3293
+ user: {
3294
+ id: string;
3295
+ createdAt: Date;
3296
+ updatedAt: Date;
3297
+ email: string;
3298
+ emailVerified: boolean;
3299
+ name: string;
3300
+ image?: string | null | undefined;
3301
+ isAnonymous: boolean | null | undefined;
3302
+ phoneNumber?: string | null | undefined;
3303
+ phoneNumberVerified?: boolean | null | undefined;
3304
+ twoFactorEnabled: boolean | null | undefined;
3305
+ username?: string | null | undefined;
3306
+ displayUsername?: string | null | undefined;
3307
+ banned: boolean | null | undefined;
3308
+ role?: string | null | undefined;
3309
+ banReason?: string | null | undefined;
3310
+ banExpires?: Date | null | undefined;
3311
+ };
3312
+ session: {
3313
+ id: string;
3314
+ createdAt: Date;
3315
+ updatedAt: Date;
3316
+ userId: string;
3317
+ expiresAt: Date;
3318
+ token: string;
3319
+ ipAddress?: string | null | undefined;
3320
+ userAgent?: string | null | undefined;
3321
+ impersonatedBy?: string | null | undefined;
3322
+ activeOrganizationId?: string | null | undefined;
3323
+ };
3324
+ }, Error>>;
3325
+ fetchStatus: _tanstack_query_core.FetchStatus;
3326
+ promise: Promise<{
3327
+ user: {
3328
+ id: string;
3329
+ createdAt: Date;
3330
+ updatedAt: Date;
3331
+ email: string;
3332
+ emailVerified: boolean;
3333
+ name: string;
3334
+ image?: string | null | undefined;
3335
+ isAnonymous: boolean | null | undefined;
3336
+ phoneNumber?: string | null | undefined;
3337
+ phoneNumberVerified?: boolean | null | undefined;
3338
+ twoFactorEnabled: boolean | null | undefined;
3339
+ username?: string | null | undefined;
3340
+ displayUsername?: string | null | undefined;
3341
+ banned: boolean | null | undefined;
3342
+ role?: string | null | undefined;
3343
+ banReason?: string | null | undefined;
3344
+ banExpires?: Date | null | undefined;
3345
+ };
3346
+ session: {
3347
+ id: string;
3348
+ createdAt: Date;
3349
+ updatedAt: Date;
3350
+ userId: string;
3351
+ expiresAt: Date;
3352
+ token: string;
3353
+ ipAddress?: string | null | undefined;
3354
+ userAgent?: string | null | undefined;
3355
+ impersonatedBy?: string | null | undefined;
3356
+ activeOrganizationId?: string | null | undefined;
3357
+ };
3358
+ }>;
3359
+ };
3360
+
3361
+ declare function useUpdateUser(options?: Partial<AuthQueryOptions>): {
3362
+ mutate: _pelatform_ui_re_tanstack_query.UseMutateFunction<NonThrowableResult | ThrowableResult, Error, better_auth_client_plugins.Prettify<{
3363
+ image?: (string | null) | undefined;
3364
+ name?: string | undefined;
3365
+ fetchOptions?: better_auth.ClientFetchOption<Partial<Partial<{}> & {
3366
+ name?: string | undefined;
3367
+ image?: string | undefined;
3368
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
3369
+ } & Partial<{} & {} & {} & {
3370
+ phoneNumber?: string | null | undefined;
3371
+ } & {} & {} & {} & {
3372
+ username?: string | null | undefined;
3373
+ displayUsername?: string | null | undefined;
3374
+ } & {} & {}>> | undefined, {
3375
+ previousData: {};
3376
+ } | undefined>;
3377
+ mutateAsync: {
3378
+ (params: Omit<better_auth_client_plugins.Prettify<{
3379
+ image?: (string | null) | undefined;
3380
+ name?: string | undefined;
3381
+ fetchOptions?: better_auth.ClientFetchOption<Partial<Partial<{}> & {
3382
+ name?: string | undefined;
3383
+ image?: string | undefined;
3384
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
3385
+ } & Partial<{} & {} & {} & {
3386
+ phoneNumber?: string | null | undefined;
3387
+ } & {} & {} & {} & {
3388
+ username?: string | null | undefined;
3389
+ displayUsername?: string | null | undefined;
3390
+ } & {} & {}>> | undefined, "fetchOptions"> & {
3391
+ fetchOptions?: {
3392
+ throw?: true;
3393
+ } | undefined;
3394
+ }): Promise<ThrowableResult>;
3395
+ (params: Omit<better_auth_client_plugins.Prettify<{
3396
+ image?: (string | null) | undefined;
3397
+ name?: string | undefined;
3398
+ fetchOptions?: better_auth.ClientFetchOption<Partial<Partial<{}> & {
3399
+ name?: string | undefined;
3400
+ image?: string | undefined;
3401
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
3402
+ } & Partial<{} & {} & {} & {
3403
+ phoneNumber?: string | null | undefined;
3404
+ } & {} & {} & {} & {
3405
+ username?: string | null | undefined;
3406
+ displayUsername?: string | null | undefined;
3407
+ } & {} & {}>> | undefined, "fetchOptions"> & {
3408
+ fetchOptions?: _better_fetch_fetch.BetterFetchOption;
3409
+ }): Promise<NonThrowableResult>;
3410
+ };
3411
+ isPending: boolean;
3412
+ error: Error | null;
3413
+ data: undefined;
3414
+ variables: undefined;
3415
+ isError: false;
3416
+ isIdle: true;
3417
+ isSuccess: false;
3418
+ status: "idle";
3419
+ reset: () => void;
3420
+ context: {
3421
+ previousData: {};
3422
+ } | undefined;
3423
+ failureCount: number;
3424
+ failureReason: Error | null;
3425
+ isPaused: boolean;
3426
+ submittedAt: number;
3427
+ } | {
3428
+ mutate: _pelatform_ui_re_tanstack_query.UseMutateFunction<NonThrowableResult | ThrowableResult, Error, better_auth_client_plugins.Prettify<{
3429
+ image?: (string | null) | undefined;
3430
+ name?: string | undefined;
3431
+ fetchOptions?: better_auth.ClientFetchOption<Partial<Partial<{}> & {
3432
+ name?: string | undefined;
3433
+ image?: string | undefined;
3434
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
3435
+ } & Partial<{} & {} & {} & {
3436
+ phoneNumber?: string | null | undefined;
3437
+ } & {} & {} & {} & {
3438
+ username?: string | null | undefined;
3439
+ displayUsername?: string | null | undefined;
3440
+ } & {} & {}>> | undefined, {
3441
+ previousData: {};
3442
+ } | undefined>;
3443
+ mutateAsync: {
3444
+ (params: Omit<better_auth_client_plugins.Prettify<{
3445
+ image?: (string | null) | undefined;
3446
+ name?: string | undefined;
3447
+ fetchOptions?: better_auth.ClientFetchOption<Partial<Partial<{}> & {
3448
+ name?: string | undefined;
3449
+ image?: string | undefined;
3450
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
3451
+ } & Partial<{} & {} & {} & {
3452
+ phoneNumber?: string | null | undefined;
3453
+ } & {} & {} & {} & {
3454
+ username?: string | null | undefined;
3455
+ displayUsername?: string | null | undefined;
3456
+ } & {} & {}>> | undefined, "fetchOptions"> & {
3457
+ fetchOptions?: {
3458
+ throw?: true;
3459
+ } | undefined;
3460
+ }): Promise<ThrowableResult>;
3461
+ (params: Omit<better_auth_client_plugins.Prettify<{
3462
+ image?: (string | null) | undefined;
3463
+ name?: string | undefined;
3464
+ fetchOptions?: better_auth.ClientFetchOption<Partial<Partial<{}> & {
3465
+ name?: string | undefined;
3466
+ image?: string | undefined;
3467
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
3468
+ } & Partial<{} & {} & {} & {
3469
+ phoneNumber?: string | null | undefined;
3470
+ } & {} & {} & {} & {
3471
+ username?: string | null | undefined;
3472
+ displayUsername?: string | null | undefined;
3473
+ } & {} & {}>> | undefined, "fetchOptions"> & {
3474
+ fetchOptions?: _better_fetch_fetch.BetterFetchOption;
3475
+ }): Promise<NonThrowableResult>;
3476
+ };
3477
+ isPending: boolean;
3478
+ error: Error | null;
3479
+ data: undefined;
3480
+ variables: better_auth_client_plugins.Prettify<{
3481
+ image?: (string | null) | undefined;
3482
+ name?: string | undefined;
3483
+ fetchOptions?: better_auth.ClientFetchOption<Partial<Partial<{}> & {
3484
+ name?: string | undefined;
3485
+ image?: string | undefined;
3486
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
3487
+ } & Partial<{} & {} & {} & {
3488
+ phoneNumber?: string | null | undefined;
3489
+ } & {} & {} & {} & {
3490
+ username?: string | null | undefined;
3491
+ displayUsername?: string | null | undefined;
3492
+ } & {} & {}>> | undefined;
3493
+ isError: false;
3494
+ isIdle: false;
3495
+ isSuccess: false;
3496
+ status: "pending";
3497
+ reset: () => void;
3498
+ context: {
3499
+ previousData: {};
3500
+ } | undefined;
3501
+ failureCount: number;
3502
+ failureReason: Error | null;
3503
+ isPaused: boolean;
3504
+ submittedAt: number;
3505
+ } | {
3506
+ mutate: _pelatform_ui_re_tanstack_query.UseMutateFunction<NonThrowableResult | ThrowableResult, Error, better_auth_client_plugins.Prettify<{
3507
+ image?: (string | null) | undefined;
3508
+ name?: string | undefined;
3509
+ fetchOptions?: better_auth.ClientFetchOption<Partial<Partial<{}> & {
3510
+ name?: string | undefined;
3511
+ image?: string | undefined;
3512
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
3513
+ } & Partial<{} & {} & {} & {
3514
+ phoneNumber?: string | null | undefined;
3515
+ } & {} & {} & {} & {
3516
+ username?: string | null | undefined;
3517
+ displayUsername?: string | null | undefined;
3518
+ } & {} & {}>> | undefined, {
3519
+ previousData: {};
3520
+ } | undefined>;
3521
+ mutateAsync: {
3522
+ (params: Omit<better_auth_client_plugins.Prettify<{
3523
+ image?: (string | null) | undefined;
3524
+ name?: string | undefined;
3525
+ fetchOptions?: better_auth.ClientFetchOption<Partial<Partial<{}> & {
3526
+ name?: string | undefined;
3527
+ image?: string | undefined;
3528
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
3529
+ } & Partial<{} & {} & {} & {
3530
+ phoneNumber?: string | null | undefined;
3531
+ } & {} & {} & {} & {
3532
+ username?: string | null | undefined;
3533
+ displayUsername?: string | null | undefined;
3534
+ } & {} & {}>> | undefined, "fetchOptions"> & {
3535
+ fetchOptions?: {
3536
+ throw?: true;
3537
+ } | undefined;
3538
+ }): Promise<ThrowableResult>;
3539
+ (params: Omit<better_auth_client_plugins.Prettify<{
3540
+ image?: (string | null) | undefined;
3541
+ name?: string | undefined;
3542
+ fetchOptions?: better_auth.ClientFetchOption<Partial<Partial<{}> & {
3543
+ name?: string | undefined;
3544
+ image?: string | undefined;
3545
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
3546
+ } & Partial<{} & {} & {} & {
3547
+ phoneNumber?: string | null | undefined;
3548
+ } & {} & {} & {} & {
3549
+ username?: string | null | undefined;
3550
+ displayUsername?: string | null | undefined;
3551
+ } & {} & {}>> | undefined, "fetchOptions"> & {
3552
+ fetchOptions?: _better_fetch_fetch.BetterFetchOption;
3553
+ }): Promise<NonThrowableResult>;
3554
+ };
3555
+ isPending: boolean;
3556
+ error: Error | null;
3557
+ data: undefined;
3558
+ variables: better_auth_client_plugins.Prettify<{
3559
+ image?: (string | null) | undefined;
3560
+ name?: string | undefined;
3561
+ fetchOptions?: better_auth.ClientFetchOption<Partial<Partial<{}> & {
3562
+ name?: string | undefined;
3563
+ image?: string | undefined;
3564
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
3565
+ } & Partial<{} & {} & {} & {
3566
+ phoneNumber?: string | null | undefined;
3567
+ } & {} & {} & {} & {
3568
+ username?: string | null | undefined;
3569
+ displayUsername?: string | null | undefined;
3570
+ } & {} & {}>> | undefined;
3571
+ isError: true;
3572
+ isIdle: false;
3573
+ isSuccess: false;
3574
+ status: "error";
3575
+ reset: () => void;
3576
+ context: {
3577
+ previousData: {};
3578
+ } | undefined;
3579
+ failureCount: number;
3580
+ failureReason: Error | null;
3581
+ isPaused: boolean;
3582
+ submittedAt: number;
3583
+ } | {
3584
+ mutate: _pelatform_ui_re_tanstack_query.UseMutateFunction<NonThrowableResult | ThrowableResult, Error, better_auth_client_plugins.Prettify<{
3585
+ image?: (string | null) | undefined;
3586
+ name?: string | undefined;
3587
+ fetchOptions?: better_auth.ClientFetchOption<Partial<Partial<{}> & {
3588
+ name?: string | undefined;
3589
+ image?: string | undefined;
3590
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
3591
+ } & Partial<{} & {} & {} & {
3592
+ phoneNumber?: string | null | undefined;
3593
+ } & {} & {} & {} & {
3594
+ username?: string | null | undefined;
3595
+ displayUsername?: string | null | undefined;
3596
+ } & {} & {}>> | undefined, {
3597
+ previousData: {};
3598
+ } | undefined>;
3599
+ mutateAsync: {
3600
+ (params: Omit<better_auth_client_plugins.Prettify<{
3601
+ image?: (string | null) | undefined;
3602
+ name?: string | undefined;
3603
+ fetchOptions?: better_auth.ClientFetchOption<Partial<Partial<{}> & {
3604
+ name?: string | undefined;
3605
+ image?: string | undefined;
3606
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
3607
+ } & Partial<{} & {} & {} & {
3608
+ phoneNumber?: string | null | undefined;
3609
+ } & {} & {} & {} & {
3610
+ username?: string | null | undefined;
3611
+ displayUsername?: string | null | undefined;
3612
+ } & {} & {}>> | undefined, "fetchOptions"> & {
3613
+ fetchOptions?: {
3614
+ throw?: true;
3615
+ } | undefined;
3616
+ }): Promise<ThrowableResult>;
3617
+ (params: Omit<better_auth_client_plugins.Prettify<{
3618
+ image?: (string | null) | undefined;
3619
+ name?: string | undefined;
3620
+ fetchOptions?: better_auth.ClientFetchOption<Partial<Partial<{}> & {
3621
+ name?: string | undefined;
3622
+ image?: string | undefined;
3623
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
3624
+ } & Partial<{} & {} & {} & {
3625
+ phoneNumber?: string | null | undefined;
3626
+ } & {} & {} & {} & {
3627
+ username?: string | null | undefined;
3628
+ displayUsername?: string | null | undefined;
3629
+ } & {} & {}>> | undefined, "fetchOptions"> & {
3630
+ fetchOptions?: _better_fetch_fetch.BetterFetchOption;
3631
+ }): Promise<NonThrowableResult>;
3632
+ };
3633
+ isPending: boolean;
3634
+ error: Error | null;
3635
+ data: NonThrowableResult | ThrowableResult;
3636
+ variables: better_auth_client_plugins.Prettify<{
3637
+ image?: (string | null) | undefined;
3638
+ name?: string | undefined;
3639
+ fetchOptions?: better_auth.ClientFetchOption<Partial<Partial<{}> & {
3640
+ name?: string | undefined;
3641
+ image?: string | undefined;
3642
+ }> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined> | undefined;
3643
+ } & Partial<{} & {} & {} & {
3644
+ phoneNumber?: string | null | undefined;
3645
+ } & {} & {} & {} & {
3646
+ username?: string | null | undefined;
3647
+ displayUsername?: string | null | undefined;
3648
+ } & {} & {}>> | undefined;
3649
+ isError: false;
3650
+ isIdle: false;
3651
+ isSuccess: true;
3652
+ status: "success";
3653
+ reset: () => void;
3654
+ context: {
3655
+ previousData: {};
3656
+ } | undefined;
3657
+ failureCount: number;
3658
+ failureReason: Error | null;
3659
+ isPaused: boolean;
3660
+ submittedAt: number;
3661
+ };
3662
+
3663
+ declare function BackupCodesDialog({ classNames, onOpenChange, title, description, backupCodes, ...props }: DialogComponentProps & {
3664
+ backupCodes: string[];
3665
+ }): react_jsx_runtime.JSX.Element;
3666
+
3667
+ declare function DeleteAccountDialog({ classNames, onOpenChange, title, description, accounts, ...props }: DialogComponentProps & {
3668
+ accounts?: Account[] | null;
3669
+ }): react_jsx_runtime.JSX.Element;
3670
+
3671
+ declare function SessionFreshnessDialog({ classNames, onOpenChange, title, description, ...props }: DialogComponentProps): react_jsx_runtime.JSX.Element;
3672
+
3673
+ declare function TwoFactorPasswordDialog({ classNames, onOpenChange, title, description, isTwoFactorEnabled, ...props }: DialogComponentProps & {
3674
+ isTwoFactorEnabled: boolean;
3675
+ }): react_jsx_runtime.JSX.Element;
3676
+
3677
+ declare function DeleteAccountCard({ className, classNames, isPending, accounts, skipHook, ...props }: CardComponentProps & {
3678
+ accounts?: Account[] | null;
3679
+ skipHook?: boolean;
3680
+ }): react_jsx_runtime.JSX.Element;
3681
+
3682
+ declare function FormAvatarCard({ className, classNames, avatar, ...props }: CardComponentProps & {
3683
+ avatar?: ImageOptions;
3684
+ }): react_jsx_runtime.JSX.Element;
3685
+
3686
+ declare function FormEmailCard({ className, classNames, ...props }: CardComponentProps): react_jsx_runtime.JSX.Element;
3687
+
3688
+ declare function FormFieldsCard({ className, classNames, description, instructions, name, placeholder, required, label, type, multiline, value, validate, ...props }: CardComponentProps & {
3689
+ name: string;
3690
+ placeholder?: string;
3691
+ required?: boolean;
3692
+ label?: ReactNode;
3693
+ type?: FieldType;
3694
+ multiline?: boolean;
3695
+ value?: unknown;
3696
+ validate?: (value: string) => boolean | Promise<boolean>;
3697
+ }): react_jsx_runtime.JSX.Element;
3698
+
3699
+ declare function FormNameCard({ className, classNames, ...props }: CardComponentProps): react_jsx_runtime.JSX.Element;
3700
+
3701
+ declare function FormPasswordCard({ className, classNames, isPending, accounts, passwordValidation: propPasswordValidation, skipHook, ...props }: CardComponentProps & {
3702
+ accounts?: {
3703
+ providerId: string;
3704
+ }[] | null;
3705
+ passwordValidation?: PasswordValidation;
3706
+ skipHook?: boolean;
3707
+ }): react_jsx_runtime.JSX.Element;
3708
+
3709
+ declare function FormUsernameCard({ className, classNames, ...props }: CardComponentProps): react_jsx_runtime.JSX.Element;
3710
+
3711
+ declare function MultiAccountCard({ className, classNames, ...props }: CardComponentProps): react_jsx_runtime.JSX.Element;
3712
+
3713
+ declare function PasskeysCard({ className, classNames, ...props }: CardComponentProps): react_jsx_runtime.JSX.Element;
3714
+
3715
+ declare function ProvidersCard({ className, classNames, isPending, accounts, refetch, skipHook, ...props }: CardComponentProps & {
3716
+ accounts?: Account[] | null;
3717
+ refetch?: Refetch;
3718
+ skipHook?: boolean;
3719
+ }): react_jsx_runtime.JSX.Element;
3720
+
3721
+ declare function SessionsCard({ className, classNames, ...props }: CardComponentProps): react_jsx_runtime.JSX.Element;
3722
+
3723
+ declare function TwoFactorCard({ className, classNames, ...props }: CardComponentProps): react_jsx_runtime.JSX.Element;
3724
+
3725
+ declare function SecurityCards({ className, classNames, }: {
3726
+ className?: string;
3727
+ classNames?: CardClassNames;
3728
+ }): react_jsx_runtime.JSX.Element;
3729
+
3730
+ declare function SettingsCards({ className, classNames, avatar, }: {
3731
+ className?: string;
3732
+ classNames?: CardClassNames;
3733
+ avatar?: ImageOptions;
3734
+ }): react_jsx_runtime.JSX.Element;
3735
+
3736
+ declare function ApiKeysCard({ className, classNames, isPending: workspacePending, isWorkspace, workspaceId, ...props }: CardComponentProps & {
3737
+ isWorkspace?: boolean;
3738
+ workspaceId?: string;
3739
+ }): react_jsx_runtime.JSX.Element;
3740
+
3741
+ declare function CreateApiKeyDialog({ classNames, onOpenChange, title, description, onSuccess, refetch, isWorkspace, workspaceId, ...props }: DialogComponentProps & {
3742
+ onSuccess: (key: string) => void;
3743
+ refetch?: Refetch;
3744
+ isWorkspace?: boolean;
3745
+ workspaceId?: string;
3746
+ }): react_jsx_runtime.JSX.Element;
3747
+
3748
+ declare function ApiKeyDeleteDialog({ classNames, onOpenChange, title, description, apiKey, refetch, ...props }: DialogComponentProps & {
3749
+ apiKey: ApiKey;
3750
+ refetch?: Refetch;
3751
+ }): react_jsx_runtime.JSX.Element;
3752
+
3753
+ declare function ApiKeyDisplayDialog({ classNames, onOpenChange, title, description, apiKey, ...props }: DialogComponentProps & {
3754
+ apiKey: string;
3755
+ }): react_jsx_runtime.JSX.Element;
3756
+
3757
+ type AuthViewClassNames = {
3758
+ base?: string;
3759
+ header?: string;
3760
+ title?: string;
3761
+ description?: string;
3762
+ content?: string;
3763
+ continueWith?: string;
3764
+ separator?: string;
3765
+ footer?: string;
3766
+ footerLink?: string;
3767
+ form?: AuthFormClassNames;
3768
+ };
3769
+ type AuthFormClassNames = {
3770
+ base?: string;
3771
+ button?: string;
3772
+ icon?: string;
3773
+ label?: string;
3774
+ input?: string;
3775
+ error?: string;
3776
+ checkbox?: string;
3777
+ description?: string;
3778
+ forgotPasswordLink?: string;
3779
+ otpInput?: string;
3780
+ otpInputContainer?: string;
3781
+ qrCode?: string;
3782
+ primaryButton?: string;
3783
+ secondaryButton?: string;
3784
+ outlineButton?: string;
3785
+ providerButton?: string;
3786
+ lastLoginMethod?: string;
3787
+ };
3788
+ interface AuthViewProps {
3789
+ className?: string;
3790
+ classNames?: AuthViewClassNames;
3791
+ cardHeader?: ReactNode;
3792
+ otpSeparators?: 0 | 1 | 2;
3793
+ path?: string;
3794
+ pathname?: string;
3795
+ redirectTo?: string;
3796
+ socialLayout?: 'auto' | 'horizontal' | 'grid' | 'vertical';
3797
+ view?: keyof PathConfig['auth'];
3798
+ }
3799
+ interface AuthFormProps {
3800
+ className?: string;
3801
+ classNames?: AuthFormClassNames;
3802
+ isSubmitting?: boolean;
3803
+ otpSeparators?: 0 | 1 | 2;
3804
+ pathname?: string;
3805
+ redirectTo?: string;
3806
+ setIsSubmitting?: (isSubmitting: boolean) => void;
3807
+ view?: keyof PathConfig['auth'];
3808
+ }
3809
+ interface AuthButtonProps {
3810
+ className?: string;
3811
+ classNames?: AuthViewClassNames;
3812
+ isSubmitting?: boolean;
3813
+ redirectTo?: string;
3814
+ setIsSubmitting?: (isSubmitting: boolean) => void;
3815
+ view?: keyof PathConfig['auth'];
3816
+ }
3817
+
3818
+ declare function EmailOTPButton({ className, classNames, isSubmitting, view }: AuthButtonProps): react_jsx_runtime.JSX.Element;
3819
+
3820
+ declare function LastUsedButton({ className, classNames, size, variant, lastUsedName, }: AuthButtonProps & ComponentProps<typeof Badge> & {
3821
+ lastUsedName: string | undefined;
3822
+ }): false | react_jsx_runtime.JSX.Element | null;
3823
+
3824
+ declare function MagicLinkButton({ className, classNames, isSubmitting, view }: AuthButtonProps): react_jsx_runtime.JSX.Element;
3825
+
3826
+ declare function OneTap({ redirectTo }: {
3827
+ redirectTo?: string;
3828
+ }): null;
3829
+
3830
+ declare function PasskeyButton({ className, classNames, isSubmitting, redirectTo, setIsSubmitting, }: AuthButtonProps): react_jsx_runtime.JSX.Element;
3831
+
3832
+ declare function ProviderButton({ className, classNames, isSubmitting, setIsSubmitting, provider, socialLayout, }: AuthButtonProps & {
3833
+ provider: Provider;
3834
+ socialLayout: 'auto' | 'horizontal' | 'grid' | 'vertical';
3835
+ }): react_jsx_runtime.JSX.Element;
3836
+
3837
+ declare function AuthCallback({ redirectTo }: {
3838
+ redirectTo?: string;
3839
+ }): react_jsx_runtime.JSX.Element;
3840
+
3841
+ declare function EmailOTPForm(props: AuthFormProps): react_jsx_runtime.JSX.Element;
3842
+
3843
+ declare function ForgotPasswordForm({ className, classNames, isSubmitting, setIsSubmitting, }: AuthFormProps): react_jsx_runtime.JSX.Element;
3844
+
3845
+ declare function MagicLinkForm({ className, classNames, isSubmitting, setIsSubmitting, }: AuthFormProps): react_jsx_runtime.JSX.Element;
3846
+
3847
+ declare function RecoverAccountForm({ className, classNames, isSubmitting, redirectTo, setIsSubmitting, }: AuthFormProps): react_jsx_runtime.JSX.Element;
3848
+
3849
+ declare function ResetPasswordForm({ className, classNames, isSubmitting, setIsSubmitting, }: AuthFormProps): react_jsx_runtime.JSX.Element;
3850
+
3851
+ declare function SignInForm({ className, classNames, isSubmitting, redirectTo: redirectToProp, setIsSubmitting, }: AuthFormProps): react_jsx_runtime.JSX.Element;
3852
+
3853
+ declare function SignOut({ redirectTo }: {
3854
+ redirectTo?: string;
3855
+ }): react_jsx_runtime.JSX.Element;
3856
+
3857
+ declare function SignUpForm({ className, classNames, isSubmitting, redirectTo: redirectToProp, setIsSubmitting, }: AuthFormProps): react_jsx_runtime.JSX.Element;
3858
+
3859
+ declare function TwoFactorForm({ className, classNames, isSubmitting, otpSeparators, redirectTo: redirectToProp, setIsSubmitting, }: AuthFormProps): react_jsx_runtime.JSX.Element;
3860
+
3861
+ declare function AuthView({ className, classNames, cardHeader, otpSeparators, path: pathProp, pathname, redirectTo, socialLayout: socialLayoutProp, view: viewProp, }: AuthViewProps): react_jsx_runtime.JSX.Element;
3862
+ declare function AuthForm({ className, classNames, isSubmitting, otpSeparators, pathname, redirectTo, setIsSubmitting, view: viewProp, }: AuthFormProps): react_jsx_runtime.JSX.Element | null;
3863
+
3864
+ declare function AuthLayout({ children, logo, }: {
3865
+ children: ReactNode;
3866
+ logo?: ReactNode;
3867
+ }): react_jsx_runtime.JSX.Element;
3868
+
3869
+ declare function Header({ children }: {
3870
+ children: ReactNode;
3871
+ }): react_jsx_runtime.JSX.Element;
3872
+ declare function HeaderLeft(): react_jsx_runtime.JSX.Element;
3873
+ declare function HeaderRight({ sidebar, button }: {
3874
+ sidebar?: ReactNode;
3875
+ button?: ReactNode;
3876
+ }): react_jsx_runtime.JSX.Element;
3877
+ declare function HeaderSidebarMobile({ children }: {
3878
+ children: ReactNode;
3879
+ }): react_jsx_runtime.JSX.Element;
3880
+
3881
+ declare function LayoutLoader({ children }: {
3882
+ children: ReactNode;
3883
+ }): string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | react.ReactPortal | react.ReactElement<unknown, string | react.JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | react_jsx_runtime.JSX.Element | null | undefined;
3884
+
3885
+ declare function Sidebar({ children }: {
3886
+ children: ReactNode;
3887
+ }): react_jsx_runtime.JSX.Element | null;
3888
+ declare function SidebarHeaderBack({ linkHref, admin, }: {
3889
+ linkHref?: string;
3890
+ admin?: boolean;
3891
+ }): react_jsx_runtime.JSX.Element;
3892
+ declare function SidebarContent({ children }: {
3893
+ children: ReactNode;
3894
+ }): react_jsx_runtime.JSX.Element;
3895
+ declare function SidebarContentMenu({ menu, type, }: {
3896
+ menu: MenuItem[];
3897
+ type?: 'default' | 'toggle';
3898
+ }): react_jsx_runtime.JSX.Element;
3899
+
3900
+ declare function SiteFooter(): react_jsx_runtime.JSX.Element;
3901
+
3902
+ declare function SiteHeader({ menu, logo, }: {
3903
+ menu: NavItem[];
3904
+ logo?: ReactNode;
3905
+ }): react_jsx_runtime.JSX.Element;
3906
+
3907
+ type ToolbarItem = 'darkmode' | 'help' | 'language' | 'onboarding';
3908
+ type ToolbarProps = {
3909
+ className?: string;
3910
+ show?: ReadonlyArray<ToolbarItem>;
3911
+ };
3912
+ declare function Toolbar(props: ToolbarProps): react_jsx_runtime.JSX.Element;
3913
+
3914
+ interface LayoutWrapperProps {
3915
+ children: ReactNode;
3916
+ sidebarHeader: ReactNode;
3917
+ sidebarMenu: ReactNode;
3918
+ logoHeader?: ReactNode;
3919
+ }
3920
+ declare function LayoutWrapper({ children, sidebarHeader, sidebarMenu, logoHeader, }: LayoutWrapperProps): react_jsx_runtime.JSX.Element;
3921
+
3922
+ interface LayoutProviderProps {
3923
+ children: ReactNode;
3924
+ style?: CSSProperties;
3925
+ bodyClassName?: string;
3926
+ className?: string;
3927
+ logoHeader?: ReactNode;
3928
+ }
3929
+ declare function LayoutProvider({ children, style: customStyle, bodyClassName, className, logoHeader, }: LayoutProviderProps): react_jsx_runtime.JSX.Element;
3930
+
3931
+ interface SharedProvidersProps {
3932
+ children: ReactNode;
3933
+ locale: string;
3934
+ messages: Record<string, string>;
3935
+ timeZone?: string;
3936
+ }
3937
+ declare function SharedProviders({ children, locale, messages, timeZone, }: SharedProvidersProps): react_jsx_runtime.JSX.Element;
3938
+
3939
+ declare function CardComponent({ children, className, classNames, title, description, instructions, actionLabel, action, disabled, isDestructive, isPending, isSubmitting, ...props }: CardComponentProps): react_jsx_runtime.JSX.Element;
3940
+ declare function CardHeaderComponent({ className, classNames, title, description, isPending, }: CardComponentProps): react_jsx_runtime.JSX.Element;
3941
+ declare function CardFooterComponent({ className, classNames, instructions, actionLabel, action, disabled, isDestructive, isPending, isSubmitting, }: CardComponentProps): react_jsx_runtime.JSX.Element;
3942
+ declare function CardActionComponent({ classNames, actionLabel, onClick, disabled, isDestructive, isSubmitting, ...props }: CardComponentProps & ComponentProps<typeof Button>): react_jsx_runtime.JSX.Element;
3943
+
3944
+ declare function DialogComponent({ children, classNames, onOpenChange, title, description, disableFooter, cancelButton, cancelButtonDisabled, button, ...props }: DialogComponentProps): react_jsx_runtime.JSX.Element;
3945
+ declare function DialogFooterComponent({ className, classNames, onOpenChange, cancelButton, cancelButtonDisabled, button, }: DialogComponentProps): react_jsx_runtime.JSX.Element;
3946
+
3947
+ declare function SkeletonViewComponent({ classNames }: {
3948
+ classNames?: CardClassNames;
3949
+ }): react_jsx_runtime.JSX.Element;
3950
+ declare function SkeletonInputComponent({ classNames }: {
3951
+ classNames?: CardClassNames;
3952
+ }): react_jsx_runtime.JSX.Element;
3953
+
3954
+ declare function getUserName(user: Profile | null | undefined): string | null | undefined;
3955
+ declare function UserAvatar({ className, classNames, isPending, size, user, ...props }: AvatarProps): react_jsx_runtime.JSX.Element;
3956
+
3957
+ declare function DisplayIdCard({ className, classNames, isPending, id, title, description, ...props }: CardComponentProps & {
3958
+ id: string | undefined;
3959
+ title: string;
3960
+ description: string;
3961
+ }): react_jsx_runtime.JSX.Element;
3962
+
3963
+ type EmptyStateProps = PropsWithChildren<{
3964
+ className?: string;
3965
+ icon?: LucideIcon;
3966
+ title: string;
3967
+ description?: ReactNode;
3968
+ learnMore?: string;
3969
+ learnMoreText?: string;
3970
+ }>;
3971
+ declare function EmptyState({ className, icon: Icon, title, description, learnMore, learnMoreText, children, }: EmptyStateProps): react_jsx_runtime.JSX.Element;
3972
+
3973
+ declare function LanguageSwitcher({ className, type, variant, size, showNames, showFlags, }: Omit<LanguageSwitcherProps, 'currentLocale' | 'locales' | 'onLocaleChange'>): react_jsx_runtime.JSX.Element;
3974
+
3975
+ declare function OTPInputGroup({ otpSeparators }: {
3976
+ otpSeparators?: 0 | 1 | 2;
3977
+ }): react_jsx_runtime.JSX.Element;
3978
+
3979
+ declare function PasswordInput({ className, variant, enableToggle, onChange, ...props }: ComponentProps<typeof Input> & {
3980
+ enableToggle?: boolean;
3981
+ }): react_jsx_runtime.JSX.Element;
3982
+
3983
+ declare const AppleIcon: ProviderIcon;
3984
+ declare const DiscordIcon: ProviderIcon;
3985
+ declare const DropboxIcon: ProviderIcon;
3986
+ declare const FacebookIcon: ProviderIcon;
3987
+ declare const GitHubIcon: ProviderIcon;
3988
+ declare const GitLabIcon: ProviderIcon;
3989
+ declare const GoogleIcon: ProviderIcon;
3990
+ declare const HuggingFaceIcon: ProviderIcon;
3991
+ declare const KickIcon: ProviderIcon;
3992
+ declare const LinearIcon: ProviderIcon;
3993
+ declare const LinkedInIcon: ProviderIcon;
3994
+ declare const MicrosoftIcon: ProviderIcon;
3995
+ declare const NotionIcon: ProviderIcon;
3996
+ declare const RedditIcon: ProviderIcon;
3997
+ declare const RobloxIcon: ProviderIcon;
3998
+ declare const SlackIcon: ProviderIcon;
3999
+ declare const SpotifyIcon: ProviderIcon;
4000
+ declare const TikTokIcon: ProviderIcon;
4001
+ declare const TwitchIcon: ProviderIcon;
4002
+ declare const VKIcon: ProviderIcon;
4003
+ declare const XIcon: ProviderIcon;
4004
+ declare const ZoomIcon: ProviderIcon;
4005
+
4006
+ declare function SignedInHint({ linkHref }: {
4007
+ linkHref?: string;
4008
+ }): react_jsx_runtime.JSX.Element;
4009
+
4010
+ declare function UserMenu({ hiddenSwitcher }: {
4011
+ hiddenSwitcher?: boolean;
4012
+ }): react_jsx_runtime.JSX.Element;
4013
+
4014
+ declare function UserView({ className, classNames, isPending, size, user }: ViewProps): react_jsx_runtime.JSX.Element;
4015
+ declare function ApiKeyView({ className, classNames, apiKey }: ViewProps & {
4016
+ apiKey: ApiKey;
4017
+ }): react_jsx_runtime.JSX.Element;
4018
+
4019
+ export { ApiKeyDeleteDialog, ApiKeyDisplayDialog, ApiKeyView, ApiKeysCard, AppleIcon, type AuthButtonProps, AuthCallback, AuthForm, type AuthFormClassNames, type AuthFormProps, AuthLayout, AuthView, type AuthViewClassNames, type AuthViewProps, BackupCodesDialog, CardActionComponent, CardComponent, CardFooterComponent, CardHeaderComponent, ConfigContext, ConfigProvider, type ConfigProviderProps, CreateApiKeyDialog, DeleteAccountCard, DeleteAccountDialog, DialogComponent, DialogFooterComponent, DiscordIcon, DisplayIdCard, DropboxIcon, EmailOTPButton, EmailOTPForm, EmptyState, type EmptyStateProps, FacebookIcon, ForgotPasswordForm, FormAvatarCard, FormEmailCard, FormFieldsCard, FormNameCard, FormPasswordCard, FormUsernameCard, GitHubIcon, GitLabIcon, GoogleIcon, Header, HeaderLeft, HeaderRight, HeaderSidebarMobile, HuggingFaceIcon, KickIcon, LanguageSwitcher, LastUsedButton, LayoutContext, type LayoutContextType, LayoutLoader, LayoutProvider, type LayoutProviderProps, LayoutWrapper, LinearIcon, LinkedInIcon, MagicLinkButton, MagicLinkForm, MicrosoftIcon, MultiAccountCard, NotionIcon, OTPInputGroup, OneTap, PasskeyButton, PasskeysCard, PasswordInput, ProviderButton, ProvidersCard, QueryContext, RecoverAccountForm, RedditIcon, ResetPasswordForm, RobloxIcon, SecurityCards, SessionFreshnessDialog, SessionsCard, SettingsCards, SharedProviders, type SharedProvidersProps, Sidebar, SidebarContent, SidebarContentMenu, SidebarHeaderBack, SignInForm, SignOut, SignUpForm, SignedInHint, SiteFooter, SiteHeader, SkeletonInputComponent, SkeletonViewComponent, SlackIcon, SpotifyIcon, TikTokIcon, Toolbar, TwitchIcon, TwoFactorCard, TwoFactorForm, TwoFactorPasswordDialog, UserAvatar, UserMenu, UserView, VKIcon, XIcon, ZoomIcon, getUserName, useAccountInfo, useAuthMutation, useAuthQuery, useConfig, useCreateApiKey, useDeleteApiKey, useDeletePasskey, useLayout, useListAccounts, useListApiKeys, useListDeviceSessions, useListPasskeys, useListSessions, useOnMutateError, useOnSuccessTransition, useRevokeDeviceSession, useRevokeOtherSessions, useRevokeSession, useRevokeSessions, useSession, useSetActiveSession, useUnlinkAccount, useUpdateUser };