@datalayer/core 1.0.1 → 1.0.2

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,590 @@
1
+ /** The space type value used to identify project spaces in Solr */
2
+ export declare const PROJECT_SPACE_VARIANT = "project";
3
+ /**
4
+ * Project data type (mapped from spacer service space data).
5
+ */
6
+ export type ProjectData = {
7
+ /** Space UID (unique identifier) */
8
+ uid: string;
9
+ /** Space ID (internal id used by spacer PUT endpoint) */
10
+ id: string;
11
+ /** Space handle (URL-friendly slug) */
12
+ handle: string;
13
+ /** Project name */
14
+ name: string;
15
+ /** Project description */
16
+ description: string;
17
+ /** Creation date */
18
+ createdAt: Date;
19
+ /** Whether the project is public */
20
+ isPublic: boolean;
21
+ /** Attached agent (runtime) pod name, if any */
22
+ attachedAgentPodName?: string;
23
+ /** Attached agent spec ID (e.g. 'datalayer-ai/data-acquisition'), if any */
24
+ attachedAgentSpecId?: string;
25
+ };
26
+ /**
27
+ * Request to create a new project.
28
+ */
29
+ export type CreateProjectRequest = {
30
+ /** Project name */
31
+ name: string;
32
+ /** Project description */
33
+ description?: string;
34
+ /** Agent spec to attach (creates agent on project creation) */
35
+ agentSpecId?: string;
36
+ };
37
+ /**
38
+ * Hook to fetch user's projects (spaces with type "project").
39
+ *
40
+ * Uses the spacer service's spaces endpoint filtered by type.
41
+ */
42
+ export declare function useProjects(): {
43
+ error: Error;
44
+ isError: true;
45
+ isPending: false;
46
+ isLoading: false;
47
+ isLoadingError: false;
48
+ isRefetchError: true;
49
+ isSuccess: false;
50
+ isPlaceholderData: false;
51
+ status: "error";
52
+ dataUpdatedAt: number;
53
+ errorUpdatedAt: number;
54
+ failureCount: number;
55
+ failureReason: Error | null;
56
+ errorUpdateCount: number;
57
+ isFetched: boolean;
58
+ isFetchedAfterMount: boolean;
59
+ isFetching: boolean;
60
+ isInitialLoading: boolean;
61
+ isPaused: boolean;
62
+ isRefetching: boolean;
63
+ isStale: boolean;
64
+ isEnabled: boolean;
65
+ refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<any, Error>>;
66
+ fetchStatus: import("@tanstack/query-core").FetchStatus;
67
+ promise: Promise<any>;
68
+ data: ProjectData[];
69
+ } | {
70
+ error: null;
71
+ isError: false;
72
+ isPending: false;
73
+ isLoading: false;
74
+ isLoadingError: false;
75
+ isRefetchError: false;
76
+ isSuccess: true;
77
+ isPlaceholderData: false;
78
+ status: "success";
79
+ dataUpdatedAt: number;
80
+ errorUpdatedAt: number;
81
+ failureCount: number;
82
+ failureReason: Error | null;
83
+ errorUpdateCount: number;
84
+ isFetched: boolean;
85
+ isFetchedAfterMount: boolean;
86
+ isFetching: boolean;
87
+ isInitialLoading: boolean;
88
+ isPaused: boolean;
89
+ isRefetching: boolean;
90
+ isStale: boolean;
91
+ isEnabled: boolean;
92
+ refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<any, Error>>;
93
+ fetchStatus: import("@tanstack/query-core").FetchStatus;
94
+ promise: Promise<any>;
95
+ data: ProjectData[];
96
+ } | {
97
+ error: Error;
98
+ isError: true;
99
+ isPending: false;
100
+ isLoading: false;
101
+ isLoadingError: true;
102
+ isRefetchError: false;
103
+ isSuccess: false;
104
+ isPlaceholderData: false;
105
+ status: "error";
106
+ dataUpdatedAt: number;
107
+ errorUpdatedAt: number;
108
+ failureCount: number;
109
+ failureReason: Error | null;
110
+ errorUpdateCount: number;
111
+ isFetched: boolean;
112
+ isFetchedAfterMount: boolean;
113
+ isFetching: boolean;
114
+ isInitialLoading: boolean;
115
+ isPaused: boolean;
116
+ isRefetching: boolean;
117
+ isStale: boolean;
118
+ isEnabled: boolean;
119
+ refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<any, Error>>;
120
+ fetchStatus: import("@tanstack/query-core").FetchStatus;
121
+ promise: Promise<any>;
122
+ data: ProjectData[];
123
+ } | {
124
+ error: null;
125
+ isError: false;
126
+ isPending: true;
127
+ isLoading: true;
128
+ isLoadingError: false;
129
+ isRefetchError: false;
130
+ isSuccess: false;
131
+ isPlaceholderData: false;
132
+ status: "pending";
133
+ dataUpdatedAt: number;
134
+ errorUpdatedAt: number;
135
+ failureCount: number;
136
+ failureReason: Error | null;
137
+ errorUpdateCount: number;
138
+ isFetched: boolean;
139
+ isFetchedAfterMount: boolean;
140
+ isFetching: boolean;
141
+ isInitialLoading: boolean;
142
+ isPaused: boolean;
143
+ isRefetching: boolean;
144
+ isStale: boolean;
145
+ isEnabled: boolean;
146
+ refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<any, Error>>;
147
+ fetchStatus: import("@tanstack/query-core").FetchStatus;
148
+ promise: Promise<any>;
149
+ data: ProjectData[];
150
+ } | {
151
+ error: null;
152
+ isError: false;
153
+ isPending: true;
154
+ isLoadingError: false;
155
+ isRefetchError: false;
156
+ isSuccess: false;
157
+ isPlaceholderData: false;
158
+ status: "pending";
159
+ dataUpdatedAt: number;
160
+ errorUpdatedAt: number;
161
+ failureCount: number;
162
+ failureReason: Error | null;
163
+ errorUpdateCount: number;
164
+ isFetched: boolean;
165
+ isFetchedAfterMount: boolean;
166
+ isFetching: boolean;
167
+ isLoading: boolean;
168
+ isInitialLoading: boolean;
169
+ isPaused: boolean;
170
+ isRefetching: boolean;
171
+ isStale: boolean;
172
+ isEnabled: boolean;
173
+ refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<any, Error>>;
174
+ fetchStatus: import("@tanstack/query-core").FetchStatus;
175
+ promise: Promise<any>;
176
+ data: ProjectData[];
177
+ } | {
178
+ isError: false;
179
+ error: null;
180
+ isPending: false;
181
+ isLoading: false;
182
+ isLoadingError: false;
183
+ isRefetchError: false;
184
+ isSuccess: true;
185
+ isPlaceholderData: true;
186
+ status: "success";
187
+ dataUpdatedAt: number;
188
+ errorUpdatedAt: number;
189
+ failureCount: number;
190
+ failureReason: Error | null;
191
+ errorUpdateCount: number;
192
+ isFetched: boolean;
193
+ isFetchedAfterMount: boolean;
194
+ isFetching: boolean;
195
+ isInitialLoading: boolean;
196
+ isPaused: boolean;
197
+ isRefetching: boolean;
198
+ isStale: boolean;
199
+ isEnabled: boolean;
200
+ refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<any, Error>>;
201
+ fetchStatus: import("@tanstack/query-core").FetchStatus;
202
+ promise: Promise<any>;
203
+ data: ProjectData[];
204
+ };
205
+ /**
206
+ * Hook to fetch a single project by UID.
207
+ */
208
+ export declare function useProject(uid: string | undefined): {
209
+ error: Error;
210
+ isError: true;
211
+ isPending: false;
212
+ isLoading: false;
213
+ isLoadingError: false;
214
+ isRefetchError: true;
215
+ isSuccess: false;
216
+ isPlaceholderData: false;
217
+ status: "error";
218
+ dataUpdatedAt: number;
219
+ errorUpdatedAt: number;
220
+ failureCount: number;
221
+ failureReason: Error | null;
222
+ errorUpdateCount: number;
223
+ isFetched: boolean;
224
+ isFetchedAfterMount: boolean;
225
+ isFetching: boolean;
226
+ isInitialLoading: boolean;
227
+ isPaused: boolean;
228
+ isRefetching: boolean;
229
+ isStale: boolean;
230
+ isEnabled: boolean;
231
+ refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<import("..").IAnySpace, Error>>;
232
+ fetchStatus: import("@tanstack/query-core").FetchStatus;
233
+ promise: Promise<import("..").IAnySpace>;
234
+ data: ProjectData | undefined;
235
+ } | {
236
+ error: null;
237
+ isError: false;
238
+ isPending: false;
239
+ isLoading: false;
240
+ isLoadingError: false;
241
+ isRefetchError: false;
242
+ isSuccess: true;
243
+ isPlaceholderData: false;
244
+ status: "success";
245
+ dataUpdatedAt: number;
246
+ errorUpdatedAt: number;
247
+ failureCount: number;
248
+ failureReason: Error | null;
249
+ errorUpdateCount: number;
250
+ isFetched: boolean;
251
+ isFetchedAfterMount: boolean;
252
+ isFetching: boolean;
253
+ isInitialLoading: boolean;
254
+ isPaused: boolean;
255
+ isRefetching: boolean;
256
+ isStale: boolean;
257
+ isEnabled: boolean;
258
+ refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<import("..").IAnySpace, Error>>;
259
+ fetchStatus: import("@tanstack/query-core").FetchStatus;
260
+ promise: Promise<import("..").IAnySpace>;
261
+ data: ProjectData | undefined;
262
+ } | {
263
+ error: Error;
264
+ isError: true;
265
+ isPending: false;
266
+ isLoading: false;
267
+ isLoadingError: true;
268
+ isRefetchError: false;
269
+ isSuccess: false;
270
+ isPlaceholderData: false;
271
+ status: "error";
272
+ dataUpdatedAt: number;
273
+ errorUpdatedAt: number;
274
+ failureCount: number;
275
+ failureReason: Error | null;
276
+ errorUpdateCount: number;
277
+ isFetched: boolean;
278
+ isFetchedAfterMount: boolean;
279
+ isFetching: boolean;
280
+ isInitialLoading: boolean;
281
+ isPaused: boolean;
282
+ isRefetching: boolean;
283
+ isStale: boolean;
284
+ isEnabled: boolean;
285
+ refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<import("..").IAnySpace, Error>>;
286
+ fetchStatus: import("@tanstack/query-core").FetchStatus;
287
+ promise: Promise<import("..").IAnySpace>;
288
+ data: ProjectData | undefined;
289
+ } | {
290
+ error: null;
291
+ isError: false;
292
+ isPending: true;
293
+ isLoading: true;
294
+ isLoadingError: false;
295
+ isRefetchError: false;
296
+ isSuccess: false;
297
+ isPlaceholderData: false;
298
+ status: "pending";
299
+ dataUpdatedAt: number;
300
+ errorUpdatedAt: number;
301
+ failureCount: number;
302
+ failureReason: Error | null;
303
+ errorUpdateCount: number;
304
+ isFetched: boolean;
305
+ isFetchedAfterMount: boolean;
306
+ isFetching: boolean;
307
+ isInitialLoading: boolean;
308
+ isPaused: boolean;
309
+ isRefetching: boolean;
310
+ isStale: boolean;
311
+ isEnabled: boolean;
312
+ refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<import("..").IAnySpace, Error>>;
313
+ fetchStatus: import("@tanstack/query-core").FetchStatus;
314
+ promise: Promise<import("..").IAnySpace>;
315
+ data: ProjectData | undefined;
316
+ } | {
317
+ error: null;
318
+ isError: false;
319
+ isPending: true;
320
+ isLoadingError: false;
321
+ isRefetchError: false;
322
+ isSuccess: false;
323
+ isPlaceholderData: false;
324
+ status: "pending";
325
+ dataUpdatedAt: number;
326
+ errorUpdatedAt: number;
327
+ failureCount: number;
328
+ failureReason: Error | null;
329
+ errorUpdateCount: number;
330
+ isFetched: boolean;
331
+ isFetchedAfterMount: boolean;
332
+ isFetching: boolean;
333
+ isLoading: boolean;
334
+ isInitialLoading: boolean;
335
+ isPaused: boolean;
336
+ isRefetching: boolean;
337
+ isStale: boolean;
338
+ isEnabled: boolean;
339
+ refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<import("..").IAnySpace, Error>>;
340
+ fetchStatus: import("@tanstack/query-core").FetchStatus;
341
+ promise: Promise<import("..").IAnySpace>;
342
+ data: ProjectData | undefined;
343
+ } | {
344
+ isError: false;
345
+ error: null;
346
+ isPending: false;
347
+ isLoading: false;
348
+ isLoadingError: false;
349
+ isRefetchError: false;
350
+ isSuccess: true;
351
+ isPlaceholderData: true;
352
+ status: "success";
353
+ dataUpdatedAt: number;
354
+ errorUpdatedAt: number;
355
+ failureCount: number;
356
+ failureReason: Error | null;
357
+ errorUpdateCount: number;
358
+ isFetched: boolean;
359
+ isFetchedAfterMount: boolean;
360
+ isFetching: boolean;
361
+ isInitialLoading: boolean;
362
+ isPaused: boolean;
363
+ isRefetching: boolean;
364
+ isStale: boolean;
365
+ isEnabled: boolean;
366
+ refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<import("..").IAnySpace, Error>>;
367
+ fetchStatus: import("@tanstack/query-core").FetchStatus;
368
+ promise: Promise<import("..").IAnySpace>;
369
+ data: ProjectData | undefined;
370
+ };
371
+ /**
372
+ * Hook to create a new project.
373
+ * Creates a space with type "project" via the spacer service.
374
+ */
375
+ export declare function useCreateProject(): {
376
+ createProject: (request: CreateProjectRequest) => Promise<any>;
377
+ data: undefined;
378
+ variables: undefined;
379
+ error: null;
380
+ isError: false;
381
+ isIdle: true;
382
+ isPending: false;
383
+ isSuccess: false;
384
+ status: "idle";
385
+ mutate: import("@tanstack/react-query").UseMutateFunction<any, Error, {
386
+ space: Partial<import("..").IAnySpace>;
387
+ organization?: import("..").IAnyOrganization;
388
+ }, unknown>;
389
+ reset: () => void;
390
+ context: unknown;
391
+ failureCount: number;
392
+ failureReason: Error | null;
393
+ isPaused: boolean;
394
+ submittedAt: number;
395
+ mutateAsync: import("@tanstack/react-query").UseMutateAsyncFunction<any, Error, {
396
+ space: Partial<import("..").IAnySpace>;
397
+ organization?: import("..").IAnyOrganization;
398
+ }, unknown>;
399
+ } | {
400
+ createProject: (request: CreateProjectRequest) => Promise<any>;
401
+ data: undefined;
402
+ variables: {
403
+ space: Partial<import("..").IAnySpace>;
404
+ organization?: import("..").IAnyOrganization;
405
+ };
406
+ error: null;
407
+ isError: false;
408
+ isIdle: false;
409
+ isPending: true;
410
+ isSuccess: false;
411
+ status: "pending";
412
+ mutate: import("@tanstack/react-query").UseMutateFunction<any, Error, {
413
+ space: Partial<import("..").IAnySpace>;
414
+ organization?: import("..").IAnyOrganization;
415
+ }, unknown>;
416
+ reset: () => void;
417
+ context: unknown;
418
+ failureCount: number;
419
+ failureReason: Error | null;
420
+ isPaused: boolean;
421
+ submittedAt: number;
422
+ mutateAsync: import("@tanstack/react-query").UseMutateAsyncFunction<any, Error, {
423
+ space: Partial<import("..").IAnySpace>;
424
+ organization?: import("..").IAnyOrganization;
425
+ }, unknown>;
426
+ } | {
427
+ createProject: (request: CreateProjectRequest) => Promise<any>;
428
+ data: undefined;
429
+ error: Error;
430
+ variables: {
431
+ space: Partial<import("..").IAnySpace>;
432
+ organization?: import("..").IAnyOrganization;
433
+ };
434
+ isError: true;
435
+ isIdle: false;
436
+ isPending: false;
437
+ isSuccess: false;
438
+ status: "error";
439
+ mutate: import("@tanstack/react-query").UseMutateFunction<any, Error, {
440
+ space: Partial<import("..").IAnySpace>;
441
+ organization?: import("..").IAnyOrganization;
442
+ }, unknown>;
443
+ reset: () => void;
444
+ context: unknown;
445
+ failureCount: number;
446
+ failureReason: Error | null;
447
+ isPaused: boolean;
448
+ submittedAt: number;
449
+ mutateAsync: import("@tanstack/react-query").UseMutateAsyncFunction<any, Error, {
450
+ space: Partial<import("..").IAnySpace>;
451
+ organization?: import("..").IAnyOrganization;
452
+ }, unknown>;
453
+ } | {
454
+ createProject: (request: CreateProjectRequest) => Promise<any>;
455
+ data: any;
456
+ error: null;
457
+ variables: {
458
+ space: Partial<import("..").IAnySpace>;
459
+ organization?: import("..").IAnyOrganization;
460
+ };
461
+ isError: false;
462
+ isIdle: false;
463
+ isPending: false;
464
+ isSuccess: true;
465
+ status: "success";
466
+ mutate: import("@tanstack/react-query").UseMutateFunction<any, Error, {
467
+ space: Partial<import("..").IAnySpace>;
468
+ organization?: import("..").IAnyOrganization;
469
+ }, unknown>;
470
+ reset: () => void;
471
+ context: unknown;
472
+ failureCount: number;
473
+ failureReason: Error | null;
474
+ isPaused: boolean;
475
+ submittedAt: number;
476
+ mutateAsync: import("@tanstack/react-query").UseMutateAsyncFunction<any, Error, {
477
+ space: Partial<import("..").IAnySpace>;
478
+ organization?: import("..").IAnyOrganization;
479
+ }, unknown>;
480
+ };
481
+ /**
482
+ * Hook to update a project (e.g. persist the attached agent pod name).
483
+ * Uses the spacer PUT endpoint via useUpdateSpace.
484
+ */
485
+ export declare function useUpdateProject(): {
486
+ assignAgent: (project: ProjectData, agentPodName: string, agentSpecId?: string) => Promise<any>;
487
+ unassignAgent: (project: ProjectData) => Promise<any>;
488
+ renameProject: (project: ProjectData, newName: string) => Promise<any>;
489
+ data: undefined;
490
+ variables: undefined;
491
+ error: null;
492
+ isError: false;
493
+ isIdle: true;
494
+ isPending: false;
495
+ isSuccess: false;
496
+ status: "idle";
497
+ mutate: import("@tanstack/react-query").UseMutateFunction<any, Error, Partial<import("..").IAnySpace> & Record<string, unknown>, unknown>;
498
+ reset: () => void;
499
+ context: unknown;
500
+ failureCount: number;
501
+ failureReason: Error | null;
502
+ isPaused: boolean;
503
+ submittedAt: number;
504
+ mutateAsync: import("@tanstack/react-query").UseMutateAsyncFunction<any, Error, Partial<import("..").IAnySpace> & Record<string, unknown>, unknown>;
505
+ } | {
506
+ assignAgent: (project: ProjectData, agentPodName: string, agentSpecId?: string) => Promise<any>;
507
+ unassignAgent: (project: ProjectData) => Promise<any>;
508
+ renameProject: (project: ProjectData, newName: string) => Promise<any>;
509
+ data: undefined;
510
+ variables: Partial<import("..").IAnySpace> & Record<string, unknown>;
511
+ error: null;
512
+ isError: false;
513
+ isIdle: false;
514
+ isPending: true;
515
+ isSuccess: false;
516
+ status: "pending";
517
+ mutate: import("@tanstack/react-query").UseMutateFunction<any, Error, Partial<import("..").IAnySpace> & Record<string, unknown>, unknown>;
518
+ reset: () => void;
519
+ context: unknown;
520
+ failureCount: number;
521
+ failureReason: Error | null;
522
+ isPaused: boolean;
523
+ submittedAt: number;
524
+ mutateAsync: import("@tanstack/react-query").UseMutateAsyncFunction<any, Error, Partial<import("..").IAnySpace> & Record<string, unknown>, unknown>;
525
+ } | {
526
+ assignAgent: (project: ProjectData, agentPodName: string, agentSpecId?: string) => Promise<any>;
527
+ unassignAgent: (project: ProjectData) => Promise<any>;
528
+ renameProject: (project: ProjectData, newName: string) => Promise<any>;
529
+ data: undefined;
530
+ error: Error;
531
+ variables: Partial<import("..").IAnySpace> & Record<string, unknown>;
532
+ isError: true;
533
+ isIdle: false;
534
+ isPending: false;
535
+ isSuccess: false;
536
+ status: "error";
537
+ mutate: import("@tanstack/react-query").UseMutateFunction<any, Error, Partial<import("..").IAnySpace> & Record<string, unknown>, unknown>;
538
+ reset: () => void;
539
+ context: unknown;
540
+ failureCount: number;
541
+ failureReason: Error | null;
542
+ isPaused: boolean;
543
+ submittedAt: number;
544
+ mutateAsync: import("@tanstack/react-query").UseMutateAsyncFunction<any, Error, Partial<import("..").IAnySpace> & Record<string, unknown>, unknown>;
545
+ } | {
546
+ assignAgent: (project: ProjectData, agentPodName: string, agentSpecId?: string) => Promise<any>;
547
+ unassignAgent: (project: ProjectData) => Promise<any>;
548
+ renameProject: (project: ProjectData, newName: string) => Promise<any>;
549
+ data: any;
550
+ error: null;
551
+ variables: Partial<import("..").IAnySpace> & Record<string, unknown>;
552
+ isError: false;
553
+ isIdle: false;
554
+ isPending: false;
555
+ isSuccess: true;
556
+ status: "success";
557
+ mutate: import("@tanstack/react-query").UseMutateFunction<any, Error, Partial<import("..").IAnySpace> & Record<string, unknown>, unknown>;
558
+ reset: () => void;
559
+ context: unknown;
560
+ failureCount: number;
561
+ failureReason: Error | null;
562
+ isPaused: boolean;
563
+ submittedAt: number;
564
+ mutateAsync: import("@tanstack/react-query").UseMutateAsyncFunction<any, Error, Partial<import("..").IAnySpace> & Record<string, unknown>, unknown>;
565
+ };
566
+ /**
567
+ * Hook to refresh the projects list.
568
+ */
569
+ export declare function useRefreshProjects(): import("@tanstack/react-query").UseMutationResult<any, Error, void, unknown>;
570
+ /**
571
+ * Hook to delete a project (space) and all its contents.
572
+ */
573
+ export declare function useDeleteProject(): import("@tanstack/react-query").UseMutationResult<any, Error, string, unknown>;
574
+ /**
575
+ * Default items (notebook UID and document UID) for a project.
576
+ */
577
+ export type ProjectDefaultItems = {
578
+ defaultNotebookUid: string | null;
579
+ defaultDocumentUid: string | null;
580
+ };
581
+ /**
582
+ * Hook to fetch the default notebook and document UIDs for a project.
583
+ *
584
+ * This calls the spacer `GET /spaces/{uid}/default-items` endpoint which
585
+ * returns the UID of the first notebook and first document in the space.
586
+ */
587
+ export declare function useProjectDefaultItems(projectUid: string | undefined): import("@tanstack/react-query").UseQueryResult<{
588
+ defaultNotebookUid: string | null;
589
+ defaultDocumentUid: string | null;
590
+ }, Error>;