@domainkit/react 0.3.0 → 0.4.0

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.
package/dist/index.d.mts CHANGED
@@ -1,9 +1,9 @@
1
- import { Dialog } from "@base-ui/react/dialog";
2
1
  import { Transport } from "domainkit";
3
2
  import * as Data from "effect/Data";
4
3
  import * as Atom from "effect/unstable/reactivity/Atom";
5
4
  import { CSSProperties, ComponentPropsWithoutRef, ElementType, ReactElement, ReactNode, RefObject } from "react";
6
5
  import { useRender } from "@base-ui/react/use-render";
6
+ import { Dialog } from "@base-ui/react/dialog";
7
7
  import * as Layer from "effect/Layer";
8
8
  //#region src/atom.d.ts
9
9
  type Runtime = Atom.AtomRuntime<Transport.Service>;
@@ -68,7 +68,7 @@ type PartProps<Tag extends ElementType, State extends Record<string, unknown>> =
68
68
  readonly style?: Style<State>;
69
69
  };
70
70
  declare namespace cleanup_d_exports {
71
- export { Command$3 as Command, Controller$3 as Controller, Dialog$3 as Dialog, Flow$3 as Flow, FlowProps$3 as FlowProps, Model$3 as Model, Outcome$2 as Outcome, Root$6 as Root, RootProps$6 as RootProps, State$3 as State, useController$3 as useController, useModel$3 as useModel };
71
+ export { Command$3 as Command, Completion, Controller$3 as Controller, Dialog$3 as Dialog, DialogProps$2 as DialogProps, Flow$3 as Flow, FlowProps$3 as FlowProps, Model$3 as Model, Outcome$2 as Outcome, Root$6 as Root, RootProps$6 as RootProps, State$3 as State, useController$3 as useController, useModel$3 as useModel };
72
72
  }
73
73
  type LocalState$3 = Data.TaggedEnum<{
74
74
  Cleaned: {
@@ -311,27 +311,37 @@ interface Controller$3 {
311
311
  readonly apply: () => void;
312
312
  readonly dismiss: () => void;
313
313
  readonly plan: () => void;
314
+ readonly retry: () => void;
314
315
  readonly state: State$3;
315
316
  }
316
- declare function useModel$3(connection: Transport.Connected, receiptId: string): Model$3;
317
- declare function useController$3(connection: Transport.Connected, receiptId: string): Controller$3;
317
+ type Completion = Extract<Transport.CleanupResult, {
318
+ readonly _tag: "Cleaned" | "Partial";
319
+ }>;
320
+ declare function useModel$3(connection: Transport.Connected, receiptId: string, onCleaned?: (result: Completion) => void): Model$3;
321
+ declare function useController$3(connection: Transport.Connected, receiptId: string, onCleaned?: (result: Completion) => void): Controller$3;
318
322
  interface RootProps$6 extends PartProps<"div", {
319
323
  readonly status: State$3["_tag"];
320
324
  }> {
321
325
  readonly status: State$3["_tag"];
322
326
  }
323
- declare function Root$6({ status, ...props }: RootProps$6): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
327
+ declare function Root$6({ status, ...props }: RootProps$6): ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
324
328
  declare function Outcome$2({ state }: {
325
329
  readonly state: State$3;
326
330
  }): import("react/jsx-runtime").JSX.Element | null;
327
- declare function Dialog$3({ controller }: {
331
+ interface DialogProps$2 {
328
332
  readonly controller: Controller$3;
329
- }): import("react/jsx-runtime").JSX.Element;
333
+ readonly onOpenChange?: (open: boolean) => void;
334
+ readonly onOpenChangeComplete?: (open: boolean) => void;
335
+ readonly trigger?: ReactElement | null;
336
+ }
337
+ declare function Dialog$3({ controller, onOpenChange, onOpenChangeComplete, trigger }: DialogProps$2): import("react/jsx-runtime").JSX.Element;
330
338
  interface FlowProps$3 extends Omit<RootProps$6, "status"> {
331
339
  readonly connection: Transport.Connected;
340
+ readonly onCleaned?: (result: Completion) => void;
332
341
  readonly receiptId: string;
342
+ readonly trigger?: ReactElement;
333
343
  }
334
- declare function Flow$3({ connection, receiptId, ...props }: FlowProps$3): import("react/jsx-runtime").JSX.Element;
344
+ declare function Flow$3({ connection, onCleaned, receiptId, trigger, ...props }: FlowProps$3): import("react/jsx-runtime").JSX.Element;
335
345
  declare namespace provider_d_exports {
336
346
  export { Mark, MarkElementProps, MarkProps, MarkState, Marks, ProviderDescriptor as Provider };
337
347
  }
@@ -346,9 +356,12 @@ interface MarkProps extends PartProps<"span", MarkState> {
346
356
  declare function Mark({ provider, ...props }: MarkProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
347
357
  type MarkElementProps = ComponentPropsWithoutRef<"span">;
348
358
  declare namespace connection_d_exports {
349
- export { ActionState, Command$2 as Command, ConnectTrigger, ConnectTriggerProps, Connected, Controller$2 as Controller, Dialog$2 as Dialog, DialogProps, DisconnectAction, DisconnectActionProps, DisconnectState, Flow$2 as Flow, FlowProps$2 as FlowProps, Model$2 as Model, OAuthAction, OAuthActionProps, RetryAction$1 as RetryAction, RetryActionProps, ReuseAction, ReuseActionProps, Root$5 as Root, RootProps$5 as RootProps, RootState$1 as RootState, State$2 as State, Status$2 as Status, StatusProps$2 as StatusProps, StatusState, TokenAction, TokenActionProps, Trigger, TriggerProps, useController$2 as useController, useDisconnect, useModel$2 as useModel };
359
+ export { ActionState, Card$1 as Card, CardActions, CardActionsProps, CardIdentity, CardIdentityProps, CardProps$1 as CardProps, Command$2 as Command, ConnectTrigger, ConnectTriggerProps, Connected, Controller$2 as Controller, Dialog$2 as Dialog, DialogProps$1 as DialogProps, DisconnectDialog, DisconnectDialogProps, Flow$2 as Flow, FlowProps$2 as FlowProps, Model$2 as Model, OAuthAction, OAuthActionProps, RetryAction$1 as RetryAction, RetryActionProps, ReuseAction, ReuseActionProps, Root$5 as Root, RootProps$5 as RootProps, RootState$1 as RootState, State$2 as State, Status$2 as Status, StatusProps$2 as StatusProps, StatusState, TokenAction, TokenActionProps, Trigger, TriggerProps, useController$2 as useController, useModel$2 as useModel };
350
360
  }
351
361
  type LocalState$2 = Data.TaggedEnum<{
362
+ Disconnecting: {
363
+ readonly snapshot: Transport.Connected;
364
+ };
352
365
  Loading: {};
353
366
  Redirecting: {
354
367
  readonly snapshot: Disconnected;
@@ -358,7 +371,12 @@ type LocalState$2 = Data.TaggedEnum<{
358
371
  };
359
372
  }>;
360
373
  declare const State$2: {
361
- readonly $is: <Tag extends "Loading" | "Redirecting" | "Submitting">(tag: Tag) => (u: unknown) => u is Extract<{
374
+ readonly $is: <Tag extends "Disconnecting" | "Loading" | "Redirecting" | "Submitting">(tag: Tag) => (u: unknown) => u is Extract<{
375
+ readonly _tag: "Disconnecting";
376
+ readonly snapshot: Transport.Connected;
377
+ }, {
378
+ readonly _tag: Tag;
379
+ }> | Extract<{
362
380
  readonly _tag: "Loading";
363
381
  }, {
364
382
  readonly _tag: Tag;
@@ -374,7 +392,10 @@ declare const State$2: {
374
392
  readonly _tag: Tag;
375
393
  }>;
376
394
  readonly $match: {
377
- <Cases extends { readonly [Tag in "Loading" | "Redirecting" | "Submitting"]: (args: Extract<{
395
+ <Cases extends { readonly [Tag in "Disconnecting" | "Loading" | "Redirecting" | "Submitting"]: (args: Extract<{
396
+ readonly _tag: "Disconnecting";
397
+ readonly snapshot: Transport.Connected;
398
+ } | {
378
399
  readonly _tag: "Loading";
379
400
  } | {
380
401
  readonly _tag: "Redirecting";
@@ -385,6 +406,9 @@ declare const State$2: {
385
406
  }, {
386
407
  readonly _tag: Tag;
387
408
  }>) => any; }>(cases: Cases): (value: {
409
+ readonly _tag: "Disconnecting";
410
+ readonly snapshot: Transport.Connected;
411
+ } | {
388
412
  readonly _tag: "Loading";
389
413
  } | {
390
414
  readonly _tag: "Redirecting";
@@ -392,8 +416,11 @@ declare const State$2: {
392
416
  } | {
393
417
  readonly _tag: "Submitting";
394
418
  readonly snapshot: Disconnected;
395
- }) => import("effect/Unify").Unify<ReturnType<Cases["Loading" | "Redirecting" | "Submitting"]>>;
396
- <Cases extends { readonly [Tag in "Loading" | "Redirecting" | "Submitting"]: (args: Extract<{
419
+ }) => import("effect/Unify").Unify<ReturnType<Cases["Disconnecting" | "Loading" | "Redirecting" | "Submitting"]>>;
420
+ <Cases extends { readonly [Tag in "Disconnecting" | "Loading" | "Redirecting" | "Submitting"]: (args: Extract<{
421
+ readonly _tag: "Disconnecting";
422
+ readonly snapshot: Transport.Connected;
423
+ } | {
397
424
  readonly _tag: "Loading";
398
425
  } | {
399
426
  readonly _tag: "Redirecting";
@@ -404,6 +431,9 @@ declare const State$2: {
404
431
  }, {
405
432
  readonly _tag: Tag;
406
433
  }>) => any; }>(value: {
434
+ readonly _tag: "Disconnecting";
435
+ readonly snapshot: Transport.Connected;
436
+ } | {
407
437
  readonly _tag: "Loading";
408
438
  } | {
409
439
  readonly _tag: "Redirecting";
@@ -411,8 +441,12 @@ declare const State$2: {
411
441
  } | {
412
442
  readonly _tag: "Submitting";
413
443
  readonly snapshot: Disconnected;
414
- }, cases: Cases): import("effect/Unify").Unify<ReturnType<Cases["Loading" | "Redirecting" | "Submitting"]>>;
444
+ }, cases: Cases): import("effect/Unify").Unify<ReturnType<Cases["Disconnecting" | "Loading" | "Redirecting" | "Submitting"]>>;
415
445
  };
446
+ readonly Disconnecting: Data.TaggedEnum.ConstructorFrom<{
447
+ readonly _tag: "Disconnecting";
448
+ readonly snapshot: Transport.Connected;
449
+ }, "_tag">;
416
450
  readonly Loading: Data.TaggedEnum.ConstructorFrom<{
417
451
  readonly _tag: "Loading";
418
452
  }, "_tag">;
@@ -431,6 +465,7 @@ type Disconnected = Extract<Transport.ConnectionSnapshot, {
431
465
  }>;
432
466
  interface Controller$2 {
433
467
  readonly connect: (method: Transport.Method) => void;
468
+ readonly disconnect: () => void;
434
469
  readonly retry: () => void;
435
470
  readonly reuse: () => void;
436
471
  readonly state: State$2;
@@ -439,15 +474,20 @@ type Command$2 = Data.TaggedEnum<{
439
474
  Connect: {
440
475
  readonly method: Transport.Method;
441
476
  };
477
+ Disconnect: {};
442
478
  Retry: {};
443
479
  Reuse: {};
444
480
  }>;
445
481
  declare const Command$2: {
446
- readonly $is: <Tag extends "Connect" | "Retry" | "Reuse">(tag: Tag) => (u: unknown) => u is Extract<{
482
+ readonly $is: <Tag extends "Connect" | "Disconnect" | "Retry" | "Reuse">(tag: Tag) => (u: unknown) => u is Extract<{
447
483
  readonly _tag: "Connect";
448
484
  readonly method: Transport.Method;
449
485
  }, {
450
486
  readonly _tag: Tag;
487
+ }> | Extract<{
488
+ readonly _tag: "Disconnect";
489
+ }, {
490
+ readonly _tag: Tag;
451
491
  }> | Extract<{
452
492
  readonly _tag: "Retry";
453
493
  }, {
@@ -458,9 +498,11 @@ declare const Command$2: {
458
498
  readonly _tag: Tag;
459
499
  }>;
460
500
  readonly $match: {
461
- <Cases extends { readonly [Tag in "Connect" | "Retry" | "Reuse"]: (args: Extract<{
501
+ <Cases extends { readonly [Tag in "Connect" | "Disconnect" | "Retry" | "Reuse"]: (args: Extract<{
462
502
  readonly _tag: "Connect";
463
503
  readonly method: Transport.Method;
504
+ } | {
505
+ readonly _tag: "Disconnect";
464
506
  } | {
465
507
  readonly _tag: "Retry";
466
508
  } | {
@@ -470,14 +512,18 @@ declare const Command$2: {
470
512
  }>) => any; }>(cases: Cases): (value: {
471
513
  readonly _tag: "Connect";
472
514
  readonly method: Transport.Method;
515
+ } | {
516
+ readonly _tag: "Disconnect";
473
517
  } | {
474
518
  readonly _tag: "Retry";
475
519
  } | {
476
520
  readonly _tag: "Reuse";
477
- }) => import("effect/Unify").Unify<ReturnType<Cases["Connect" | "Retry" | "Reuse"]>>;
478
- <Cases extends { readonly [Tag in "Connect" | "Retry" | "Reuse"]: (args: Extract<{
521
+ }) => import("effect/Unify").Unify<ReturnType<Cases["Connect" | "Disconnect" | "Retry" | "Reuse"]>>;
522
+ <Cases extends { readonly [Tag in "Connect" | "Disconnect" | "Retry" | "Reuse"]: (args: Extract<{
479
523
  readonly _tag: "Connect";
480
524
  readonly method: Transport.Method;
525
+ } | {
526
+ readonly _tag: "Disconnect";
481
527
  } | {
482
528
  readonly _tag: "Retry";
483
529
  } | {
@@ -487,16 +533,21 @@ declare const Command$2: {
487
533
  }>) => any; }>(value: {
488
534
  readonly _tag: "Connect";
489
535
  readonly method: Transport.Method;
536
+ } | {
537
+ readonly _tag: "Disconnect";
490
538
  } | {
491
539
  readonly _tag: "Retry";
492
540
  } | {
493
541
  readonly _tag: "Reuse";
494
- }, cases: Cases): import("effect/Unify").Unify<ReturnType<Cases["Connect" | "Retry" | "Reuse"]>>;
542
+ }, cases: Cases): import("effect/Unify").Unify<ReturnType<Cases["Connect" | "Disconnect" | "Retry" | "Reuse"]>>;
495
543
  };
496
544
  readonly Connect: Data.TaggedEnum.ConstructorFrom<{
497
545
  readonly _tag: "Connect";
498
546
  readonly method: Transport.Method;
499
547
  }, "_tag">;
548
+ readonly Disconnect: Data.TaggedEnum.ConstructorFrom<{
549
+ readonly _tag: "Disconnect";
550
+ }, "_tag">;
500
551
  readonly Retry: Data.TaggedEnum.ConstructorFrom<{
501
552
  readonly _tag: "Retry";
502
553
  }, "_tag">;
@@ -516,14 +567,14 @@ interface RootState$1 extends Record<string, unknown> {
516
567
  interface RootProps$5 extends PartProps<"div", RootState$1> {
517
568
  readonly status?: State$2["_tag"];
518
569
  }
519
- declare function Root$5({ children, status, ...props }: RootProps$5): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
570
+ declare function Root$5({ children, status, ...props }: RootProps$5): ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
520
571
  interface StatusState extends Record<string, unknown> {
521
572
  readonly status: State$2["_tag"];
522
573
  }
523
574
  interface StatusProps$2 extends PartProps<"div", StatusState> {
524
575
  readonly state: State$2;
525
576
  }
526
- declare function Status$2({ children, state, ...props }: StatusProps$2): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
577
+ declare function Status$2({ children, state, ...props }: StatusProps$2): ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
527
578
  interface TriggerProps extends Omit<ComponentPropsWithoutRef<typeof Dialog.Trigger>, "children"> {
528
579
  readonly children: ReactNode;
529
580
  }
@@ -540,24 +591,24 @@ interface OAuthActionProps extends PartProps<"button", ActionState> {
540
591
  readonly controller: Controller$2;
541
592
  readonly label: string;
542
593
  }
543
- declare function OAuthAction({ controller, label, ...props }: OAuthActionProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
594
+ declare function OAuthAction({ controller, label, ...props }: OAuthActionProps): ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
544
595
  interface ReuseActionProps extends PartProps<"button", ActionState> {
545
596
  readonly controller: Controller$2;
546
597
  readonly label: string;
547
598
  }
548
- declare function ReuseAction({ controller, label, ...props }: ReuseActionProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
599
+ declare function ReuseAction({ controller, label, ...props }: ReuseActionProps): ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
549
600
  interface TokenActionProps extends Omit<PartProps<"form", ActionState>, "method"> {
550
601
  readonly controller: Controller$2;
551
602
  readonly method: Extract<Transport.AuthenticationMethod, {
552
603
  readonly _tag: "Token";
553
604
  }>;
554
605
  }
555
- declare function TokenAction({ controller, method, ...props }: TokenActionProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
556
- interface DialogProps {
606
+ declare function TokenAction({ controller, method, ...props }: TokenActionProps): ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
607
+ interface DialogProps$1 {
557
608
  readonly controller: Controller$2;
558
609
  readonly snapshot: Disconnected;
559
610
  }
560
- declare function Dialog$2({ controller, snapshot }: DialogProps): import("react/jsx-runtime").JSX.Element;
611
+ declare function Dialog$2({ controller, snapshot }: DialogProps$1): import("react/jsx-runtime").JSX.Element;
561
612
  interface FlowProps$2 extends Omit<RootProps$5, "children"> {
562
613
  readonly domain: string;
563
614
  }
@@ -568,80 +619,310 @@ interface RetryActionProps extends PartProps<"button", {
568
619
  readonly controller: Controller$2;
569
620
  readonly kind?: "after-user-action" | "retry";
570
621
  }
571
- declare function RetryAction$1({ controller, kind, ...props }: RetryActionProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
572
- type LocalDisconnectState = Data.TaggedEnum<{
573
- Disconnecting: {};
574
- Idle: {};
622
+ declare function RetryAction$1({ controller, kind, ...props }: RetryActionProps): ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
623
+ interface CardProps$1 extends PartProps<"div", {
624
+ readonly status: State$2["_tag"];
625
+ }> {
626
+ readonly status: State$2["_tag"];
627
+ }
628
+ declare function Card$1({ status, ...props }: CardProps$1): ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
629
+ interface CardIdentityProps extends PartProps<"div", {
630
+ readonly status: State$2["_tag"];
631
+ }> {
632
+ readonly status: State$2["_tag"];
633
+ }
634
+ declare function CardIdentity({ status, ...props }: CardIdentityProps): ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
635
+ interface CardActionsProps extends PartProps<"div", {
636
+ readonly status: State$2["_tag"];
637
+ }> {
638
+ readonly status: State$2["_tag"];
639
+ }
640
+ declare function CardActions({ status, ...props }: CardActionsProps): ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
641
+ interface DisconnectDialogProps {
642
+ readonly connection: Transport.Connected;
643
+ readonly controller: Controller$2;
644
+ readonly onOpenChange?: (open: boolean) => void;
645
+ readonly open?: boolean;
646
+ readonly trigger?: ReactElement | null;
647
+ }
648
+ declare function DisconnectDialog({ connection, controller, onOpenChange, open: openProp, trigger }: DisconnectDialogProps): import("react/jsx-runtime").JSX.Element;
649
+ type Connected = Transport.Connected;
650
+ declare namespace domain_d_exports {
651
+ export { Flow$1 as Flow, FlowProps$1 as FlowProps };
652
+ }
653
+ interface FlowProps$1 {
654
+ readonly domain: string;
655
+ readonly receiptId?: string;
656
+ readonly records: ReadonlyArray<Transport.DnsRecord>;
657
+ }
658
+ declare function Flow$1({ domain, receiptId, records }: FlowProps$1): import("react/jsx-runtime").JSX.Element;
659
+ //#endregion
660
+ //#region src/icons.d.ts
661
+ type Icons = {
662
+ readonly copied: ReactNode;
663
+ readonly copy: ReactNode;
664
+ readonly download: ReactNode;
665
+ };
666
+ declare namespace lifecycle_d_exports {
667
+ export { Event, Listener };
668
+ }
669
+ /** User-action lifecycle events suitable for host notifications and telemetry. */
670
+ type Event = Data.TaggedEnum<{
671
+ ConnectionEstablished: {
672
+ readonly connection: Transport.Connected;
673
+ readonly source: "connect" | "reuse";
674
+ };
675
+ DomainDisconnected: {
676
+ readonly connection: Transport.Connected;
677
+ readonly result: Transport.RemoveDomainResult;
678
+ };
679
+ RecordsApplied: {
680
+ readonly connection: Transport.Connected;
681
+ readonly result: Extract<Transport.ApplyResult, {
682
+ readonly _tag: "Applied";
683
+ }>;
684
+ };
685
+ RecordsCleaned: {
686
+ readonly connection: Transport.Connected;
687
+ readonly result: Extract<Transport.CleanupResult, {
688
+ readonly _tag: "Cleaned";
689
+ }>;
690
+ };
691
+ RecordsPartiallyApplied: {
692
+ readonly connection: Transport.Connected;
693
+ readonly result: Extract<Transport.ApplyResult, {
694
+ readonly _tag: "Partial";
695
+ }>;
696
+ };
697
+ RecordsPartiallyCleaned: {
698
+ readonly connection: Transport.Connected;
699
+ readonly result: Extract<Transport.CleanupResult, {
700
+ readonly _tag: "Partial";
701
+ }>;
702
+ };
575
703
  }>;
576
- declare const DisconnectState: {
577
- readonly $is: <Tag extends "Disconnecting" | "Idle">(tag: Tag) => (u: unknown) => u is Extract<{
578
- readonly _tag: "Disconnecting";
704
+ declare const Event: {
705
+ readonly $is: <Tag extends "ConnectionEstablished" | "DomainDisconnected" | "RecordsApplied" | "RecordsCleaned" | "RecordsPartiallyApplied" | "RecordsPartiallyCleaned">(tag: Tag) => (u: unknown) => u is Extract<{
706
+ readonly _tag: "ConnectionEstablished";
707
+ readonly connection: Transport.Connected;
708
+ readonly source: "connect" | "reuse";
579
709
  }, {
580
710
  readonly _tag: Tag;
581
711
  }> | Extract<{
582
- readonly _tag: "Idle";
712
+ readonly _tag: "DomainDisconnected";
713
+ readonly connection: Transport.Connected;
714
+ readonly result: Transport.RemoveDomainResult;
715
+ }, {
716
+ readonly _tag: Tag;
717
+ }> | Extract<{
718
+ readonly _tag: "RecordsApplied";
719
+ readonly connection: Transport.Connected;
720
+ readonly result: Extract<Transport.ApplyResult, {
721
+ readonly _tag: "Applied";
722
+ }>;
723
+ }, {
724
+ readonly _tag: Tag;
725
+ }> | Extract<{
726
+ readonly _tag: "RecordsCleaned";
727
+ readonly connection: Transport.Connected;
728
+ readonly result: Extract<Transport.CleanupResult, {
729
+ readonly _tag: "Cleaned";
730
+ }>;
731
+ }, {
732
+ readonly _tag: Tag;
733
+ }> | Extract<{
734
+ readonly _tag: "RecordsPartiallyApplied";
735
+ readonly connection: Transport.Connected;
736
+ readonly result: Extract<Transport.ApplyResult, {
737
+ readonly _tag: "Partial";
738
+ }>;
739
+ }, {
740
+ readonly _tag: Tag;
741
+ }> | Extract<{
742
+ readonly _tag: "RecordsPartiallyCleaned";
743
+ readonly connection: Transport.Connected;
744
+ readonly result: Extract<Transport.CleanupResult, {
745
+ readonly _tag: "Partial";
746
+ }>;
583
747
  }, {
584
748
  readonly _tag: Tag;
585
749
  }>;
586
750
  readonly $match: {
587
- <Cases extends { readonly [Tag in "Disconnecting" | "Idle"]: (args: Extract<{
588
- readonly _tag: "Disconnecting";
751
+ <Cases extends { readonly [Tag in "ConnectionEstablished" | "DomainDisconnected" | "RecordsApplied" | "RecordsCleaned" | "RecordsPartiallyApplied" | "RecordsPartiallyCleaned"]: (args: Extract<{
752
+ readonly _tag: "ConnectionEstablished";
753
+ readonly connection: Transport.Connected;
754
+ readonly source: "connect" | "reuse";
589
755
  } | {
590
- readonly _tag: "Idle";
756
+ readonly _tag: "DomainDisconnected";
757
+ readonly connection: Transport.Connected;
758
+ readonly result: Transport.RemoveDomainResult;
759
+ } | {
760
+ readonly _tag: "RecordsApplied";
761
+ readonly connection: Transport.Connected;
762
+ readonly result: Extract<Transport.ApplyResult, {
763
+ readonly _tag: "Applied";
764
+ }>;
765
+ } | {
766
+ readonly _tag: "RecordsCleaned";
767
+ readonly connection: Transport.Connected;
768
+ readonly result: Extract<Transport.CleanupResult, {
769
+ readonly _tag: "Cleaned";
770
+ }>;
771
+ } | {
772
+ readonly _tag: "RecordsPartiallyApplied";
773
+ readonly connection: Transport.Connected;
774
+ readonly result: Extract<Transport.ApplyResult, {
775
+ readonly _tag: "Partial";
776
+ }>;
777
+ } | {
778
+ readonly _tag: "RecordsPartiallyCleaned";
779
+ readonly connection: Transport.Connected;
780
+ readonly result: Extract<Transport.CleanupResult, {
781
+ readonly _tag: "Partial";
782
+ }>;
591
783
  }, {
592
784
  readonly _tag: Tag;
593
785
  }>) => any; }>(cases: Cases): (value: {
594
- readonly _tag: "Disconnecting";
786
+ readonly _tag: "ConnectionEstablished";
787
+ readonly connection: Transport.Connected;
788
+ readonly source: "connect" | "reuse";
595
789
  } | {
596
- readonly _tag: "Idle";
597
- }) => import("effect/Unify").Unify<ReturnType<Cases["Disconnecting" | "Idle"]>>;
598
- <Cases extends { readonly [Tag in "Disconnecting" | "Idle"]: (args: Extract<{
599
- readonly _tag: "Disconnecting";
790
+ readonly _tag: "DomainDisconnected";
791
+ readonly connection: Transport.Connected;
792
+ readonly result: Transport.RemoveDomainResult;
600
793
  } | {
601
- readonly _tag: "Idle";
794
+ readonly _tag: "RecordsApplied";
795
+ readonly connection: Transport.Connected;
796
+ readonly result: Extract<Transport.ApplyResult, {
797
+ readonly _tag: "Applied";
798
+ }>;
799
+ } | {
800
+ readonly _tag: "RecordsCleaned";
801
+ readonly connection: Transport.Connected;
802
+ readonly result: Extract<Transport.CleanupResult, {
803
+ readonly _tag: "Cleaned";
804
+ }>;
805
+ } | {
806
+ readonly _tag: "RecordsPartiallyApplied";
807
+ readonly connection: Transport.Connected;
808
+ readonly result: Extract<Transport.ApplyResult, {
809
+ readonly _tag: "Partial";
810
+ }>;
811
+ } | {
812
+ readonly _tag: "RecordsPartiallyCleaned";
813
+ readonly connection: Transport.Connected;
814
+ readonly result: Extract<Transport.CleanupResult, {
815
+ readonly _tag: "Partial";
816
+ }>;
817
+ }) => import("effect/Unify").Unify<ReturnType<Cases["ConnectionEstablished" | "DomainDisconnected" | "RecordsApplied" | "RecordsCleaned" | "RecordsPartiallyApplied" | "RecordsPartiallyCleaned"]>>;
818
+ <Cases extends { readonly [Tag in "ConnectionEstablished" | "DomainDisconnected" | "RecordsApplied" | "RecordsCleaned" | "RecordsPartiallyApplied" | "RecordsPartiallyCleaned"]: (args: Extract<{
819
+ readonly _tag: "ConnectionEstablished";
820
+ readonly connection: Transport.Connected;
821
+ readonly source: "connect" | "reuse";
822
+ } | {
823
+ readonly _tag: "DomainDisconnected";
824
+ readonly connection: Transport.Connected;
825
+ readonly result: Transport.RemoveDomainResult;
826
+ } | {
827
+ readonly _tag: "RecordsApplied";
828
+ readonly connection: Transport.Connected;
829
+ readonly result: Extract<Transport.ApplyResult, {
830
+ readonly _tag: "Applied";
831
+ }>;
832
+ } | {
833
+ readonly _tag: "RecordsCleaned";
834
+ readonly connection: Transport.Connected;
835
+ readonly result: Extract<Transport.CleanupResult, {
836
+ readonly _tag: "Cleaned";
837
+ }>;
838
+ } | {
839
+ readonly _tag: "RecordsPartiallyApplied";
840
+ readonly connection: Transport.Connected;
841
+ readonly result: Extract<Transport.ApplyResult, {
842
+ readonly _tag: "Partial";
843
+ }>;
844
+ } | {
845
+ readonly _tag: "RecordsPartiallyCleaned";
846
+ readonly connection: Transport.Connected;
847
+ readonly result: Extract<Transport.CleanupResult, {
848
+ readonly _tag: "Partial";
849
+ }>;
602
850
  }, {
603
851
  readonly _tag: Tag;
604
852
  }>) => any; }>(value: {
605
- readonly _tag: "Disconnecting";
853
+ readonly _tag: "ConnectionEstablished";
854
+ readonly connection: Transport.Connected;
855
+ readonly source: "connect" | "reuse";
606
856
  } | {
607
- readonly _tag: "Idle";
608
- }, cases: Cases): import("effect/Unify").Unify<ReturnType<Cases["Disconnecting" | "Idle"]>>;
857
+ readonly _tag: "DomainDisconnected";
858
+ readonly connection: Transport.Connected;
859
+ readonly result: Transport.RemoveDomainResult;
860
+ } | {
861
+ readonly _tag: "RecordsApplied";
862
+ readonly connection: Transport.Connected;
863
+ readonly result: Extract<Transport.ApplyResult, {
864
+ readonly _tag: "Applied";
865
+ }>;
866
+ } | {
867
+ readonly _tag: "RecordsCleaned";
868
+ readonly connection: Transport.Connected;
869
+ readonly result: Extract<Transport.CleanupResult, {
870
+ readonly _tag: "Cleaned";
871
+ }>;
872
+ } | {
873
+ readonly _tag: "RecordsPartiallyApplied";
874
+ readonly connection: Transport.Connected;
875
+ readonly result: Extract<Transport.ApplyResult, {
876
+ readonly _tag: "Partial";
877
+ }>;
878
+ } | {
879
+ readonly _tag: "RecordsPartiallyCleaned";
880
+ readonly connection: Transport.Connected;
881
+ readonly result: Extract<Transport.CleanupResult, {
882
+ readonly _tag: "Partial";
883
+ }>;
884
+ }, cases: Cases): import("effect/Unify").Unify<ReturnType<Cases["ConnectionEstablished" | "DomainDisconnected" | "RecordsApplied" | "RecordsCleaned" | "RecordsPartiallyApplied" | "RecordsPartiallyCleaned"]>>;
609
885
  };
610
- readonly Disconnecting: Data.TaggedEnum.ConstructorFrom<{
611
- readonly _tag: "Disconnecting";
886
+ readonly ConnectionEstablished: Data.TaggedEnum.ConstructorFrom<{
887
+ readonly _tag: "ConnectionEstablished";
888
+ readonly connection: Transport.Connected;
889
+ readonly source: "connect" | "reuse";
612
890
  }, "_tag">;
613
- readonly Idle: Data.TaggedEnum.ConstructorFrom<{
614
- readonly _tag: "Idle";
891
+ readonly DomainDisconnected: Data.TaggedEnum.ConstructorFrom<{
892
+ readonly _tag: "DomainDisconnected";
893
+ readonly connection: Transport.Connected;
894
+ readonly result: Transport.RemoveDomainResult;
895
+ }, "_tag">;
896
+ readonly RecordsApplied: Data.TaggedEnum.ConstructorFrom<{
897
+ readonly _tag: "RecordsApplied";
898
+ readonly connection: Transport.Connected;
899
+ readonly result: Extract<Transport.ApplyResult, {
900
+ readonly _tag: "Applied";
901
+ }>;
902
+ }, "_tag">;
903
+ readonly RecordsCleaned: Data.TaggedEnum.ConstructorFrom<{
904
+ readonly _tag: "RecordsCleaned";
905
+ readonly connection: Transport.Connected;
906
+ readonly result: Extract<Transport.CleanupResult, {
907
+ readonly _tag: "Cleaned";
908
+ }>;
909
+ }, "_tag">;
910
+ readonly RecordsPartiallyApplied: Data.TaggedEnum.ConstructorFrom<{
911
+ readonly _tag: "RecordsPartiallyApplied";
912
+ readonly connection: Transport.Connected;
913
+ readonly result: Extract<Transport.ApplyResult, {
914
+ readonly _tag: "Partial";
915
+ }>;
916
+ }, "_tag">;
917
+ readonly RecordsPartiallyCleaned: Data.TaggedEnum.ConstructorFrom<{
918
+ readonly _tag: "RecordsPartiallyCleaned";
919
+ readonly connection: Transport.Connected;
920
+ readonly result: Extract<Transport.CleanupResult, {
921
+ readonly _tag: "Partial";
922
+ }>;
615
923
  }, "_tag">;
616
924
  };
617
- type DisconnectState = LocalDisconnectState | Transport.RemoveDomainResult | Failure;
618
- declare function useDisconnect(connection: Transport.Connected): {
619
- readonly disconnect: () => void;
620
- readonly state: DisconnectState;
621
- };
622
- interface DisconnectActionProps extends PartProps<"div", {
623
- readonly status: DisconnectState["_tag"];
624
- }> {
625
- readonly connection: Transport.Connected;
626
- }
627
- declare function DisconnectAction({ connection, ...props }: DisconnectActionProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
628
- type Connected = Transport.Connected;
629
- declare namespace domain_d_exports {
630
- export { Flow$1 as Flow, FlowProps$1 as FlowProps };
631
- }
632
- interface FlowProps$1 {
633
- readonly domain: string;
634
- readonly receiptId?: string;
635
- readonly records: ReadonlyArray<Transport.DnsRecord>;
636
- }
637
- declare function Flow$1({ domain, receiptId, records }: FlowProps$1): import("react/jsx-runtime").JSX.Element;
638
- //#endregion
639
- //#region src/icons.d.ts
640
- type Icons = {
641
- readonly copied: ReactNode;
642
- readonly copy: ReactNode;
643
- readonly download: ReactNode;
644
- };
925
+ type Listener = (event: Event) => void;
645
926
  declare namespace messages_d_exports {
646
927
  export { Catalog, english, merge };
647
928
  }
@@ -649,12 +930,12 @@ interface Catalog {
649
930
  readonly applyCleanup: string;
650
931
  readonly applyDns: string;
651
932
  readonly applyingDns: string;
933
+ readonly authenticationAlternative: string;
652
934
  readonly automaticUnavailable: string;
653
935
  readonly cancel: string;
654
936
  readonly checkAgain: string;
655
937
  readonly checkingDns: string;
656
938
  readonly checkDns: string;
657
- readonly cleanupComplete: string;
658
939
  readonly cleanupConsent: string;
659
940
  readonly cleanupPartial: string;
660
941
  readonly cleaningDns: string;
@@ -665,15 +946,17 @@ interface Catalog {
665
946
  readonly close: string;
666
947
  readonly detectingProvider: string;
667
948
  readonly disconnectDomain: string;
949
+ readonly disconnectConsent: string;
668
950
  readonly disconnecting: string;
951
+ readonly disconnectTitle: (provider: string) => string;
669
952
  readonly domainDisconnected: string;
670
953
  readonly dialogDescription: (domain: string) => string;
671
954
  readonly dialogTitle: (provider: string) => string;
672
955
  readonly openingAuthorization: string;
956
+ readonly moreActions: string;
673
957
  readonly planConsent: string;
674
958
  readonly planningCleanup: string;
675
959
  readonly planningDns: string;
676
- readonly recordsApplied: string;
677
960
  readonly recordsPartiallyApplied: string;
678
961
  readonly reviewCleanup: string;
679
962
  readonly reviewDns: string;
@@ -689,9 +972,11 @@ declare namespace theme_d_exports {
689
972
  interface Theme {
690
973
  readonly accent?: string;
691
974
  readonly accentContrast?: string;
975
+ readonly backdrop?: string;
692
976
  readonly background?: string;
693
977
  readonly border?: string;
694
978
  readonly danger?: string;
979
+ readonly dangerContrast?: string;
695
980
  readonly fill?: string;
696
981
  readonly fontFamily?: string;
697
982
  readonly muted?: string;
@@ -714,6 +999,7 @@ interface RootProps$4 extends Omit<PartProps<"div", RootState>, "children"> {
714
999
  readonly messages?: Partial<Catalog>;
715
1000
  readonly marks?: Marks;
716
1001
  readonly navigate?: (url: string) => void;
1002
+ readonly onEvent?: Listener;
717
1003
  readonly portalContainer?: HTMLElement | null;
718
1004
  readonly theme?: Theme;
719
1005
  readonly transport: Layer.Layer<Transport.Service>;
@@ -723,11 +1009,12 @@ interface ContextValue {
723
1009
  readonly navigate: (url: string) => void;
724
1010
  readonly marks: Marks;
725
1011
  readonly messages: Catalog;
1012
+ readonly emit: Listener;
726
1013
  readonly portalContainer: RefObject<HTMLElement | null>;
727
1014
  readonly themeStyle: ReturnType<typeof toStyle>;
728
1015
  readonly runtime: Runtime;
729
1016
  }
730
- declare function Root$4({ children, colorScheme, icons, marks, messages, navigate, portalContainer, theme, transport, ...props }: RootProps$4): import("react/jsx-runtime").JSX.Element;
1017
+ declare function Root$4({ children, colorScheme, icons, marks, messages, navigate, onEvent, portalContainer, theme, transport, ...props }: RootProps$4): import("react/jsx-runtime").JSX.Element;
731
1018
  declare function useDomainKit(): ContextValue;
732
1019
  declare namespace operations_d_exports {
733
1020
  export { Item, ItemProps, Kind, Lifecycle, List, ListProps, Name, Operation, Priority$1 as Priority, Reason, Record$1 as Record, Root$3 as Root, RootProps$3 as RootProps, Type, Value$1 as Value };
@@ -761,7 +1048,7 @@ interface ListProps extends Omit<RootProps$3, "children" | "count"> {
761
1048
  }
762
1049
  declare function List({ lifecycle, operations, ...props }: ListProps): import("react/jsx-runtime").JSX.Element;
763
1050
  declare namespace provisioning_d_exports {
764
- export { Command$1 as Command, Controller$1 as Controller, Dialog$1 as Dialog, Flow, FlowProps, Model$1 as Model, Outcome$1 as Outcome, RetryAction, Root$2 as Root, RootProps$2 as RootProps, State$1 as State, useController$1 as useController, useModel$1 as useModel };
1051
+ export { Command$1 as Command, Controller$1 as Controller, Dialog$1 as Dialog, DialogProps, Flow, FlowProps, Model$1 as Model, Outcome$1 as Outcome, RetryAction, Root$2 as Root, RootProps$2 as RootProps, State$1 as State, useController$1 as useController, useModel$1 as useModel };
765
1052
  }
766
1053
  type LocalState$1 = Data.TaggedEnum<{
767
1054
  Applying: {
@@ -1018,13 +1305,15 @@ interface RootProps$2 extends PartProps<"div", {
1018
1305
  }> {
1019
1306
  readonly status: State$1["_tag"];
1020
1307
  }
1021
- declare function Root$2({ status, ...props }: RootProps$2): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
1308
+ declare function Root$2({ status, ...props }: RootProps$2): ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
1022
1309
  declare function Outcome$1({ state }: {
1023
1310
  readonly state: State$1;
1024
1311
  }): import("react/jsx-runtime").JSX.Element | null;
1025
- declare function Dialog$1({ controller }: {
1312
+ interface DialogProps {
1026
1313
  readonly controller: Controller$1;
1027
- }): import("react/jsx-runtime").JSX.Element;
1314
+ readonly trigger?: ReactElement;
1315
+ }
1316
+ declare function Dialog$1({ controller, trigger }: DialogProps): import("react/jsx-runtime").JSX.Element;
1028
1317
  declare function RetryAction({ controller }: {
1029
1318
  readonly controller: Controller$1;
1030
1319
  }): import("react/jsx-runtime").JSX.Element | null;
@@ -1035,8 +1324,9 @@ interface FlowProps extends Omit<RootProps$2, "status"> {
1035
1324
  }>) => void;
1036
1325
  readonly records: ReadonlyArray<Transport.DnsRecord>;
1037
1326
  readonly showRecords?: boolean;
1327
+ readonly trigger?: ReactElement;
1038
1328
  }
1039
- declare function Flow({ connection, onApplied, records, showRecords, ...props }: FlowProps): import("react/jsx-runtime").JSX.Element;
1329
+ declare function Flow({ connection, onApplied, records, showRecords, trigger, ...props }: FlowProps): import("react/jsx-runtime").JSX.Element;
1040
1330
  declare namespace records_d_exports {
1041
1331
  export { Body, Caption, Card, CardContent, CardHeader, CardProps, CardTitle, Cell, CopyController, CopyValue, CopyValueProps, DnsRecord, Footer, Head, Header, ObservationEvidence, Priority, PriorityProps, Root$1 as Root, RootProps$1 as RootProps, Row, Status$1 as Status, StatusProps$1 as StatusProps, Table, TableProps, Value, ZoneFile, ZoneFileProps, copyText, downloadZoneFile, toZoneFile, useCopy };
1042
1332
  }
@@ -1157,54 +1447,93 @@ interface FakeTransport extends Transport.AsyncInterface, Layer.Layer<Transport.
1157
1447
  declare const provider$1: (overrides?: Partial<Transport.Provider>) => Transport.Provider;
1158
1448
  declare function makeFakeTransport(options: FakeOptions): FakeTransport;
1159
1449
  declare namespace verification_d_exports {
1160
- export { Command, Controller, Evidence, Model, Observation, ObserveAction, ObserveConfig, Outcome, Root, RootProps, State, Status, StatusProps, useController, useModel };
1450
+ export { Command, Controller, Evidence, Model, Observation, ObserveAction, ObserveActionProps, ObserveConfig, Outcome, Root, RootProps, State, Status, StatusProps, useController, useModel };
1161
1451
  }
1162
1452
  type LocalState = Data.TaggedEnum<{
1453
+ Failed: {
1454
+ readonly failure: Failure;
1455
+ readonly previous?: Transport.Observation;
1456
+ };
1163
1457
  Idle: {};
1164
- Observing: {};
1458
+ Observing: {
1459
+ readonly previous?: Transport.Observation;
1460
+ };
1165
1461
  }>;
1166
1462
  declare const State: {
1167
- readonly $is: <Tag extends "Idle" | "Observing">(tag: Tag) => (u: unknown) => u is Extract<{
1463
+ readonly $is: <Tag extends "Failed" | "Idle" | "Observing">(tag: Tag) => (u: unknown) => u is Extract<{
1464
+ readonly _tag: "Failed";
1465
+ readonly failure: Failure;
1466
+ readonly previous?: Transport.Observation;
1467
+ }, {
1468
+ readonly _tag: Tag;
1469
+ }> | Extract<{
1168
1470
  readonly _tag: "Idle";
1169
1471
  }, {
1170
1472
  readonly _tag: Tag;
1171
1473
  }> | Extract<{
1172
1474
  readonly _tag: "Observing";
1475
+ readonly previous?: Transport.Observation;
1173
1476
  }, {
1174
1477
  readonly _tag: Tag;
1175
1478
  }>;
1176
1479
  readonly $match: {
1177
- <Cases extends { readonly [Tag in "Idle" | "Observing"]: (args: Extract<{
1480
+ <Cases extends { readonly [Tag in "Failed" | "Idle" | "Observing"]: (args: Extract<{
1481
+ readonly _tag: "Failed";
1482
+ readonly failure: Failure;
1483
+ readonly previous?: Transport.Observation;
1484
+ } | {
1178
1485
  readonly _tag: "Idle";
1179
1486
  } | {
1180
1487
  readonly _tag: "Observing";
1488
+ readonly previous?: Transport.Observation;
1181
1489
  }, {
1182
1490
  readonly _tag: Tag;
1183
1491
  }>) => any; }>(cases: Cases): (value: {
1492
+ readonly _tag: "Failed";
1493
+ readonly failure: Failure;
1494
+ readonly previous?: Transport.Observation;
1495
+ } | {
1184
1496
  readonly _tag: "Idle";
1185
1497
  } | {
1186
1498
  readonly _tag: "Observing";
1187
- }) => import("effect/Unify").Unify<ReturnType<Cases["Idle" | "Observing"]>>;
1188
- <Cases extends { readonly [Tag in "Idle" | "Observing"]: (args: Extract<{
1499
+ readonly previous?: Transport.Observation;
1500
+ }) => import("effect/Unify").Unify<ReturnType<Cases["Failed" | "Idle" | "Observing"]>>;
1501
+ <Cases extends { readonly [Tag in "Failed" | "Idle" | "Observing"]: (args: Extract<{
1502
+ readonly _tag: "Failed";
1503
+ readonly failure: Failure;
1504
+ readonly previous?: Transport.Observation;
1505
+ } | {
1189
1506
  readonly _tag: "Idle";
1190
1507
  } | {
1191
1508
  readonly _tag: "Observing";
1509
+ readonly previous?: Transport.Observation;
1192
1510
  }, {
1193
1511
  readonly _tag: Tag;
1194
1512
  }>) => any; }>(value: {
1513
+ readonly _tag: "Failed";
1514
+ readonly failure: Failure;
1515
+ readonly previous?: Transport.Observation;
1516
+ } | {
1195
1517
  readonly _tag: "Idle";
1196
1518
  } | {
1197
1519
  readonly _tag: "Observing";
1198
- }, cases: Cases): import("effect/Unify").Unify<ReturnType<Cases["Idle" | "Observing"]>>;
1520
+ readonly previous?: Transport.Observation;
1521
+ }, cases: Cases): import("effect/Unify").Unify<ReturnType<Cases["Failed" | "Idle" | "Observing"]>>;
1199
1522
  };
1523
+ readonly Failed: Data.TaggedEnum.ConstructorFrom<{
1524
+ readonly _tag: "Failed";
1525
+ readonly failure: Failure;
1526
+ readonly previous?: Transport.Observation;
1527
+ }, "_tag">;
1200
1528
  readonly Idle: Data.TaggedEnum.ConstructorFrom<{
1201
1529
  readonly _tag: "Idle";
1202
1530
  }, "_tag">;
1203
1531
  readonly Observing: Data.TaggedEnum.ConstructorFrom<{
1204
1532
  readonly _tag: "Observing";
1533
+ readonly previous?: Transport.Observation;
1205
1534
  }, "_tag">;
1206
1535
  };
1207
- type State = LocalState | Transport.Observation | Failure;
1536
+ type State = LocalState | Transport.Observation;
1208
1537
  interface ObserveConfig {
1209
1538
  readonly connection?: Transport.Connected;
1210
1539
  readonly domain: string;
@@ -1282,14 +1611,17 @@ declare function Evidence({ observation }: {
1282
1611
  declare function Outcome({ state }: {
1283
1612
  readonly state: State;
1284
1613
  }): import("react/jsx-runtime").JSX.Element | null;
1285
- declare function ObserveAction({ controller }: {
1614
+ interface ObserveActionProps extends PartProps<"button", {
1615
+ readonly status: State["_tag"];
1616
+ }> {
1286
1617
  readonly controller: Controller;
1287
- }): import("react/jsx-runtime").JSX.Element;
1618
+ }
1619
+ declare function ObserveAction({ controller, ...props }: ObserveActionProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
1288
1620
  interface StatusProps extends Omit<RootProps, "status"> {
1289
1621
  readonly config: ObserveConfig;
1290
1622
  }
1291
1623
  declare function Status({ config, ...props }: StatusProps): import("react/jsx-runtime").JSX.Element;
1292
1624
  type Observation = Transport.Observation;
1293
1625
  //#endregion
1294
- export { cleanup_d_exports as Cleanup, connection_d_exports as Connection, domain_d_exports as Domain, domain_kit_d_exports as DomainKit, messages_d_exports as Messages, operations_d_exports as Operations, provider_d_exports as Provider, provisioning_d_exports as Provisioning, records_d_exports as Records, testing_d_exports as Testing, theme_d_exports as Theme, verification_d_exports as Verification };
1626
+ export { cleanup_d_exports as Cleanup, connection_d_exports as Connection, domain_d_exports as Domain, domain_kit_d_exports as DomainKit, lifecycle_d_exports as Lifecycle, messages_d_exports as Messages, operations_d_exports as Operations, provider_d_exports as Provider, provisioning_d_exports as Provisioning, records_d_exports as Records, testing_d_exports as Testing, theme_d_exports as Theme, verification_d_exports as Verification };
1295
1627
  //# sourceMappingURL=index.d.mts.map