@sqlrooms/canvas 0.25.0-rc.0 → 0.26.0-rc.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -144,639 +144,181 @@ export type SqlNodeQueryResult = {
144
144
  lastQueryStatement: string;
145
145
  };
146
146
  export declare const CanvasSliceConfig: z.ZodObject<{
147
- canvas: z.ZodObject<{
148
- viewport: z.ZodObject<{
147
+ viewport: z.ZodObject<{
148
+ x: z.ZodNumber;
149
+ y: z.ZodNumber;
150
+ zoom: z.ZodNumber;
151
+ }, "strip", z.ZodTypeAny, {
152
+ x: number;
153
+ y: number;
154
+ zoom: number;
155
+ }, {
156
+ x: number;
157
+ y: number;
158
+ zoom: number;
159
+ }>;
160
+ nodes: z.ZodDefault<z.ZodArray<z.ZodObject<{
161
+ id: z.ZodString;
162
+ position: z.ZodObject<{
149
163
  x: z.ZodNumber;
150
164
  y: z.ZodNumber;
151
- zoom: z.ZodNumber;
152
165
  }, "strip", z.ZodTypeAny, {
153
166
  x: number;
154
167
  y: number;
155
- zoom: number;
156
168
  }, {
157
169
  x: number;
158
170
  y: number;
159
- zoom: number;
160
171
  }>;
161
- nodes: z.ZodDefault<z.ZodArray<z.ZodObject<{
162
- id: z.ZodString;
163
- position: z.ZodObject<{
164
- x: z.ZodNumber;
165
- y: z.ZodNumber;
166
- }, "strip", z.ZodTypeAny, {
167
- x: number;
168
- y: number;
169
- }, {
170
- x: number;
171
- y: number;
172
- }>;
173
- type: z.ZodEnum<["sql", "vega"]>;
174
- data: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
175
- title: z.ZodDefault<z.ZodString>;
176
- type: z.ZodLiteral<"sql">;
177
- sql: z.ZodOptional<z.ZodString>;
178
- }, "strip", z.ZodTypeAny, {
179
- type: "sql";
180
- title: string;
181
- sql?: string | undefined;
182
- }, {
183
- type: "sql";
184
- sql?: string | undefined;
185
- title?: string | undefined;
186
- }>, z.ZodObject<{
187
- title: z.ZodDefault<z.ZodString>;
188
- type: z.ZodLiteral<"vega">;
189
- sql: z.ZodOptional<z.ZodString>;
190
- vegaSpec: z.ZodOptional<z.ZodAny>;
191
- }, "strip", z.ZodTypeAny, {
192
- type: "vega";
193
- title: string;
194
- sql?: string | undefined;
195
- vegaSpec?: any;
196
- }, {
197
- type: "vega";
198
- sql?: string | undefined;
199
- title?: string | undefined;
200
- vegaSpec?: any;
201
- }>]>;
202
- width: z.ZodNumber;
203
- height: z.ZodNumber;
172
+ type: z.ZodEnum<["sql", "vega"]>;
173
+ data: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
174
+ title: z.ZodDefault<z.ZodString>;
175
+ type: z.ZodLiteral<"sql">;
176
+ sql: z.ZodOptional<z.ZodString>;
204
177
  }, "strip", z.ZodTypeAny, {
205
- type: "sql" | "vega";
206
- id: string;
207
- position: {
208
- x: number;
209
- y: number;
210
- };
211
- data: {
212
- type: "sql";
213
- title: string;
214
- sql?: string | undefined;
215
- } | {
216
- type: "vega";
217
- title: string;
218
- sql?: string | undefined;
219
- vegaSpec?: any;
220
- };
221
- width: number;
222
- height: number;
178
+ type: "sql";
179
+ title: string;
180
+ sql?: string | undefined;
223
181
  }, {
224
- type: "sql" | "vega";
225
- id: string;
226
- position: {
227
- x: number;
228
- y: number;
229
- };
230
- data: {
231
- type: "sql";
232
- sql?: string | undefined;
233
- title?: string | undefined;
234
- } | {
235
- type: "vega";
236
- sql?: string | undefined;
237
- title?: string | undefined;
238
- vegaSpec?: any;
239
- };
240
- width: number;
241
- height: number;
242
- }>, "many">>;
243
- edges: z.ZodDefault<z.ZodArray<z.ZodObject<{
244
- id: z.ZodString;
245
- source: z.ZodString;
246
- target: z.ZodString;
182
+ type: "sql";
183
+ sql?: string | undefined;
184
+ title?: string | undefined;
185
+ }>, z.ZodObject<{
186
+ title: z.ZodDefault<z.ZodString>;
187
+ type: z.ZodLiteral<"vega">;
188
+ sql: z.ZodOptional<z.ZodString>;
189
+ vegaSpec: z.ZodOptional<z.ZodAny>;
247
190
  }, "strip", z.ZodTypeAny, {
248
- id: string;
249
- source: string;
250
- target: string;
191
+ type: "vega";
192
+ title: string;
193
+ sql?: string | undefined;
194
+ vegaSpec?: any;
251
195
  }, {
252
- id: string;
253
- source: string;
254
- target: string;
255
- }>, "many">>;
196
+ type: "vega";
197
+ sql?: string | undefined;
198
+ title?: string | undefined;
199
+ vegaSpec?: any;
200
+ }>]>;
201
+ width: z.ZodNumber;
202
+ height: z.ZodNumber;
256
203
  }, "strip", z.ZodTypeAny, {
257
- viewport: {
204
+ type: "sql" | "vega";
205
+ id: string;
206
+ position: {
258
207
  x: number;
259
208
  y: number;
260
- zoom: number;
261
209
  };
262
- nodes: {
263
- type: "sql" | "vega";
264
- id: string;
265
- position: {
266
- x: number;
267
- y: number;
268
- };
269
- data: {
270
- type: "sql";
271
- title: string;
272
- sql?: string | undefined;
273
- } | {
274
- type: "vega";
275
- title: string;
276
- sql?: string | undefined;
277
- vegaSpec?: any;
278
- };
279
- width: number;
280
- height: number;
281
- }[];
282
- edges: {
283
- id: string;
284
- source: string;
285
- target: string;
286
- }[];
210
+ data: {
211
+ type: "sql";
212
+ title: string;
213
+ sql?: string | undefined;
214
+ } | {
215
+ type: "vega";
216
+ title: string;
217
+ sql?: string | undefined;
218
+ vegaSpec?: any;
219
+ };
220
+ width: number;
221
+ height: number;
287
222
  }, {
288
- viewport: {
223
+ type: "sql" | "vega";
224
+ id: string;
225
+ position: {
289
226
  x: number;
290
227
  y: number;
291
- zoom: number;
292
228
  };
293
- nodes?: {
294
- type: "sql" | "vega";
295
- id: string;
296
- position: {
297
- x: number;
298
- y: number;
299
- };
300
- data: {
301
- type: "sql";
302
- sql?: string | undefined;
303
- title?: string | undefined;
304
- } | {
305
- type: "vega";
306
- sql?: string | undefined;
307
- title?: string | undefined;
308
- vegaSpec?: any;
309
- };
310
- width: number;
311
- height: number;
312
- }[] | undefined;
313
- edges?: {
314
- id: string;
315
- source: string;
316
- target: string;
317
- }[] | undefined;
318
- }>;
319
- } & {
320
- ai: z.ZodObject<{
321
- sessions: z.ZodArray<z.ZodEffects<z.ZodObject<{
322
- id: z.ZodString;
323
- name: z.ZodString;
324
- modelProvider: z.ZodString;
325
- model: z.ZodString;
326
- customModelName: z.ZodOptional<z.ZodString>;
327
- baseUrl: z.ZodOptional<z.ZodString>;
328
- analysisResults: z.ZodArray<z.ZodObject<{
329
- id: z.ZodString;
330
- prompt: z.ZodString;
331
- streamMessage: z.ZodEffects<z.ZodObject<{
332
- parts: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
333
- type: z.ZodLiteral<"text">;
334
- text: z.ZodString;
335
- additionalData: z.ZodOptional<z.ZodAny>;
336
- isCompleted: z.ZodOptional<z.ZodBoolean>;
337
- }, "strip", z.ZodTypeAny, {
338
- type: "text";
339
- text: string;
340
- isCompleted?: boolean | undefined;
341
- additionalData?: any;
342
- }, {
343
- type: "text";
344
- text: string;
345
- isCompleted?: boolean | undefined;
346
- additionalData?: any;
347
- }>, z.ZodObject<{
348
- type: z.ZodLiteral<"tool-invocation">;
349
- toolInvocation: z.ZodObject<{
350
- toolCallId: z.ZodString;
351
- toolName: z.ZodString;
352
- args: z.ZodAny;
353
- state: z.ZodString;
354
- result: z.ZodOptional<z.ZodAny>;
355
- }, "strip", z.ZodTypeAny, {
356
- toolName: string;
357
- toolCallId: string;
358
- state: string;
359
- args?: any;
360
- result?: any;
361
- }, {
362
- toolName: string;
363
- toolCallId: string;
364
- state: string;
365
- args?: any;
366
- result?: any;
367
- }>;
368
- additionalData: z.ZodOptional<z.ZodAny>;
369
- isCompleted: z.ZodOptional<z.ZodBoolean>;
370
- }, "strip", z.ZodTypeAny, {
371
- type: "tool-invocation";
372
- toolInvocation: {
373
- toolName: string;
374
- toolCallId: string;
375
- state: string;
376
- args?: any;
377
- result?: any;
378
- };
379
- isCompleted?: boolean | undefined;
380
- additionalData?: any;
381
- }, {
382
- type: "tool-invocation";
383
- toolInvocation: {
384
- toolName: string;
385
- toolCallId: string;
386
- state: string;
387
- args?: any;
388
- result?: any;
389
- };
390
- isCompleted?: boolean | undefined;
391
- additionalData?: any;
392
- }>, z.ZodObject<{
393
- type: z.ZodString;
394
- additionalData: z.ZodOptional<z.ZodAny>;
395
- isCompleted: z.ZodOptional<z.ZodBoolean>;
396
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
397
- type: z.ZodString;
398
- additionalData: z.ZodOptional<z.ZodAny>;
399
- isCompleted: z.ZodOptional<z.ZodBoolean>;
400
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
401
- type: z.ZodString;
402
- additionalData: z.ZodOptional<z.ZodAny>;
403
- isCompleted: z.ZodOptional<z.ZodBoolean>;
404
- }, z.ZodTypeAny, "passthrough">>]>, "many">>;
405
- }, "strip", z.ZodTypeAny, {
406
- parts?: ({
407
- type: "text";
408
- text: string;
409
- isCompleted?: boolean | undefined;
410
- additionalData?: any;
411
- } | {
412
- type: "tool-invocation";
413
- toolInvocation: {
414
- toolName: string;
415
- toolCallId: string;
416
- state: string;
417
- args?: any;
418
- result?: any;
419
- };
420
- isCompleted?: boolean | undefined;
421
- additionalData?: any;
422
- } | z.objectOutputType<{
423
- type: z.ZodString;
424
- additionalData: z.ZodOptional<z.ZodAny>;
425
- isCompleted: z.ZodOptional<z.ZodBoolean>;
426
- }, z.ZodTypeAny, "passthrough">)[] | undefined;
427
- }, {
428
- parts?: ({
429
- type: "text";
430
- text: string;
431
- isCompleted?: boolean | undefined;
432
- additionalData?: any;
433
- } | {
434
- type: "tool-invocation";
435
- toolInvocation: {
436
- toolName: string;
437
- toolCallId: string;
438
- state: string;
439
- args?: any;
440
- result?: any;
441
- };
442
- isCompleted?: boolean | undefined;
443
- additionalData?: any;
444
- } | z.objectInputType<{
445
- type: z.ZodString;
446
- additionalData: z.ZodOptional<z.ZodAny>;
447
- isCompleted: z.ZodOptional<z.ZodBoolean>;
448
- }, z.ZodTypeAny, "passthrough">)[] | undefined;
449
- }>, {
450
- parts?: ({
451
- type: "text";
452
- text: string;
453
- isCompleted?: boolean | undefined;
454
- additionalData?: any;
455
- } | {
456
- type: "tool-invocation";
457
- toolInvocation: {
458
- toolName: string;
459
- toolCallId: string;
460
- state: string;
461
- args?: any;
462
- result?: any;
463
- };
464
- isCompleted?: boolean | undefined;
465
- additionalData?: any;
466
- } | z.objectOutputType<{
467
- type: z.ZodString;
468
- additionalData: z.ZodOptional<z.ZodAny>;
469
- isCompleted: z.ZodOptional<z.ZodBoolean>;
470
- }, z.ZodTypeAny, "passthrough">)[] | undefined;
471
- }, unknown>;
472
- errorMessage: z.ZodOptional<z.ZodObject<{
473
- error: z.ZodString;
474
- }, "strip", z.ZodTypeAny, {
475
- error: string;
476
- }, {
477
- error: string;
478
- }>>;
479
- isCompleted: z.ZodBoolean;
480
- }, "strip", z.ZodTypeAny, {
481
- id: string;
482
- isCompleted: boolean;
483
- prompt: string;
484
- streamMessage: {
485
- parts?: ({
486
- type: "text";
487
- text: string;
488
- isCompleted?: boolean | undefined;
489
- additionalData?: any;
490
- } | {
491
- type: "tool-invocation";
492
- toolInvocation: {
493
- toolName: string;
494
- toolCallId: string;
495
- state: string;
496
- args?: any;
497
- result?: any;
498
- };
499
- isCompleted?: boolean | undefined;
500
- additionalData?: any;
501
- } | z.objectOutputType<{
502
- type: z.ZodString;
503
- additionalData: z.ZodOptional<z.ZodAny>;
504
- isCompleted: z.ZodOptional<z.ZodBoolean>;
505
- }, z.ZodTypeAny, "passthrough">)[] | undefined;
506
- };
507
- errorMessage?: {
508
- error: string;
509
- } | undefined;
510
- }, {
511
- id: string;
512
- isCompleted: boolean;
513
- prompt: string;
514
- streamMessage?: unknown;
515
- errorMessage?: {
516
- error: string;
517
- } | undefined;
518
- }>, "many">;
519
- createdAt: z.ZodOptional<z.ZodDate>;
520
- }, "strip", z.ZodTypeAny, {
521
- id: string;
522
- name: string;
523
- modelProvider: string;
524
- model: string;
525
- analysisResults: {
526
- id: string;
527
- isCompleted: boolean;
528
- prompt: string;
529
- streamMessage: {
530
- parts?: ({
531
- type: "text";
532
- text: string;
533
- isCompleted?: boolean | undefined;
534
- additionalData?: any;
535
- } | {
536
- type: "tool-invocation";
537
- toolInvocation: {
538
- toolName: string;
539
- toolCallId: string;
540
- state: string;
541
- args?: any;
542
- result?: any;
543
- };
544
- isCompleted?: boolean | undefined;
545
- additionalData?: any;
546
- } | z.objectOutputType<{
547
- type: z.ZodString;
548
- additionalData: z.ZodOptional<z.ZodAny>;
549
- isCompleted: z.ZodOptional<z.ZodBoolean>;
550
- }, z.ZodTypeAny, "passthrough">)[] | undefined;
551
- };
552
- errorMessage?: {
553
- error: string;
554
- } | undefined;
555
- }[];
556
- baseUrl?: string | undefined;
557
- customModelName?: string | undefined;
558
- createdAt?: Date | undefined;
559
- }, {
560
- id: string;
561
- name: string;
562
- modelProvider: string;
563
- model: string;
564
- analysisResults: {
565
- id: string;
566
- isCompleted: boolean;
567
- prompt: string;
568
- streamMessage?: unknown;
569
- errorMessage?: {
570
- error: string;
571
- } | undefined;
572
- }[];
573
- baseUrl?: string | undefined;
574
- customModelName?: string | undefined;
575
- createdAt?: Date | undefined;
576
- }>, {
577
- id: string;
578
- name: string;
579
- modelProvider: string;
580
- model: string;
581
- analysisResults: {
582
- id: string;
583
- isCompleted: boolean;
584
- prompt: string;
585
- streamMessage: {
586
- parts?: ({
587
- type: "text";
588
- text: string;
589
- isCompleted?: boolean | undefined;
590
- additionalData?: any;
591
- } | {
592
- type: "tool-invocation";
593
- toolInvocation: {
594
- toolName: string;
595
- toolCallId: string;
596
- state: string;
597
- args?: any;
598
- result?: any;
599
- };
600
- isCompleted?: boolean | undefined;
601
- additionalData?: any;
602
- } | z.objectOutputType<{
603
- type: z.ZodString;
604
- additionalData: z.ZodOptional<z.ZodAny>;
605
- isCompleted: z.ZodOptional<z.ZodBoolean>;
606
- }, z.ZodTypeAny, "passthrough">)[] | undefined;
607
- };
608
- errorMessage?: {
609
- error: string;
610
- } | undefined;
611
- }[];
612
- baseUrl?: string | undefined;
613
- customModelName?: string | undefined;
614
- createdAt?: Date | undefined;
615
- }, unknown>, "many">;
616
- currentSessionId: z.ZodOptional<z.ZodString>;
229
+ data: {
230
+ type: "sql";
231
+ sql?: string | undefined;
232
+ title?: string | undefined;
233
+ } | {
234
+ type: "vega";
235
+ sql?: string | undefined;
236
+ title?: string | undefined;
237
+ vegaSpec?: any;
238
+ };
239
+ width: number;
240
+ height: number;
241
+ }>, "many">>;
242
+ edges: z.ZodDefault<z.ZodArray<z.ZodObject<{
243
+ id: z.ZodString;
244
+ source: z.ZodString;
245
+ target: z.ZodString;
617
246
  }, "strip", z.ZodTypeAny, {
618
- sessions: {
619
- id: string;
620
- name: string;
621
- modelProvider: string;
622
- model: string;
623
- analysisResults: {
624
- id: string;
625
- isCompleted: boolean;
626
- prompt: string;
627
- streamMessage: {
628
- parts?: ({
629
- type: "text";
630
- text: string;
631
- isCompleted?: boolean | undefined;
632
- additionalData?: any;
633
- } | {
634
- type: "tool-invocation";
635
- toolInvocation: {
636
- toolName: string;
637
- toolCallId: string;
638
- state: string;
639
- args?: any;
640
- result?: any;
641
- };
642
- isCompleted?: boolean | undefined;
643
- additionalData?: any;
644
- } | z.objectOutputType<{
645
- type: z.ZodString;
646
- additionalData: z.ZodOptional<z.ZodAny>;
647
- isCompleted: z.ZodOptional<z.ZodBoolean>;
648
- }, z.ZodTypeAny, "passthrough">)[] | undefined;
649
- };
650
- errorMessage?: {
651
- error: string;
652
- } | undefined;
653
- }[];
654
- baseUrl?: string | undefined;
655
- customModelName?: string | undefined;
656
- createdAt?: Date | undefined;
657
- }[];
658
- currentSessionId?: string | undefined;
247
+ id: string;
248
+ source: string;
249
+ target: string;
659
250
  }, {
660
- sessions: unknown[];
661
- currentSessionId?: string | undefined;
662
- }>;
251
+ id: string;
252
+ source: string;
253
+ target: string;
254
+ }>, "many">>;
663
255
  }, "strip", z.ZodTypeAny, {
664
- canvas: {
665
- viewport: {
256
+ viewport: {
257
+ x: number;
258
+ y: number;
259
+ zoom: number;
260
+ };
261
+ nodes: {
262
+ type: "sql" | "vega";
263
+ id: string;
264
+ position: {
666
265
  x: number;
667
266
  y: number;
668
- zoom: number;
669
267
  };
670
- nodes: {
671
- type: "sql" | "vega";
672
- id: string;
673
- position: {
674
- x: number;
675
- y: number;
676
- };
677
- data: {
678
- type: "sql";
679
- title: string;
680
- sql?: string | undefined;
681
- } | {
682
- type: "vega";
683
- title: string;
684
- sql?: string | undefined;
685
- vegaSpec?: any;
686
- };
687
- width: number;
688
- height: number;
689
- }[];
690
- edges: {
691
- id: string;
692
- source: string;
693
- target: string;
694
- }[];
695
- };
696
- ai: {
697
- sessions: {
698
- id: string;
699
- name: string;
700
- modelProvider: string;
701
- model: string;
702
- analysisResults: {
703
- id: string;
704
- isCompleted: boolean;
705
- prompt: string;
706
- streamMessage: {
707
- parts?: ({
708
- type: "text";
709
- text: string;
710
- isCompleted?: boolean | undefined;
711
- additionalData?: any;
712
- } | {
713
- type: "tool-invocation";
714
- toolInvocation: {
715
- toolName: string;
716
- toolCallId: string;
717
- state: string;
718
- args?: any;
719
- result?: any;
720
- };
721
- isCompleted?: boolean | undefined;
722
- additionalData?: any;
723
- } | z.objectOutputType<{
724
- type: z.ZodString;
725
- additionalData: z.ZodOptional<z.ZodAny>;
726
- isCompleted: z.ZodOptional<z.ZodBoolean>;
727
- }, z.ZodTypeAny, "passthrough">)[] | undefined;
728
- };
729
- errorMessage?: {
730
- error: string;
731
- } | undefined;
732
- }[];
733
- baseUrl?: string | undefined;
734
- customModelName?: string | undefined;
735
- createdAt?: Date | undefined;
736
- }[];
737
- currentSessionId?: string | undefined;
738
- };
268
+ data: {
269
+ type: "sql";
270
+ title: string;
271
+ sql?: string | undefined;
272
+ } | {
273
+ type: "vega";
274
+ title: string;
275
+ sql?: string | undefined;
276
+ vegaSpec?: any;
277
+ };
278
+ width: number;
279
+ height: number;
280
+ }[];
281
+ edges: {
282
+ id: string;
283
+ source: string;
284
+ target: string;
285
+ }[];
739
286
  }, {
740
- canvas: {
741
- viewport: {
287
+ viewport: {
288
+ x: number;
289
+ y: number;
290
+ zoom: number;
291
+ };
292
+ nodes?: {
293
+ type: "sql" | "vega";
294
+ id: string;
295
+ position: {
742
296
  x: number;
743
297
  y: number;
744
- zoom: number;
745
298
  };
746
- nodes?: {
747
- type: "sql" | "vega";
748
- id: string;
749
- position: {
750
- x: number;
751
- y: number;
752
- };
753
- data: {
754
- type: "sql";
755
- sql?: string | undefined;
756
- title?: string | undefined;
757
- } | {
758
- type: "vega";
759
- sql?: string | undefined;
760
- title?: string | undefined;
761
- vegaSpec?: any;
762
- };
763
- width: number;
764
- height: number;
765
- }[] | undefined;
766
- edges?: {
767
- id: string;
768
- source: string;
769
- target: string;
770
- }[] | undefined;
771
- };
772
- ai: {
773
- sessions: unknown[];
774
- currentSessionId?: string | undefined;
775
- };
299
+ data: {
300
+ type: "sql";
301
+ sql?: string | undefined;
302
+ title?: string | undefined;
303
+ } | {
304
+ type: "vega";
305
+ sql?: string | undefined;
306
+ title?: string | undefined;
307
+ vegaSpec?: any;
308
+ };
309
+ width: number;
310
+ height: number;
311
+ }[] | undefined;
312
+ edges?: {
313
+ id: string;
314
+ source: string;
315
+ target: string;
316
+ }[] | undefined;
776
317
  }>;
777
318
  export type CanvasSliceConfig = z.infer<typeof CanvasSliceConfig>;
778
319
  export type CanvasSliceState = AiSliceState & {
779
320
  canvas: {
321
+ config: CanvasSliceConfig;
780
322
  isAssistantOpen: boolean;
781
323
  sqlResults: Record<string, SqlNodeQueryResult>;
782
324
  initialize: () => Promise<void>;
@@ -799,8 +341,11 @@ export type CanvasSliceState = AiSliceState & {
799
341
  }) => Promise<void>;
800
342
  };
801
343
  };
802
- export declare function createDefaultCanvasConfig(props?: Partial<CanvasSliceConfig['canvas']>): CanvasSliceConfig;
803
- export declare function createCanvasSlice<PC extends BaseRoomConfig & CanvasSliceConfig>(props: Parameters<typeof createAiSlice<PC>>[0]): import("zustand").StateCreator<CanvasSliceState>;
344
+ export declare function createDefaultCanvasConfig(props?: Partial<CanvasSliceConfig>): CanvasSliceConfig;
345
+ export declare function createCanvasSlice<PC extends BaseRoomConfig = BaseRoomConfig>(props: {
346
+ config?: Partial<CanvasSliceConfig>;
347
+ ai?: Partial<Parameters<typeof createAiSlice<PC>>[0]>;
348
+ }): import("zustand").StateCreator<CanvasSliceState>;
804
349
  export type RoomConfigWithCanvas = BaseRoomConfig & CanvasSliceConfig;
805
350
  export type RoomShellSliceStateWithCanvas = RoomShellSliceState<RoomConfigWithCanvas> & CanvasSliceState;
806
351
  export declare function useStoreWithCanvas<T>(selector: (state: RoomShellSliceStateWithCanvas) => T): T;