@vantageos/mosaic-blocks 0.5.29-alpha → 0.5.31-alpha

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.cts CHANGED
@@ -21,7 +21,7 @@ import * as class_variance_authority_types from 'class-variance-authority/types'
21
21
  import { AlertDialog } from '@base-ui/react/alert-dialog';
22
22
  export { Tooltip } from '@base-ui/react/tooltip';
23
23
 
24
- declare const version = "0.5.29-alpha";
24
+ declare const version = "0.5.31-alpha";
25
25
 
26
26
  /**
27
27
  * Placeholder component — infra scaffold only.
@@ -2328,7 +2328,7 @@ interface MosaicSidebarFooterStatus {
2328
2328
  sublabel?: string;
2329
2329
  icon?: React.ReactNode;
2330
2330
  }
2331
- interface MosaicAppSidebarProps {
2331
+ interface MosaicAppSidebarBaseProps {
2332
2332
  isCollapsed: boolean;
2333
2333
  onToggleCollapse: () => void;
2334
2334
  /** Current active path — used to highlight active nav items */
@@ -2345,6 +2345,13 @@ interface MosaicAppSidebarProps {
2345
2345
  logoSlot?: React.ReactNode;
2346
2346
  /** Footer status pill */
2347
2347
  footerStatus?: MosaicSidebarFooterStatus;
2348
+ /**
2349
+ * Position of the collapse/expand chevron toggle. Defaults to "top" (inside
2350
+ * the header) — the pre-existing behavior, unchanged for current consumers.
2351
+ * "bottom" anchors it in its own zone below the nav (and below bottomNavItems
2352
+ * when present), matching a footer-anchored nav pattern.
2353
+ */
2354
+ chevronPosition?: "top" | "bottom";
2348
2355
  /**
2349
2356
  * aria-label for the root `<div>` sidebar landmark. Required — host-owned,
2350
2357
  * no default.
@@ -2363,6 +2370,18 @@ interface MosaicAppSidebarProps {
2363
2370
  className?: string;
2364
2371
  ref?: React.Ref<HTMLDivElement>;
2365
2372
  }
2373
+ /**
2374
+ * bottomNavAriaLabel is REQUIRED exactly where it is READ: the bottom nav zone
2375
+ * only renders `<nav>` when bottomNavItems is provided, so the label is only
2376
+ * required in that branch — never a silently-missing default.
2377
+ */
2378
+ type MosaicAppSidebarProps = MosaicAppSidebarBaseProps & ({
2379
+ bottomNavItems?: undefined;
2380
+ bottomNavAriaLabel?: string;
2381
+ } | {
2382
+ bottomNavItems: MosaicSidebarNavItem[];
2383
+ bottomNavAriaLabel: string;
2384
+ });
2366
2385
  /**
2367
2386
  * MosaicAppSidebar — collapsible sidebar with nav, quick actions, recent items, footer.
2368
2387
  * Props-driven: no hardcoded routes or branding. Wires to MosaicDeviceProvider.
@@ -2379,7 +2398,7 @@ interface MosaicAppSidebarProps {
2379
2398
  * />
2380
2399
  * </MosaicDeviceProvider>
2381
2400
  */
2382
- declare function MosaicAppSidebar({ isCollapsed, onToggleCollapse, activePath, onNavigate, navItems, quickActions, recentItems, logoSlot, footerStatus, sidebarAriaLabel, mainNavAriaLabel, quickActionsHeading, recentHeading, collapseSidebarAriaLabel, expandSidebarAriaLabel, className, ref, }: MosaicAppSidebarProps): React.JSX.Element;
2401
+ declare function MosaicAppSidebar({ isCollapsed, onToggleCollapse, activePath, onNavigate, navItems, quickActions, recentItems, logoSlot, footerStatus, chevronPosition, bottomNavItems, bottomNavAriaLabel, sidebarAriaLabel, mainNavAriaLabel, quickActionsHeading, recentHeading, collapseSidebarAriaLabel, expandSidebarAriaLabel, className, ref, }: MosaicAppSidebarProps): React.JSX.Element;
2383
2402
  declare namespace MosaicAppSidebar {
2384
2403
  var displayName: string;
2385
2404
  }
@@ -2403,6 +2422,8 @@ declare namespace MosaicAppSidebar {
2403
2422
  * Respects prefers-reduced-motion.
2404
2423
  */
2405
2424
 
2425
+ /** Omit that distributes over a discriminated union instead of collapsing it. */
2426
+ type DistributiveOmit<T, K extends keyof T> = T extends unknown ? Omit<T, K> : never;
2406
2427
  interface MosaicBreadcrumb {
2407
2428
  label: string;
2408
2429
  href?: string;
@@ -2418,8 +2439,12 @@ interface MosaicDashboardLayoutProps {
2418
2439
  * Props forwarded to MosaicAppSidebar (navItems, quickActions, etc.).
2419
2440
  * Required — MosaicAppSidebar itself requires host-owned aria-label /
2420
2441
  * heading strings with no default.
2442
+ *
2443
+ * Uses a distributive Omit so the bottomNavItems/bottomNavAriaLabel
2444
+ * discriminated union on MosaicAppSidebarProps survives the Omit — a plain
2445
+ * `Omit<Union, K>` collapses the union and loses the discriminant.
2421
2446
  */
2422
- sidebarProps: Omit<MosaicAppSidebarProps, "isCollapsed" | "onToggleCollapse">;
2447
+ sidebarProps: DistributiveOmit<MosaicAppSidebarProps, "isCollapsed" | "onToggleCollapse">;
2423
2448
  /** Whether sidebar starts collapsed (default false) */
2424
2449
  defaultSidebarCollapsed?: boolean;
2425
2450
  /** Mobile sidebar modal title. Required, no default. */
@@ -2733,15 +2758,48 @@ interface MosaicAgentComposerProps {
2733
2758
  previewConfigLabel: string;
2734
2759
  customInstructionsPreviewLabel: string;
2735
2760
  selectAllModulesLabel: string;
2761
+ /**
2762
+ * Module-slot action strings — required, host-owned, no default, no silent
2763
+ * English fallback (SIN-01). Each is a compose function rather than a
2764
+ * flat string because the composed phrase ("Edit {label}", "Select
2765
+ * {label}"…) is not just a word substitution: word order, articles, and
2766
+ * even verb placement relative to the noun vary by language (e.g. the verb
2767
+ * precedes the noun in English but not in every language). The host is the
2768
+ * only party that can own that composition.
2769
+ */
2770
+ editModuleAriaLabel: (label: string) => string;
2771
+ removeModuleAriaLabel: (label: string) => string;
2772
+ /** Used for both the empty-slot aria-label and its visible button text. */
2773
+ selectModuleAriaLabel: (label: string) => string;
2774
+ /** Visible text on the "change selection" button once a module is filled. */
2775
+ changeModuleLabel: (label: string) => string;
2736
2776
  /** Fallback name shown in the preview when `agentName` is empty. Required, no default. */
2737
2777
  unnamedAgentLabel: string;
2738
2778
  }
2779
+ interface MosaicAgentComposerDesktopProps extends MosaicAgentComposerProps {
2780
+ /**
2781
+ * Required host-owned strings — no default, no fallback. Read
2782
+ * unconditionally by the three module slots on every render.
2783
+ */
2784
+ roleSublabel: string;
2785
+ personaSublabel: string;
2786
+ frameworkSublabel: string;
2787
+ /**
2788
+ * Which module slots must be filled before the live preview renders.
2789
+ * Optional — defaults to all four (role, persona, framework, model), i.e.
2790
+ * the exact behavior this component had before this prop existed. No
2791
+ * existing consumer needs to change anything to keep working unchanged.
2792
+ * Desktop-only: MosaicAgentComposerMobile has no live-preview panel and
2793
+ * never reads this prop.
2794
+ */
2795
+ previewRequires?: Array<"role" | "persona" | "framework" | "model">;
2796
+ }
2739
2797
  /**
2740
2798
  * MosaicAgentComposerDesktop — two-column composer (desktop half of responsive pair).
2741
2799
  * Share the same props contract with MosaicAgentComposerMobile.
2742
2800
  * Use MosaicAgentComposer orchestrator to select the right variant automatically.
2743
2801
  */
2744
- declare function MosaicAgentComposerDesktop({ agentName, onAgentNameChange, customInstructions, onCustomInstructionsChange, selectedRole, selectedPersona, selectedFramework, selectedModel, onSelectRole, onSelectPersona, onSelectFramework, onSelectModel, onRemoveRole, onRemovePersona, onRemoveFramework, onSave, onCancel, canSave, isEditMode, labels, agentNameLabel, agentNamePlaceholder, instructionsPlaceholder, modelDescriptionLabel, recommendedBadgeLabel, livePreviewHeading, livePreviewSubheading, previewConfigLabel, customInstructionsPreviewLabel, selectAllModulesLabel, unnamedAgentLabel, }: MosaicAgentComposerProps): React.JSX.Element;
2802
+ declare function MosaicAgentComposerDesktop({ agentName, onAgentNameChange, customInstructions, onCustomInstructionsChange, selectedRole, selectedPersona, selectedFramework, selectedModel, onSelectRole, onSelectPersona, onSelectFramework, onSelectModel, onRemoveRole, onRemovePersona, onRemoveFramework, onSave, onCancel, canSave, isEditMode, labels, agentNameLabel, agentNamePlaceholder, instructionsPlaceholder, modelDescriptionLabel, recommendedBadgeLabel, livePreviewHeading, livePreviewSubheading, previewConfigLabel, customInstructionsPreviewLabel, selectAllModulesLabel, unnamedAgentLabel, roleSublabel, personaSublabel, frameworkSublabel, editModuleAriaLabel, removeModuleAriaLabel, selectModuleAriaLabel, changeModuleLabel, previewRequires, }: MosaicAgentComposerDesktopProps): React.JSX.Element;
2745
2803
  declare namespace MosaicAgentComposerDesktop {
2746
2804
  var displayName: string;
2747
2805
  }
@@ -2791,11 +2849,19 @@ interface MosaicAgentComposerMobileProps extends MosaicAgentComposerProps {
2791
2849
  * Shares the same props contract as MosaicAgentComposerDesktop (plus isLoading).
2792
2850
  * Use MosaicAgentComposer orchestrator to select the right variant automatically.
2793
2851
  */
2794
- declare function MosaicAgentComposerMobile({ agentName, onAgentNameChange, customInstructions, onCustomInstructionsChange, selectedRole, selectedPersona, selectedFramework, selectedModel, onSelectRole, onSelectPersona, onSelectFramework, onSelectModel, onRemoveRole, onRemovePersona, onRemoveFramework, onSave, onCancel, canSave, isEditMode, isLoading, labels, agentNameLabel, agentNamePlaceholder, instructionsPlaceholder, recommendedBadgeLabel, requiredLabel, goBackAriaLabel, savingLabel, creatingLabel, optionalInstructionsHelp, }: MosaicAgentComposerMobileProps): React.JSX.Element;
2852
+ declare function MosaicAgentComposerMobile({ agentName, onAgentNameChange, customInstructions, onCustomInstructionsChange, selectedRole, selectedPersona, selectedFramework, selectedModel, onSelectRole, onSelectPersona, onSelectFramework, onSelectModel, onRemoveRole, onRemovePersona, onRemoveFramework, onSave, onCancel, canSave, isEditMode, isLoading, labels, agentNameLabel, agentNamePlaceholder, instructionsPlaceholder, recommendedBadgeLabel, requiredLabel, goBackAriaLabel, savingLabel, creatingLabel, optionalInstructionsHelp, editModuleAriaLabel, removeModuleAriaLabel, selectModuleAriaLabel, changeModuleLabel, }: MosaicAgentComposerMobileProps): React.JSX.Element;
2795
2853
  declare namespace MosaicAgentComposerMobile {
2796
2854
  var displayName: string;
2797
2855
  }
2798
2856
 
2857
+ /**
2858
+ * The orchestrator can render EITHER variant at runtime depending on
2859
+ * viewport, so it must accept the union of both variants' required props
2860
+ * up front — it cannot know statically which one will render. This is the
2861
+ * same reasoning already applied to `requiredLabel` (Mobile-only) and now
2862
+ * extended to the three Desktop-only module-slot sublabels.
2863
+ */
2864
+ type MosaicAgentComposerOrchestratorProps = MosaicAgentComposerMobileProps & Pick<MosaicAgentComposerDesktopProps, "roleSublabel" | "personaSublabel" | "frameworkSublabel" | "previewRequires">;
2799
2865
  /**
2800
2866
  * MosaicAgentComposer — device-adaptive composer that renders the Desktop
2801
2867
  * variant on lg+ and the Mobile variant below lg.
@@ -2826,7 +2892,7 @@ declare namespace MosaicAgentComposerMobile {
2826
2892
  * />
2827
2893
  * </MosaicDeviceProvider>
2828
2894
  */
2829
- declare function MosaicAgentComposer(props: MosaicAgentComposerMobileProps): React.JSX.Element;
2895
+ declare function MosaicAgentComposer(props: MosaicAgentComposerOrchestratorProps): React.JSX.Element;
2830
2896
  declare namespace MosaicAgentComposer {
2831
2897
  var displayName: string;
2832
2898
  }
@@ -3482,6 +3548,11 @@ interface MosaicQuickAgentSelectorProps {
3482
3548
  availableAgents?: MosaicQuickAgent[];
3483
3549
  onAddAgent: (agentId: string) => void;
3484
3550
  onRemoveAgent: (agentId: string) => void;
3551
+ /**
3552
+ * Formatter for the remove-pill aria-label. Required, no default — the
3553
+ * host owns the language (e.g. `(name) => t('QuickAgentSelector.remove', { name })`).
3554
+ */
3555
+ removeAgentAriaLabel: (agentName: string) => string;
3485
3556
  /** Called when user clicks "Create custom" / "Configure" CTA */
3486
3557
  onOpenBuilder?: () => void;
3487
3558
  /** Max number of agents allowed */
@@ -3501,7 +3572,7 @@ interface MosaicQuickAgentSelectorProps {
3501
3572
  closeAriaLabel: string;
3502
3573
  className?: string;
3503
3574
  }
3504
- declare function MosaicQuickAgentSelector({ selectedAgents, availableAgents, onAddAgent, onRemoveAgent, onOpenBuilder, maxAgents, addLabel, createLabel, quickAddHeading, configureBehaviorCaption, noAgentsAvailableMessage, addAgentModalTitle, closeAriaLabel, className, }: MosaicQuickAgentSelectorProps): React.JSX.Element;
3575
+ declare function MosaicQuickAgentSelector({ selectedAgents, availableAgents, onAddAgent, onRemoveAgent, removeAgentAriaLabel, onOpenBuilder, maxAgents, addLabel, createLabel, quickAddHeading, configureBehaviorCaption, noAgentsAvailableMessage, addAgentModalTitle, closeAriaLabel, className, }: MosaicQuickAgentSelectorProps): React.JSX.Element;
3505
3576
  declare namespace MosaicQuickAgentSelector {
3506
3577
  var displayName: string;
3507
3578
  }
@@ -4553,8 +4624,15 @@ interface MosaicTemplatePreviewProps {
4553
4624
  selectLabel: string;
4554
4625
  /** Label for the cancel button (shown when `onClose` is set). Required, no default. */
4555
4626
  cancelLabel: string;
4627
+ /**
4628
+ * Formatter for the "Agents (N)" heading, shown only when `template.agents`
4629
+ * is non-empty. Optional — when absent, the heading is not rendered at all
4630
+ * (no fallback word). The host owns the language
4631
+ * (e.g. `(count) => t('TemplatePreview.agentsCount', { count })`).
4632
+ */
4633
+ formatAgentsHeading?: (count: number) => string;
4556
4634
  }
4557
- declare function MosaicTemplatePreview({ template, onSelect, onClose, selectLabel, cancelLabel, }: MosaicTemplatePreviewProps): React.JSX.Element;
4635
+ declare function MosaicTemplatePreview({ template, onSelect, onClose, selectLabel, cancelLabel, formatAgentsHeading, }: MosaicTemplatePreviewProps): React.JSX.Element;
4558
4636
  declare namespace MosaicTemplatePreview {
4559
4637
  var displayName: string;
4560
4638
  }
@@ -4710,6 +4788,13 @@ interface MosaicModuleLibraryProps {
4710
4788
  * no default.
4711
4789
  */
4712
4790
  tagListAddPlaceholder: string;
4791
+ /**
4792
+ * Formatter for a tag-chip's remove-button aria-label, read only when a
4793
+ * `tag-list` field renders an existing tag. Optional — when absent, the
4794
+ * remove button renders with no `aria-label` (no fallback word). The host
4795
+ * owns the language (e.g. `(tag) => t('ModuleForm.removeTag', { tag })`).
4796
+ */
4797
+ removeTagAriaLabel?: (tag: string) => string;
4713
4798
  className?: string;
4714
4799
  }
4715
4800
  /** Props shared by both form modes — read unconditionally. */
@@ -4733,6 +4818,13 @@ interface MosaicModuleFormBaseProps {
4733
4818
  * no default.
4734
4819
  */
4735
4820
  tagListAddPlaceholder: string;
4821
+ /**
4822
+ * Formatter for a tag-chip's remove-button aria-label, read only when a
4823
+ * `tag-list` field renders an existing tag. Optional — when absent, the
4824
+ * remove button renders with no `aria-label` (no fallback word). The host
4825
+ * owns the language (e.g. `(tag) => t('ModuleForm.removeTag', { tag })`).
4826
+ */
4827
+ removeTagAriaLabel?: (tag: string) => string;
4736
4828
  }
4737
4829
  /**
4738
4830
  * Discriminated union on `mode`. The submit button renders EXACTLY ONE label:
@@ -4813,9 +4905,22 @@ interface MosaicStatItem {
4813
4905
  }
4814
4906
  interface MosaicOrgRoleBadgeProps {
4815
4907
  role: MosaicOrgRole;
4908
+ /**
4909
+ * Host-owned display label for this role (e.g. "Owner" / "Propriétaire").
4910
+ * Required, no default — the label is rendered unconditionally whenever
4911
+ * the badge renders, so there is no branch where this value is absent.
4912
+ */
4913
+ label: string;
4914
+ /**
4915
+ * Host-owned description rendered as the badge's `title` tooltip.
4916
+ * Required, no default — the `title` attribute is set unconditionally
4917
+ * whenever the badge renders, so there is no branch where this value is
4918
+ * absent.
4919
+ */
4920
+ description: string;
4816
4921
  className?: string;
4817
4922
  }
4818
- declare function MosaicOrgRoleBadge({ role, className }: MosaicOrgRoleBadgeProps): React.JSX.Element;
4923
+ declare function MosaicOrgRoleBadge({ role, label, description, className, }: MosaicOrgRoleBadgeProps): React.JSX.Element;
4819
4924
  declare namespace MosaicOrgRoleBadge {
4820
4925
  var displayName: string;
4821
4926
  }
@@ -4854,8 +4959,18 @@ interface MosaicCreateOrgDialogProps {
4854
4959
  cancelLabel: string;
4855
4960
  creatingLabel: string;
4856
4961
  createLabel: string;
4962
+ /**
4963
+ * Optional host-owned validation messages. Each is rendered ONLY when the
4964
+ * corresponding field is invalid — omitting one means the field is still
4965
+ * validated (submission is still blocked) but no message text renders.
4966
+ * No fallback word: an absent prop is silence, never a manufactured
4967
+ * English string.
4968
+ */
4969
+ nameRequiredMessage?: string;
4970
+ slugRequiredMessage?: string;
4971
+ slugFormatMessage?: string;
4857
4972
  }
4858
- declare function MosaicCreateOrgDialog({ open, onOpenChange, onCreateOrg, isLoading, title, closeAriaLabel, orgNameFieldLabel, orgNamePlaceholder, slugFieldLabel, slugPlaceholder, descriptionFieldLabel, descriptionPlaceholder, cancelLabel, creatingLabel, createLabel, }: MosaicCreateOrgDialogProps): React.JSX.Element;
4973
+ declare function MosaicCreateOrgDialog({ open, onOpenChange, onCreateOrg, isLoading, title, closeAriaLabel, orgNameFieldLabel, orgNamePlaceholder, slugFieldLabel, slugPlaceholder, descriptionFieldLabel, descriptionPlaceholder, cancelLabel, creatingLabel, createLabel, nameRequiredMessage, slugRequiredMessage, slugFormatMessage, }: MosaicCreateOrgDialogProps): React.JSX.Element;
4859
4974
  declare namespace MosaicCreateOrgDialog {
4860
4975
  var displayName: string;
4861
4976
  }
@@ -4867,7 +4982,12 @@ interface MosaicInviteMemberDialogProps {
4867
4982
  role: MosaicOrgRole;
4868
4983
  }) => void | Promise<void>;
4869
4984
  isLoading?: boolean;
4870
- roles?: Array<{
4985
+ /**
4986
+ * Host-owned role options (value + display label). Required, no default —
4987
+ * a default role list would reintroduce hardcoded English labels
4988
+ * ("Admin"/"Member") the library must never ship on its own.
4989
+ */
4990
+ roles: Array<{
4871
4991
  value: MosaicOrgRole;
4872
4992
  label: string;
4873
4993
  }>;
@@ -4884,8 +5004,16 @@ interface MosaicInviteMemberDialogProps {
4884
5004
  cancelLabel: string;
4885
5005
  sendingLabel: string;
4886
5006
  sendInvitationLabel: string;
5007
+ /**
5008
+ * Optional host-owned validation messages. Each is rendered ONLY when the
5009
+ * email field is invalid for that specific reason — an absent prop means
5010
+ * the field is still validated (submission still blocked) but renders no
5011
+ * message text. No fallback word.
5012
+ */
5013
+ emailRequiredMessage?: string;
5014
+ emailInvalidMessage?: string;
4887
5015
  }
4888
- declare function MosaicInviteMemberDialog({ open, onOpenChange, onInvite, isLoading, roles, title, closeAriaLabel, emailFieldLabel, emailPlaceholder, roleFieldLabel, cancelLabel, sendingLabel, sendInvitationLabel, }: MosaicInviteMemberDialogProps): React.JSX.Element;
5016
+ declare function MosaicInviteMemberDialog({ open, onOpenChange, onInvite, isLoading, roles, title, closeAriaLabel, emailFieldLabel, emailPlaceholder, roleFieldLabel, cancelLabel, sendingLabel, sendInvitationLabel, emailRequiredMessage, emailInvalidMessage, }: MosaicInviteMemberDialogProps): React.JSX.Element;
4889
5017
  declare namespace MosaicInviteMemberDialog {
4890
5018
  var displayName: string;
4891
5019
  }
@@ -4895,7 +5023,12 @@ interface MosaicMemberListProps {
4895
5023
  onChangeRole?: (memberId: string, role: MosaicOrgRole) => void;
4896
5024
  onRemoveMember?: (memberId: string) => void;
4897
5025
  onInvite?: () => void;
4898
- roles?: Array<{
5026
+ /**
5027
+ * Host-owned role options (value + display label), used to populate the
5028
+ * "change role" menu. Required, no default — a default role list would
5029
+ * reintroduce hardcoded English labels the library must never ship.
5030
+ */
5031
+ roles: Array<{
4899
5032
  value: MosaicOrgRole;
4900
5033
  label: string;
4901
5034
  }>;
@@ -4910,9 +5043,35 @@ interface MosaicMemberListProps {
4910
5043
  removeMemberLabel: string;
4911
5044
  emptyMessage: string;
4912
5045
  inviteLabel: string;
5046
+ /**
5047
+ * Host-owned description per role, rendered as each member's role badge
5048
+ * tooltip. Required, no default — every rendered row shows a role badge
5049
+ * unconditionally.
5050
+ */
5051
+ roleDescriptions: Record<MosaicOrgRole, string>;
5052
+ /**
5053
+ * Host-owned display label per role, rendered inside each member's role
5054
+ * badge. Required, no default — every rendered row shows a role badge
5055
+ * unconditionally.
5056
+ */
5057
+ roleLabels: Record<MosaicOrgRole, string>;
5058
+ /**
5059
+ * Host-composed "joined on <date>" caption. Required, no default; called
5060
+ * ONLY for members that have a `joinedAt` — a member without one renders
5061
+ * no caption at all, so the function is never invoked for that row. The
5062
+ * host owns the whole sentence (word order varies by language), never a
5063
+ * library-side "Joined " + date concatenation.
5064
+ */
5065
+ joinedLabel: (date: string) => string;
5066
+ /**
5067
+ * Host-composed "make <role>" menu-item caption (e.g. "Make admin" /
5068
+ * "Nommer admin"). Required, no default; the host owns the whole sentence,
5069
+ * never a library-side "Make " + label concatenation.
5070
+ */
5071
+ makeRoleLabel: (roleLabel: string) => string;
4913
5072
  className?: string;
4914
5073
  }
4915
- declare function MosaicMemberList({ members, currentUserId, onChangeRole, onRemoveMember, onInvite, roles, isLoading, searchPlaceholder, youLabel, memberActionsAriaLabel, removeMemberLabel, emptyMessage, inviteLabel, className, }: MosaicMemberListProps): React.JSX.Element;
5074
+ declare function MosaicMemberList({ members, currentUserId, onChangeRole, onRemoveMember, onInvite, roles, isLoading, searchPlaceholder, youLabel, memberActionsAriaLabel, removeMemberLabel, emptyMessage, inviteLabel, roleDescriptions, roleLabels, joinedLabel, makeRoleLabel, className, }: MosaicMemberListProps): React.JSX.Element;
4916
5075
  declare namespace MosaicMemberList {
4917
5076
  var displayName: string;
4918
5077
  }
@@ -4996,6 +5155,13 @@ interface MosaicDashboardHeaderProps {
4996
5155
  /** Notification count (0 = no badge) */
4997
5156
  notificationCount?: number;
4998
5157
  onNotificationsClick?: () => void;
5158
+ /**
5159
+ * Formatter for the notifications button aria-label, read only when
5160
+ * `onNotificationsClick` is set. Optional — when absent, the button
5161
+ * renders with no `aria-label` (no fallback word). The host owns the
5162
+ * language (e.g. `(count) => t('DashboardHeader.notifications', { count })`).
5163
+ */
5164
+ notificationsAriaLabel?: (count: number) => string;
4999
5165
  onSearchChange?: (query: string) => void;
5000
5166
  /** Right-side slot (theme toggle, avatar, quick actions, etc.) */
5001
5167
  actions?: React.ReactNode;
@@ -5013,7 +5179,7 @@ interface MosaicDashboardHeaderProps {
5013
5179
  searchAriaLabel: string;
5014
5180
  className?: string;
5015
5181
  }
5016
- declare function MosaicDashboardHeader({ title, subtitle, notificationCount, onNotificationsClick, onSearchChange, actions, logoSlot, searchPlaceholder, searchAriaLabel, className, }: MosaicDashboardHeaderProps): React.JSX.Element;
5182
+ declare function MosaicDashboardHeader({ title, subtitle, notificationCount, onNotificationsClick, notificationsAriaLabel, onSearchChange, actions, logoSlot, searchPlaceholder, searchAriaLabel, className, }: MosaicDashboardHeaderProps): React.JSX.Element;
5017
5183
  declare namespace MosaicDashboardHeader {
5018
5184
  var displayName: string;
5019
5185
  }
@@ -6192,6 +6358,19 @@ declare namespace MosaicUrlScraper {
6192
6358
  * </MosaicChatThread>
6193
6359
  */
6194
6360
 
6361
+ /**
6362
+ * Snapshot of which messages are currently in the thread's viewport.
6363
+ *
6364
+ * Shape mirrors the shadcn `useMessageScrollerVisibility()` convention
6365
+ * (`currentAnchorId` / `visibleMessageIds`) so a host migrating from one to
6366
+ * the other does not need to remap fields.
6367
+ */
6368
+ interface MosaicChatThreadVisibleRange {
6369
+ /** Ids (DOM `id` attribute) of the direct children currently intersecting the viewport, in DOM order. */
6370
+ visibleMessageIds: string[];
6371
+ /** Id of the topmost visible child — a stable "you are here" anchor for a future jump-to-message affordance. `null` when nothing is visible. */
6372
+ currentAnchorId: string | null;
6373
+ }
6195
6374
  interface MosaicChatThreadProps {
6196
6375
  /** The host-rendered message list (or any other scrollable content). */
6197
6376
  children: React.ReactNode;
@@ -6205,6 +6384,21 @@ interface MosaicChatThreadProps {
6205
6384
  className?: string;
6206
6385
  /** React 19 ref prop — forwarded to the root scrollable element. */
6207
6386
  ref?: React.Ref<HTMLDivElement>;
6387
+ /**
6388
+ * OPTIONAL. Called whenever the set of visible messages changes, as
6389
+ * observed via `IntersectionObserver` on the content wrapper's direct
6390
+ * children. `children` stays fully opaque to this component — the only
6391
+ * signal read off each child is its DOM `id` attribute, never its content
6392
+ * or shape. A child without an `id` is silently excluded from the report
6393
+ * (nothing to identify it by), never introspected further.
6394
+ *
6395
+ * When this prop is omitted, NO `IntersectionObserver` is created — hosts
6396
+ * that do not need visible-range tracking pay zero cost for it.
6397
+ *
6398
+ * Opens the door to a future "jump to message" affordance built on top of
6399
+ * `currentAnchorId`.
6400
+ */
6401
+ onVisibleRangeChange?: (range: MosaicChatThreadVisibleRange) => void;
6208
6402
  }
6209
6403
  /**
6210
6404
  * MosaicChatThread — production auto-scrolling chat thread atom for
@@ -6214,7 +6408,7 @@ interface MosaicChatThreadProps {
6214
6408
  * conversation state — the host owns the messages and passes them as
6215
6409
  * `children`; this component only owns the scroll mechanics.
6216
6410
  */
6217
- declare function MosaicChatThread({ children, scrollToBottomLabel, className, ref, }: MosaicChatThreadProps): React.JSX.Element;
6411
+ declare function MosaicChatThread({ children, scrollToBottomLabel, className, ref, onVisibleRangeChange, }: MosaicChatThreadProps): React.JSX.Element;
6218
6412
  declare namespace MosaicChatThread {
6219
6413
  var displayName: string;
6220
6414
  }
@@ -9095,4 +9289,1012 @@ declare const memorySearchFilterChipVariants: (props?: ({
9095
9289
  selected?: boolean | null | undefined;
9096
9290
  } & class_variance_authority_types.ClassProp) | undefined) => string;
9097
9291
 
9098
- export { type Breakpoint, type DeviceContextValue, type Feature3ColItem, type FeatureItem, type FooterColumn, type FooterLink, type HeroCta, type LogoItem, MosaicAccordion, MosaicAccordionItem, type MosaicAccordionItemProps, MosaicAccordionPanel, type MosaicAccordionPanelProps, type MosaicAccordionProps, MosaicAccordionTrigger, type MosaicAccordionTriggerProps, type MosaicActionAccent, type MosaicActivity, MosaicActivityFeed, type MosaicActivityFeedProps, MosaicActivityItem, type MosaicActivityItemProps, type MosaicActivityStatus, MosaicAdaptiveGrid, type MosaicAdaptiveGridProps, MosaicAdaptiveModal, type MosaicAdaptiveModalProps, MosaicAdaptiveNavigation, type MosaicAdaptiveNavigationProps, MosaicAddMemoryForm, type MosaicAddMemoryFormProps, MosaicAgentBuilderModal, type MosaicAgentBuilderModalProps, MosaicAgentCard, type MosaicAgentCardProps, MosaicAgentChat, type MosaicAgentChatApprovalLabels, type MosaicAgentChatApprovalRequest, type MosaicAgentChatApprovalResponsePayload, type MosaicAgentChatMessage, type MosaicAgentChatMessagePart, type MosaicAgentChatProps, type MosaicAgentChatState, type MosaicAgentChatToolPart, type MosaicAgentChatToolPartState, MosaicAgentComposer, MosaicAgentComposerDesktop, MosaicAgentComposerMobile, type MosaicAgentComposerMobileProps, type MosaicAgentComposerProps, type MosaicAgentData, MosaicAgentEditor, type MosaicAgentEditorProps, MosaicAgentList, AgentListDesktop as MosaicAgentListDesktop, AgentListMobile as MosaicAgentListMobile, type MosaicAgentListProps, type MosaicAgentPreset, MosaicAgentPreview, type MosaicAgentPreviewAttribute, type MosaicAgentPreviewDetailedProps, type MosaicAgentPreviewProps, type MosaicAgentPreviewSummaryProps, MosaicAgentTeamPreview, type MosaicAgentTeamPreviewProps, MosaicAlertDialog, MosaicAlertDialogAction, type MosaicAlertDialogActionProps, MosaicAlertDialogCancel, type MosaicAlertDialogCancelProps, MosaicAlertDialogContent, type MosaicAlertDialogContentProps, MosaicAlertDialogDescription, type MosaicAlertDialogDescriptionProps, MosaicAlertDialogFooter, MosaicAlertDialogHeader, MosaicAlertDialogOverlay, type MosaicAlertDialogOverlayProps, MosaicAlertDialogPortal, MosaicAlertDialogTitle, type MosaicAlertDialogTitleProps, MosaicAlertDialogTrigger, MosaicAnimatedList, type MosaicAnimatedListProps, MosaicApiKeyPanel, type MosaicApiKeyPanelProps, type MosaicApiKeyPanelProvider, type MosaicApiKeyPanelState, MosaicAppSidebar, type MosaicAppSidebarProps, MosaicApprovalPrompt, type MosaicApprovalPromptProps, type MosaicApprovalPromptState, MosaicAvatar, type MosaicAvatarProps, MosaicBadge, type MosaicBadgeProps, MosaicBlurredOrb, type MosaicBlurredOrbProps, type MosaicBreadcrumb, MosaicButton, type MosaicButtonProps, MosaicCard, MosaicCardContent, type MosaicCardContentProps, MosaicCardDescription, type MosaicCardDescriptionProps, MosaicCardFooter, type MosaicCardFooterProps, MosaicCardHeader, type MosaicCardHeaderProps, type MosaicCardProps, MosaicCardTitle, type MosaicCardTitleProps, MosaicChatComposer, type MosaicChatComposerProps, type MosaicChatComposerState, MosaicChatMessage, type MosaicChatMessageAttachmentPart, type MosaicChatMessagePart, type MosaicChatMessageProps, type MosaicChatMessageReasoningPart, type MosaicChatMessageSenderRole, type MosaicChatMessageTextPart, type MosaicChatMessageToolPart, type MosaicChatMessageToolState, type MosaicChatMessageToolStatusLabels, MosaicChatSidebar, type MosaicChatSidebarProps, MosaicChatThread, type MosaicChatThreadProps, MosaicCheckbox, type MosaicCheckboxProps, type MosaicClerkMembership, MosaicClerkOrgSwitcher, type MosaicClerkOrgSwitcherProps, type MosaicClerkOrganization, MosaicClerkWebhookHandler, type MosaicClerkWebhookHandlerOptions, MosaicCollapsible, MosaicCollapsiblePanel, type MosaicCollapsiblePanelProps, type MosaicCollapsibleProps, MosaicCollapsibleTrigger, type MosaicCollapsibleTriggerProps, MosaicCombobox, type MosaicComboboxItem, type MosaicComboboxProps, type MosaicComposerModel, type MosaicComposerModule, MosaicCounter, type MosaicCounterProps, MosaicCreateOrgDialog, type MosaicCreateOrgDialogProps, MosaicDashboardContent, type MosaicDashboardContentProps, MosaicDashboardHeader, type MosaicDashboardHeaderProps, MosaicDashboardLayout, type MosaicDashboardLayoutProps, type MosaicDashboardView, MosaicDataTable, type MosaicDataTableColumn, type MosaicDataTablePagination, type MosaicDataTableProps, MosaicDeleteConfirmationDialog, type MosaicDeleteConfirmationDialogProps, MosaicDeviceProvider, type MosaicDeviceProviderProps, MosaicDocumentUpload, type MosaicDocumentUploadFile, type MosaicDocumentUploadFileStatus, type MosaicDocumentUploadProps, MosaicDrawer, type MosaicDrawerProps, MosaicDropdownMenu, type MosaicDropdownMenuItem, type MosaicDropdownMenuProps, MosaicEditMemoryDialog, type MosaicEditMemoryDialogProps, MosaicEmptyState, type MosaicEmptyStateProps, MosaicFallingPattern, type MosaicFallingPatternProps, MosaicFeature3Col, type MosaicFeature3ColProps, MosaicFeatureCenteredMedia, type MosaicFeatureCenteredMediaProps, MosaicField, MosaicFieldControl, type MosaicFieldControlProps, MosaicFieldDescription, type MosaicFieldDescriptionProps, MosaicFieldError, type MosaicFieldErrorProps, MosaicFieldLabel, type MosaicFieldLabelProps, type MosaicFieldProps, MosaicFilterBar, type MosaicFilterBarProps, type MosaicFilterOption, MosaicFilterSidebar, type MosaicFilterSidebarProps, MosaicFooterSimple, type MosaicFooterSimpleProps, MosaicHeroSplit, type MosaicHeroSplitProps, MosaicInput, MosaicInputGroup, type MosaicInputGroupProps, type MosaicInputProps, MosaicIntegrationsBadge, type MosaicIntegrationsBadgeProps, MosaicInviteMemberDialog, type MosaicInviteMemberDialogProps, MosaicKanbanBoard, type MosaicKanbanBoardProps, MosaicKanbanColumn, type MosaicKanbanColumnProps, MosaicLogosGrid, type MosaicLogosGridProps, MosaicMainNav, type MosaicMainNavProps, MosaicMarkdown, type MosaicMarkdownProps, MosaicMarketplaceCard, type MosaicMarketplaceCardProps, type MosaicMarketplaceItem, MosaicMarketplaceList, MarketplaceListDesktop as MosaicMarketplaceListDesktop, MarketplaceListMobile as MosaicMarketplaceListMobile, type MosaicMarketplaceListProps, MosaicMemberList, type MosaicMemberListProps, MosaicMemoryCard, type MosaicMemoryCardProps, MosaicMemoryDashboard, type MosaicMemoryDashboardProps, type MosaicMemoryDashboardStat, type MosaicMemoryDashboardViewMode, type MosaicMemoryData, MosaicMemoryGrid, type MosaicMemoryGridProps, MosaicMemoryList, type MosaicMemoryListProps, type MosaicMemoryScope, MosaicMemorySearch, type MosaicMemorySearchFilter, type MosaicMemorySearchProps, type MosaicMemorySource, type MosaicMessage, MosaicMessageCard, type MosaicMessageCardProps, MosaicMessageList, MessageListDesktop as MosaicMessageListDesktop, MessageListMobile as MosaicMessageListMobile, type MosaicMessageListProps, type MosaicMessageReactions, type MosaicMessageSender, type MosaicMessageSenderType, type MosaicModelOption, MosaicModelSelector, type MosaicModelSelectorProps, MosaicModuleCard, type MosaicModuleCardProps, type MosaicModuleData, MosaicModuleForm, type MosaicModuleFormField, type MosaicModuleFormProps, type MosaicModuleItem, MosaicModuleLibrary, type MosaicModuleLibraryProps, type MosaicModuleType, MosaicMultiOrgIndicator, type MosaicMultiOrgIndicatorProps, MosaicMultiTenantProvider, type MosaicMultiTenantProviderProps, type MosaicNavItem, MosaicNavbar, type MosaicNavbarProps, type MosaicNavigationItem, type MosaicOrg, type MosaicOrgInfo, type MosaicOrgMember, MosaicOrgPanel, type MosaicOrgPanelProps, type MosaicOrgPanelTab, MosaicOrgProfilePage, type MosaicOrgProfilePageProps, type MosaicOrgRole, MosaicOrgRoleBadge, type MosaicOrgRoleBadgeProps, type MosaicOrgStats, MosaicOrgSwitcher, type MosaicOrgSwitcherProps, MosaicPdfViewer, type MosaicPdfViewerProps, MosaicPopover, type MosaicPopoverProps, type MosaicSelectItem as MosaicPrefSelectItem, type MosaicPreference, type MosaicPreferenceGroup, MosaicPreferencesPanel, type MosaicPreferencesPanelProps, MosaicPricingCard, type MosaicPricingCardProps, type MosaicProfileField, MosaicProfilePanel, type MosaicProfilePanelProps, MosaicProgress, type MosaicProgressProps, type MosaicQuickAction$1 as MosaicQuickAction, MosaicQuickActionCard, type MosaicQuickActionCardProps, MosaicQuickActionsMenu, type MosaicQuickAction as MosaicQuickActionsMenuItem, type MosaicQuickActionsMenuProps, type MosaicQuickAgent, MosaicQuickAgentSelector, type MosaicQuickAgentSelectorProps, MosaicQuickStartPanel, type MosaicQuickStartPanelProps, MosaicRadioGroup, MosaicRadioGroupItem, type MosaicRadioGroupItemProps, type MosaicRadioGroupProps, MosaicResizableSplitPane, type MosaicResizableSplitPaneProps, MosaicSaveTemplateModal, type MosaicSaveTemplateModalProps, type MosaicScenario, MosaicScrollArea, type MosaicScrollAreaProps, MosaicSelect, type MosaicSelectItem$1 as MosaicSelectItem, type MosaicSelectProps, type MosaicSelectorCategory, type MosaicSelectorItem, MosaicSelectorModal, type MosaicSelectorModalProps, MosaicSeparator, type MosaicSeparatorProps, type MosaicSidebarFooterStatus, type MosaicSidebarNavItem, type MosaicSidebarQuickAction, type MosaicSidebarRecentItem, MosaicSignInLayout, type MosaicSignInLayoutProps, MosaicSignUpLayout, type MosaicSignUpLayoutProps, MosaicSkeleton, type MosaicSkeletonProps, MosaicSlider, type MosaicSliderProps, type MosaicStatItem, MosaicStatsGrid, type MosaicStatsGridProps, type MosaicStep, MosaicStepPipeline, type MosaicStepPipelineDotsProps, type MosaicStepPipelineProps, type MosaicStepPipelineSegmentsProps, type MosaicStepStatus, MosaicSwitch, type MosaicSwitchProps, MosaicTabs, MosaicTabsList, type MosaicTabsListProps, MosaicTabsPanel, type MosaicTabsPanelProps, type MosaicTabsProps, MosaicTabsTrigger, type MosaicTabsTriggerProps, MosaicTagInput, type MosaicTagInputProps, type MosaicTemplate, type MosaicTemplateAgent, MosaicTemplateAgentCard, type MosaicTemplateAgentCardProps, type MosaicTemplateAgentData, MosaicTemplateCard, type MosaicTemplateCardProps, type MosaicTemplateCategory, MosaicTemplateCategoryChips, type MosaicTemplateCategoryChipsProps, MosaicTemplateGallery, type MosaicTemplateGalleryProps, MosaicTemplateList, type MosaicTemplateListProps, type MosaicTemplateManagementItem, MosaicTemplateManagementPanel, type MosaicTemplateManagementPanelProps, type MosaicTemplateMetadata, MosaicTemplatePreview, type MosaicTemplatePreviewProps, MosaicTestimonialsGrid, type MosaicTestimonialsGridProps, MosaicTextarea, type MosaicTextareaProps, MosaicThemeProvider, type MosaicThemeProviderProps, MosaicThemeToggle, type MosaicThemeToggleProps, MosaicToast, type MosaicToastProps, MosaicToastProvider, type MosaicToastProviderPosition, type MosaicToastProviderProps, type MosaicToastVariant, MosaicToolToggleList, type MosaicToolToggleListApprovalLevel, type MosaicToolToggleListProps, type MosaicToolToggleListSection, type MosaicToolToggleListTool, MosaicTooltip, MosaicTooltipContent, type MosaicTooltipContentProps, type MosaicTooltipProps, MosaicTooltipProvider, type MosaicTooltipProviderProps, MosaicTooltipRoot, type MosaicTooltipRootProps, MosaicTooltipTrigger, type MosaicTooltipTriggerProps, MosaicUrlScraper, type MosaicUrlScraperContent, type MosaicUrlScraperProps, type MosaicUrlScraperState, MosaicUserButton, type MosaicUserButtonProps, type MosaicWorkspaceContext, type NavCta, type NavLink, type OrbPosition, type Orientation, Placeholder, type PricingCta, type SocialLink, type StatItem, type TestimonialItem, type Theme, addMemoryFormButtonVariants, addMemoryFormErrorVariants, addMemoryFormFieldVariants, addMemoryFormFooterVariants, addMemoryFormRootVariants, agentBuilderModalBackdropVariants, agentBuilderModalPopupVariants, agentChatRootVariants, agentEditorVariants, agentPreviewVariants, alertDialogContentVariants, alertDialogOverlayVariants, badgeVariants, buttonVariants, chatMessageBubbleVariants, chatMessageContainerVariants, chatMessageToolStatusVariants, chatSidebarThreadVariants, drawerBackdropVariants, drawerPopupVariants, editMemoryDialogBackdropVariants, editMemoryDialogErrorVariants, editMemoryDialogFieldVariants, editMemoryDialogPopupVariants, marketplaceCardVariants, memoryDashboardViewToggleButtonVariants, memoryGridVariants, memoryListItemVariants, memoryListVariants, memorySearchFilterChipVariants, pdfViewerFrameVariants, pdfViewerStatusVariants, pdfViewerToolbarButtonVariants, popoverPopupVariants, saveTemplateModalBodyVariants, saveTemplateModalButtonVariants, saveTemplateModalErrorVariants, saveTemplateModalFieldVariants, saveTemplateModalFooterVariants, skeletonVariants, splitPaneCollapseButtonVariants, splitPaneHandleVariants, splitPaneRootVariants, tagInputFieldVariants, tagInputRemoveButtonVariants, tagInputRootVariants, tagInputTagVariants, templateAgentCardBadgeVariants, templateAgentCardTagVariants, templateAgentCardVariants, templateCategoryChipVariants, templateListVariants, templateManagementRowVariants, toastCardVariants, toastDismissButtonVariants, toastProviderPositionVariants, toastTitleVariants, toolToggleListRowVariants, toolToggleListSectionVariants, useBreakpoint, useDevice, useMosaicWorkspace as useEffectiveWorkspaceId, useIsDesktop, useIsMobile, useIsTablet, useMediaQuery, useMosaicWorkspace, useOrientation, useViewport, version };
9292
+ /**
9293
+ * MosaicReplyInput — presentational, controlled reply input scoped to one thread
9294
+ *
9295
+ * Presentational atom. Gives follow-up to a single agent/thread without
9296
+ * mixing it into the general flow: it renders a host-supplied thread-context
9297
+ * node above a multi-line, auto-growing textarea, plus Send and Cancel
9298
+ * buttons. The component performs no network call and holds no message
9299
+ * state: the current text is fully host-controlled (`value` +
9300
+ * `onValueChange`), the thread it replies into is a host-supplied node
9301
+ * (`context`), and `onSubmit(text)` / `onCancel()` are pure prop callbacks.
9302
+ *
9303
+ * Local behaviour (no network involved): Enter (without Shift) submits the
9304
+ * trimmed value; Shift+Enter inserts a newline; the textarea auto-grows with
9305
+ * the content up to a max height, then scrolls.
9306
+ *
9307
+ * Pattern: MosaicChatComposer.tsx (data-slot, inline cn, React 19 ref prop,
9308
+ * displayName, JSDoc, pure variants module).
9309
+ * No "use client" — prepend-use-client.mjs adds it to dist.
9310
+ * Design tokens: --foreground, --background, --muted-foreground, --border,
9311
+ * --ring, --card.
9312
+ * No icon library dependency — plain glyphs ("↑" send / "×" cancel), matching
9313
+ * the chat-composer / url-scraper convention. Glyphs are `aria-hidden`; the
9314
+ * accessible name comes from the required `sendButtonAriaLabel` /
9315
+ * `cancelButtonAriaLabel` props.
9316
+ * a11y: the textarea has a required accessible name (`textareaAriaLabel`);
9317
+ * the thread-context region has a required accessible name
9318
+ * (`contextAriaLabel`) distinguishing it, for assistive technology, from the
9319
+ * general conversation flow.
9320
+ * Bilingual: every user-facing string (`textareaAriaLabel`, `placeholder`,
9321
+ * `contextAriaLabel`, `sendButtonAriaLabel`, `cancelButtonAriaLabel`) is a
9322
+ * required caller-supplied prop — zero hardcoded copy, zero default. The
9323
+ * thread context itself is a host-supplied `React.ReactNode` (`context`):
9324
+ * the library never invents the wording that identifies which thread a
9325
+ * reply targets.
9326
+ *
9327
+ * @example
9328
+ * <MosaicReplyInput
9329
+ * value={value}
9330
+ * onValueChange={setValue}
9331
+ * onSubmit={(text) => postReply(threadId, text)}
9332
+ * onCancel={() => closeReplyBox()}
9333
+ * context={<span>Replying to {agentName}</span>}
9334
+ * contextAriaLabel="Thread this reply targets"
9335
+ * textareaAriaLabel="Reply in this thread"
9336
+ * placeholder="Write your reply..."
9337
+ * sendButtonAriaLabel="Send reply"
9338
+ * cancelButtonAriaLabel="Cancel reply"
9339
+ * />
9340
+ */
9341
+
9342
+ type MosaicReplyInputProps = {
9343
+ /** Host-controlled current textarea value. */
9344
+ value: string;
9345
+ /** Called with the raw textarea value on every keystroke. */
9346
+ onValueChange: (value: string) => void;
9347
+ /** Called with the trimmed value on Enter (no Shift) or send-button click. */
9348
+ onSubmit: (text: string) => void;
9349
+ /** Called when the cancel button is activated. */
9350
+ onCancel: () => void;
9351
+ /**
9352
+ * Host-supplied node identifying the thread this reply targets (e.g. the
9353
+ * agent/message it replies to). The library never invents this wording.
9354
+ */
9355
+ context: React.ReactNode;
9356
+ /** Accessible name for the thread-context region. Required, no default. */
9357
+ contextAriaLabel: string;
9358
+ /** Accessible name for the textarea (`aria-label`). Required, no default. */
9359
+ textareaAriaLabel: string;
9360
+ /** Placeholder text for the textarea. Required, no default. */
9361
+ placeholder: string;
9362
+ /** Accessible name for the send button. Required, no default. */
9363
+ sendButtonAriaLabel: string;
9364
+ /** Accessible name for the cancel button. Required, no default. */
9365
+ cancelButtonAriaLabel: string;
9366
+ /** Disables every control (e.g. host-level connectivity loss). */
9367
+ disabled?: boolean;
9368
+ /** Additional Tailwind classes on the root element. */
9369
+ className?: string;
9370
+ /** React 19 ref prop — forwarded to the root element. */
9371
+ ref?: React.Ref<HTMLFormElement>;
9372
+ };
9373
+ /**
9374
+ * MosaicReplyInput — production reply-input atom for
9375
+ * @vantageos/mosaic-blocks.
9376
+ *
9377
+ * Purely presentational: renders a host-supplied thread-context node, a
9378
+ * controlled auto-growing textarea, and Send/Cancel buttons. No network
9379
+ * call, no message history, no built-in copy.
9380
+ */
9381
+ declare function MosaicReplyInput(props: MosaicReplyInputProps): React.JSX.Element;
9382
+ declare namespace MosaicReplyInput {
9383
+ var displayName: string;
9384
+ }
9385
+
9386
+ /**
9387
+ * replyInputVariants — pure CVA variant functions for MosaicReplyInput.
9388
+ *
9389
+ * Isolated in their own module so they can be re-exported from the
9390
+ * `@vantageos/mosaic-blocks/server` subpath without pulling in React.
9391
+ *
9392
+ * Zero browser / React runtime dependencies — safe in RSC / Node.js.
9393
+ */
9394
+ /** Root form container. */
9395
+ declare const replyInputRootVariants: (props?: class_variance_authority_types.ClassProp | undefined) => string;
9396
+ /** Host-supplied thread-context region, shown above the textarea. */
9397
+ declare const replyInputContextVariants: (props?: class_variance_authority_types.ClassProp | undefined) => string;
9398
+ /** Textarea input. */
9399
+ declare const replyInputTextareaVariants: (props?: class_variance_authority_types.ClassProp | undefined) => string;
9400
+ /** Send / cancel action button, by tone. */
9401
+ declare const replyInputActionButtonVariants: (props?: ({
9402
+ tone?: "send" | "cancel" | null | undefined;
9403
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
9404
+
9405
+ /**
9406
+ * MosaicThreadView — one client request, several agents replying beneath it
9407
+ *
9408
+ * Presentational atom. Makes agent collaboration readable: renders a single
9409
+ * root message, then every host-supplied reply nested beneath it, in
9410
+ * document order, inside its own labelled region — distinguishing "the
9411
+ * question" from "the agents answering it" for assistive technology and
9412
+ * sighted users alike.
9413
+ *
9414
+ * The root message and every reply's author/content are host-supplied
9415
+ * `React.ReactNode`s (`root.author`, `root.content`, `replies[].author`,
9416
+ * `replies[].content`): the library never invents sender names, avatars, or
9417
+ * message copy. Zero I/O, zero fetch, zero server-side filtering — the
9418
+ * thread data is fully host-supplied and host-controlled.
9419
+ *
9420
+ * Pattern: MosaicReplyInput.tsx (data-slot, inline cn, React 19 ref prop,
9421
+ * displayName, JSDoc, pure variants module).
9422
+ * No "use client" — prepend-use-client.mjs adds it to dist.
9423
+ * Design tokens: --border, --card, --muted, --muted-foreground.
9424
+ * a11y: the root message and the replies list are each their own labelled
9425
+ * region (`rootAriaLabel`, `repliesAriaLabel`), required props with no
9426
+ * default, so assistive technology can navigate directly to either.
9427
+ * Bilingual: `rootAriaLabel`, `repliesAriaLabel` and `emptyRepliesLabel` are
9428
+ * required caller-supplied strings — zero hardcoded copy, zero default. An
9429
+ * empty `replies` array is a named, host-worded state (`emptyRepliesLabel`);
9430
+ * the library invents no "No replies yet" text of its own.
9431
+ *
9432
+ * @example
9433
+ * <MosaicThreadView
9434
+ * root={{ id: root.id, author: <SenderName sender={root.sender} />, content: <p>{root.text}</p> }}
9435
+ * replies={replies.map((r) => ({
9436
+ * id: r.id,
9437
+ * author: <SenderName sender={r.sender} />,
9438
+ * content: <p>{r.text}</p>,
9439
+ * }))}
9440
+ * rootAriaLabel="Original request"
9441
+ * repliesAriaLabel="Agent replies"
9442
+ * emptyRepliesLabel="No replies yet"
9443
+ * />
9444
+ */
9445
+
9446
+ /** Host-supplied message entry — author and content are fully host-owned nodes. */
9447
+ type MosaicThreadViewMessage = {
9448
+ /** Stable identity for the message (used as list key for replies). */
9449
+ id: string;
9450
+ /** Host-supplied node rendering the sender (name, avatar, badge, ...). */
9451
+ author: React.ReactNode;
9452
+ /** Host-supplied node rendering the message body. */
9453
+ content: React.ReactNode;
9454
+ };
9455
+ type MosaicThreadViewProps = {
9456
+ /** The single client request every reply is nested beneath. */
9457
+ root: MosaicThreadViewMessage;
9458
+ /** Every agent reply, nested beneath the root, rendered in array order. */
9459
+ replies: MosaicThreadViewMessage[];
9460
+ /** Accessible name for the root-message region. Required, no default. */
9461
+ rootAriaLabel: string;
9462
+ /** Accessible name for the nested-replies region. Required, no default. */
9463
+ repliesAriaLabel: string;
9464
+ /**
9465
+ * Host-worded text shown when `replies` is empty. Required — this is a
9466
+ * named absence-of-state, and the library carries no fallback word of its
9467
+ * own for "no replies yet".
9468
+ */
9469
+ emptyRepliesLabel: string;
9470
+ /** Additional Tailwind classes on the root element. */
9471
+ className?: string;
9472
+ /** React 19 ref prop — forwarded to the root element. */
9473
+ ref?: React.Ref<HTMLDivElement>;
9474
+ };
9475
+ /**
9476
+ * MosaicThreadView — production thread-view atom for @vantageos/mosaic-blocks.
9477
+ *
9478
+ * Purely presentational: renders one root message and every host-supplied
9479
+ * reply nested beneath it inside a distinct labelled region. No network
9480
+ * call, no message state, no invented copy.
9481
+ */
9482
+ declare function MosaicThreadView(props: MosaicThreadViewProps): React.JSX.Element;
9483
+ declare namespace MosaicThreadView {
9484
+ var displayName: string;
9485
+ }
9486
+
9487
+ /**
9488
+ * threadViewVariants — pure CVA variant functions for MosaicThreadView.
9489
+ *
9490
+ * Isolated in their own module so they can be re-exported from the
9491
+ * `@vantageos/mosaic-blocks/server` subpath without pulling in React.
9492
+ *
9493
+ * Zero browser / React runtime dependencies — safe in RSC / Node.js.
9494
+ */
9495
+ /** Root container for the whole thread (root message + nested replies). */
9496
+ declare const threadViewRootVariants: (props?: class_variance_authority_types.ClassProp | undefined) => string;
9497
+ /** Root-message region. */
9498
+ declare const threadViewRootMessageVariants: (props?: class_variance_authority_types.ClassProp | undefined) => string;
9499
+ /** Nested-replies list region. */
9500
+ declare const threadViewRepliesVariants: (props?: class_variance_authority_types.ClassProp | undefined) => string;
9501
+ /** A single nested reply entry. */
9502
+ declare const threadViewReplyVariants: (props?: class_variance_authority_types.ClassProp | undefined) => string;
9503
+ /** Named empty-state paragraph, shown only when the host has zero replies to show. */
9504
+ declare const threadViewEmptyVariants: (props?: class_variance_authority_types.ClassProp | undefined) => string;
9505
+
9506
+ /**
9507
+ * MosaicThreadIndicator — signals a thread has UNREAD replies
9508
+ *
9509
+ * Presentational atom. Without it a thread with new agent replies is
9510
+ * invisible from the surrounding flow — this renders the trigger that makes
9511
+ * that state legible and clickable.
9512
+ *
9513
+ * The unread count is NEVER typed by the library: it is DERIVED, on every
9514
+ * render, from the host-supplied `replies` array (`replies.filter((r) =>
9515
+ * r.unread).length`). Mutating the array mutates what is shown — the
9516
+ * component holds no count state of its own. When the derived count is zero
9517
+ * (including an empty `replies` array), the count pill does not render at
9518
+ * all: that is a named absence-of-state, not a library-authored "0" or word.
9519
+ *
9520
+ * Pattern: MosaicReplyInput.tsx (data-slot, inline cn, React 19 ref prop,
9521
+ * displayName, JSDoc, pure variants module).
9522
+ * No "use client" — prepend-use-client.mjs adds it to dist.
9523
+ * Design tokens: --accent, --accent-foreground, --ring, --primary,
9524
+ * --primary-foreground.
9525
+ * a11y: the trigger is a native `<button>`; its accessible name is computed
9526
+ * by the host-supplied `ariaLabel(count)` from the same derived count shown
9527
+ * visually — assistive technology and sighted users read the same number.
9528
+ * Bilingual: `label` and `ariaLabel` are required caller-supplied props —
9529
+ * zero hardcoded copy, zero default. The library owns no word for "unread",
9530
+ * "replies", or the zero-state; the host's `ariaLabel` formatter carries all
9531
+ * of that wording.
9532
+ *
9533
+ * @example
9534
+ * <MosaicThreadIndicator
9535
+ * replies={thread.replies}
9536
+ * label="Thread"
9537
+ * ariaLabel={(count) => `Thread, ${count} unread replies`}
9538
+ * onActivate={() => openThread(thread.id)}
9539
+ * />
9540
+ */
9541
+
9542
+ /** Minimal host-supplied reply-status shape the unread count is derived from. */
9543
+ type MosaicThreadIndicatorReplyStatus = {
9544
+ /** Stable identity for the reply. */
9545
+ id: string;
9546
+ /** Whether this specific reply is unread, per the host's own state. */
9547
+ unread: boolean;
9548
+ };
9549
+ type MosaicThreadIndicatorProps = {
9550
+ /**
9551
+ * Host-supplied replies for this thread. The rendered unread count is
9552
+ * DERIVED from this array (`replies.filter((r) => r.unread).length`) —
9553
+ * the library never receives or stores a pre-computed count.
9554
+ */
9555
+ replies: MosaicThreadIndicatorReplyStatus[];
9556
+ /** Visible label for the trigger (e.g. "Thread"). Required, no default. */
9557
+ label: string;
9558
+ /**
9559
+ * Accessible-name formatter, called with the derived unread count.
9560
+ * Required — the host owns pluralization/wording, the library owns none.
9561
+ */
9562
+ ariaLabel: (unreadCount: number) => string;
9563
+ /** Called when the trigger is activated (click). */
9564
+ onActivate: () => void;
9565
+ /** Disables the trigger (e.g. host-level connectivity loss). */
9566
+ disabled?: boolean;
9567
+ /** Additional Tailwind classes on the root element. */
9568
+ className?: string;
9569
+ /** React 19 ref prop — forwarded to the root element. */
9570
+ ref?: React.Ref<HTMLButtonElement>;
9571
+ };
9572
+ /**
9573
+ * MosaicThreadIndicator — production unread-thread-indicator atom for
9574
+ * @vantageos/mosaic-blocks.
9575
+ *
9576
+ * Purely presentational: derives an unread count from host-supplied data and
9577
+ * renders a labelled, clickable trigger. No network call, no stored count.
9578
+ */
9579
+ declare function MosaicThreadIndicator(props: MosaicThreadIndicatorProps): React.JSX.Element;
9580
+ declare namespace MosaicThreadIndicator {
9581
+ var displayName: string;
9582
+ }
9583
+
9584
+ /**
9585
+ * threadIndicatorVariants — pure CVA variant functions for MosaicThreadIndicator.
9586
+ *
9587
+ * Isolated in their own module so they can be re-exported from the
9588
+ * `@vantageos/mosaic-blocks/server` subpath without pulling in React.
9589
+ *
9590
+ * Zero browser / React runtime dependencies — safe in RSC / Node.js.
9591
+ */
9592
+ /** Root button/trigger for the thread indicator. */
9593
+ declare const threadIndicatorRootVariants: (props?: class_variance_authority_types.ClassProp | undefined) => string;
9594
+ /** Unread-count pill, shown only when the derived unread count is greater than zero. */
9595
+ declare const threadIndicatorCountVariants: (props?: class_variance_authority_types.ClassProp | undefined) => string;
9596
+
9597
+ /**
9598
+ * MosaicMentionInput — text input that opens an anchored, host-owned list of
9599
+ * mentionable entries when the host-chosen trigger character is typed.
9600
+ *
9601
+ * Built on `MosaicPopover` for anchoring and dismissal (Escape, outside
9602
+ * click) — this component does not re-implement either. It owns exactly
9603
+ * three things:
9604
+ * 1. Detecting the trigger character and the query fragment typed after it,
9605
+ * reported to the host via `onQueryChange` — the host decides what
9606
+ * "matches" means, this component never filters.
9607
+ * 2. Roving keyboard navigation (ArrowUp/ArrowDown, wrap-free, clamped) over
9608
+ * whichever entries the host currently supplies via `entries`.
9609
+ * 3. Inserting the host-chosen text for the selected entry back into the
9610
+ * input value and reporting the selection via `onSelectEntry`.
9611
+ *
9612
+ * The mentionable entries themselves — their data, their rendering, and the
9613
+ * decision of which ones currently match the typed query — belong entirely
9614
+ * to the host, exactly like `MosaicTemplateList`'s `renderItem` idiom: this
9615
+ * component never hardcodes, invents, fetches, or filters an entry.
9616
+ *
9617
+ * SIN-01: the component carries zero visible strings. `inputAriaLabel`,
9618
+ * `listAriaLabel`, and `emptyMessage` are all required props with no
9619
+ * default — the host supplies every word.
9620
+ *
9621
+ * Trigger-detection note: scans backward from the caret for the trigger
9622
+ * character, stopping at the first whitespace. This models a single-glyph
9623
+ * trigger (e.g. "@") — the common case; a multi-character trigger is not a
9624
+ * supported shape here.
9625
+ */
9626
+
9627
+ interface MosaicMentionInputProps<T extends {
9628
+ id: string;
9629
+ }> {
9630
+ /** Controlled input value — the host owns the truth. */
9631
+ value: string;
9632
+ /** Called with the next value on every keystroke and on mention insertion. */
9633
+ onValueChange: (value: string) => void;
9634
+ /** The character that opens the mention list (e.g. "@"). Single glyph. */
9635
+ triggerCharacter: string;
9636
+ /**
9637
+ * The entries to show in the list. Host-owned and, when the host is
9638
+ * filtering as the user types, already filtered — this component never
9639
+ * inspects or narrows this array itself.
9640
+ */
9641
+ entries: T[];
9642
+ /** Host-owned renderer for a single entry; `active` marks the roving selection. */
9643
+ renderEntry: (entry: T, index: number, active: boolean) => React.ReactNode;
9644
+ /** Host-owned mapping from an entry to the plain text inserted on selection. */
9645
+ getEntryText: (entry: T) => string;
9646
+ /**
9647
+ * Called with the fragment typed after the trigger character (may be an
9648
+ * empty string right after the trigger), or `null` when the caret is not
9649
+ * inside a mention context (list closed).
9650
+ */
9651
+ onQueryChange: (query: string | null) => void;
9652
+ /** Called with the chosen entry when the host or user picks one. */
9653
+ onSelectEntry?: (entry: T) => void;
9654
+ /** Required accessible name for the text input — no default (SIN-01). */
9655
+ inputAriaLabel: string;
9656
+ /** Required accessible name for the entries list — no default (SIN-01). */
9657
+ listAriaLabel: string;
9658
+ /** Required message shown when `entries` is empty while the list is open. */
9659
+ emptyMessage: string;
9660
+ className?: string;
9661
+ inputClassName?: string;
9662
+ }
9663
+ /**
9664
+ * MosaicMentionInput — production mention-input atom for
9665
+ * @vantageos/mosaic-blocks.
9666
+ *
9667
+ * @example
9668
+ * <MosaicMentionInput
9669
+ * value={draft}
9670
+ * onValueChange={setDraft}
9671
+ * triggerCharacter="@"
9672
+ * entries={filteredPeople}
9673
+ * getEntryText={(person) => person.name}
9674
+ * renderEntry={(person, _i, active) => (
9675
+ * <PersonRow person={person} active={active} />
9676
+ * )}
9677
+ * onQueryChange={(query) => setFragment(query)}
9678
+ * onSelectEntry={(person) => trackMention(person)}
9679
+ * inputAriaLabel={t('Composer.inputLabel')}
9680
+ * listAriaLabel={t('Composer.mentionListLabel')}
9681
+ * emptyMessage={t('Composer.noMatches')}
9682
+ * />
9683
+ */
9684
+ declare function MosaicMentionInput<T extends {
9685
+ id: string;
9686
+ }>({ value, onValueChange, triggerCharacter, entries, renderEntry, getEntryText, onQueryChange, onSelectEntry, inputAriaLabel, listAriaLabel, emptyMessage, className, inputClassName, }: MosaicMentionInputProps<T>): React.JSX.Element;
9687
+ declare namespace MosaicMentionInput {
9688
+ var displayName: string;
9689
+ }
9690
+
9691
+ /**
9692
+ * mentionInputVariants — pure CVA variant functions for MosaicMentionInput.
9693
+ *
9694
+ * Isolated in its own module so it can be re-exported from the
9695
+ * `@vantageos/mosaic-blocks/server` subpath without pulling in React or
9696
+ * @base-ui/react.
9697
+ *
9698
+ * Zero browser / React runtime dependencies — safe in RSC / Node.js.
9699
+ */
9700
+ /** The text input itself. */
9701
+ declare const mentionInputFieldVariants: (props?: class_variance_authority_types.ClassProp | undefined) => string;
9702
+ /** The mentionable-entries list surface. */
9703
+ declare const mentionListVariants: (props?: class_variance_authority_types.ClassProp | undefined) => string;
9704
+ /** A single entry row inside the list — active variant highlights the roving selection. */
9705
+ declare const mentionListItemVariants: (props?: ({
9706
+ active?: boolean | null | undefined;
9707
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
9708
+
9709
+ /**
9710
+ * MosaicMessageSearch — search bar over the messages of a single, already-open
9711
+ * conversation: a query input and a clear action, with the matching results
9712
+ * rendered entirely by the host.
9713
+ *
9714
+ * Distinct from `MosaicMemorySearch` (which searches a host-supplied
9715
+ * knowledge base): this component searches WITHIN a conversation's message
9716
+ * history so an agent (or a human) can recall a past instruction without
9717
+ * re-reading the whole thread.
9718
+ *
9719
+ * Fully controlled, presentational atom: `query` + `onQueryChange` own the
9720
+ * text; the component never searches anything, filters anything, counts
9721
+ * anything, or performs any network I/O. It has no idea what a "message" or a
9722
+ * "match" looks like — the entire results area is a host-owned slot
9723
+ * (`resultsSlot`), exactly like `MosaicMemorySearch`'s `filters` catalogue.
9724
+ *
9725
+ * The clear action only appears once `query` is non-empty — that switch is
9726
+ * genuinely presentation state, not a missing word, so `clearButtonLabel`
9727
+ * remains a required prop with no default (the host always supplies it, the
9728
+ * button simply isn't rendered until there is something to clear).
9729
+ *
9730
+ * `resultsSlot` and `emptyResultsLabel` are optional as a GROUP, but for two
9731
+ * different reasons:
9732
+ * - `resultsSlot` omitted encodes "the host has not rendered a results view
9733
+ * yet" (e.g. the query is empty, or results are still being gathered) —
9734
+ * absence of a whole feature, not a missing word.
9735
+ * - `emptyResultsLabel` is the one SIN-01 exception: a NAMED, host-worded
9736
+ * zero-results state. It is rendered only when `resultsSlot` is absent, so
9737
+ * the host signals "I searched and found nothing" by supplying this label
9738
+ * without a results node. When both are supplied, `resultsSlot` wins — the
9739
+ * host is trusted to omit `emptyResultsLabel` once it has real results.
9740
+ *
9741
+ * No "use client" — prepend-use-client.mjs adds it to dist.
9742
+ * Design tokens: --primary, --primary-foreground, --background, --foreground,
9743
+ * --border, --muted, --muted-foreground, --input, --ring.
9744
+ * a11y: the query input is `type="search"` with an explicit `aria-label`
9745
+ * (`searchLabel`, host-owned — no host is forced to also render a visible
9746
+ * `<label>`). The clear button carries its own required `aria-label` for the
9747
+ * same reason.
9748
+ *
9749
+ * Deps: @base-ui/react (via MosaicInput) + class-variance-authority only.
9750
+ *
9751
+ * @example
9752
+ * <MosaicMessageSearch
9753
+ * query={query}
9754
+ * onQueryChange={setQuery}
9755
+ * searchLabel="Search this conversation"
9756
+ * searchPlaceholder="Search messages…"
9757
+ * clearButtonLabel="Clear search"
9758
+ * resultsSlot={matches.length > 0 ? <MatchList matches={matches} /> : undefined}
9759
+ * emptyResultsLabel="No messages match your search"
9760
+ * />
9761
+ */
9762
+
9763
+ interface MosaicMessageSearchProps {
9764
+ /** Current query text. Controlled by the host. */
9765
+ query: string;
9766
+ /** Called with the new query text on every keystroke. */
9767
+ onQueryChange: (query: string) => void;
9768
+ /** aria-label for the query input. Required, no default. */
9769
+ searchLabel: string;
9770
+ /** Placeholder for the query input. Required, no default. */
9771
+ searchPlaceholder: string;
9772
+ /** aria-label for the clear button. Required, no default — rendered only once `query` is non-empty. */
9773
+ clearButtonLabel: string;
9774
+ /**
9775
+ * Host-owned results view for the current query — a node, never data the
9776
+ * component would render itself. The host performs the search; this
9777
+ * component never sees a single message.
9778
+ */
9779
+ resultsSlot?: React.ReactNode;
9780
+ /**
9781
+ * Host-worded zero-results state. Rendered only when `resultsSlot` is
9782
+ * absent — the host signals "I searched and found nothing" by supplying
9783
+ * this label without a results node. Absence (with `resultsSlot` also
9784
+ * absent) encodes a neutral state (e.g. no search performed yet).
9785
+ */
9786
+ emptyResultsLabel?: string;
9787
+ /** Additional Tailwind classes on the root element. */
9788
+ className?: string;
9789
+ /** React 19 ref prop — forwarded to the root element. */
9790
+ ref?: React.Ref<HTMLDivElement>;
9791
+ }
9792
+ /**
9793
+ * MosaicMessageSearch — production in-thread message search bar for
9794
+ * @vantageos/mosaic-blocks.
9795
+ *
9796
+ * Purely presentational + controlled: renders the query input, a clear
9797
+ * action, and whatever host-owned results view is passed in. No network
9798
+ * call, no internal query state, no message model of any kind.
9799
+ */
9800
+ declare function MosaicMessageSearch({ query, onQueryChange, searchLabel, searchPlaceholder, clearButtonLabel, resultsSlot, emptyResultsLabel, className, ref, }: MosaicMessageSearchProps): React.JSX.Element;
9801
+ declare namespace MosaicMessageSearch {
9802
+ var displayName: string;
9803
+ }
9804
+
9805
+ /**
9806
+ * MosaicSessionCard — a single work-in-progress session at a glance
9807
+ * (default / compact variants)
9808
+ *
9809
+ * A "session" is host data: a piece of work in progress (e.g. a mandate),
9810
+ * carrying an id, a title, a host-defined status, and a last-updated
9811
+ * timestamp. The card renders exactly that state — it never fetches,
9812
+ * derives, or infers anything of its own.
9813
+ *
9814
+ * Two density variants, modeled as ONE component with a `variant` prop
9815
+ * (not two components) — same doctrine as MosaicMemoryCard:
9816
+ * - `"default"` (default): full card, includes a labelled "last updated"
9817
+ * footer caption, produced by `formatUpdatedAt`.
9818
+ * - `"compact"`: single dense row, drops the "last updated" footer
9819
+ * entirely and never calls `formatUpdatedAt` — so it is NOT required on
9820
+ * this variant (no-lying-prop-contract: a prop is required exactly on
9821
+ * the branch that reads it).
9822
+ *
9823
+ * Selection is opt-in and travels as a pair: `onSelect` and `selectLabel`
9824
+ * are either both present or both absent. Absent (default) — the root is
9825
+ * a plain, non-interactive container: no `role="button"`, no
9826
+ * `aria-label`. Present — the root becomes a keyboard-operable
9827
+ * button-role element (Enter/Space activate it, same as a native
9828
+ * `<button>`), with `aria-label={selectLabel}` required and host-owned
9829
+ * (SIN-01 — no fallback word).
9830
+ *
9831
+ * Composed from this repo's own primitives: `MosaicCard` (root/header/
9832
+ * content/footer) + `MosaicBadge` (status chip) — not re-implemented.
9833
+ *
9834
+ * Pattern: MosaicMemoryCard.tsx (data-slot, inline utility `cn`, React 19
9835
+ * ref prop, displayName, JSDoc, discriminated-union variant props).
9836
+ * Design tokens: --card, --card-foreground, --border, --muted-foreground,
9837
+ * --ring (via MosaicCard / MosaicBadge — no ad-hoc colors here).
9838
+ * Bilingual (SIN-01): zero user-facing strings hardcoded. `formatStatus` /
9839
+ * `formatUpdatedAt` / `selectLabel` are all host-owned, no default.
9840
+ * Zero I/O — the card never fetches; all state is host-supplied.
9841
+ *
9842
+ * @example
9843
+ * // Default variant — full card, "last updated" footer
9844
+ * <MosaicSessionCard
9845
+ * session={session}
9846
+ * formatStatus={(status) => t(`session.status.${status}`)}
9847
+ * formatUpdatedAt={(updatedAt) => t("session.updatedAt", { value: formatRelative(updatedAt) })}
9848
+ * />
9849
+ *
9850
+ * @example
9851
+ * // Compact variant — no footer, no formatUpdatedAt call at all
9852
+ * <MosaicSessionCard
9853
+ * session={session}
9854
+ * variant="compact"
9855
+ * formatStatus={(status) => t(`session.status.${status}`)}
9856
+ * />
9857
+ *
9858
+ * @example
9859
+ * // Selectable — onSelect + selectLabel travel together
9860
+ * <MosaicSessionCard
9861
+ * session={session}
9862
+ * formatStatus={(status) => t(`session.status.${status}`)}
9863
+ * formatUpdatedAt={(updatedAt) => formatRelative(updatedAt)}
9864
+ * onSelect={(id) => openSession(id)}
9865
+ * selectLabel={t("session.open", { title: session.title })}
9866
+ * />
9867
+ */
9868
+
9869
+ type MosaicSessionStatus = "active" | "waiting" | "blocked" | "done";
9870
+ interface MosaicSessionData {
9871
+ id: string;
9872
+ title: string;
9873
+ status: MosaicSessionStatus;
9874
+ /** Epoch milliseconds. */
9875
+ updatedAt: number;
9876
+ }
9877
+ /** Props read unconditionally regardless of `variant` or selectability. */
9878
+ interface MosaicSessionCardBaseProps {
9879
+ session: MosaicSessionData;
9880
+ /**
9881
+ * Formatter mapping `session.status` to its displayed label. Required —
9882
+ * the host owns the language (e.g. `(status) => t(\`session.status.\${status}\`)`).
9883
+ */
9884
+ formatStatus: (status: MosaicSessionStatus) => React.ReactNode;
9885
+ className?: string;
9886
+ /** React 19 ref prop — forwarded to the root element. */
9887
+ ref?: React.Ref<HTMLDivElement>;
9888
+ }
9889
+ /**
9890
+ * Discriminated union on `variant` — `formatUpdatedAt` is required EXACTLY
9891
+ * on the `"default"` member (the only one that renders a "last updated"
9892
+ * footer). The `"compact"` member never renders that footer and never
9893
+ * calls `formatUpdatedAt` — requiring it there would force every host to
9894
+ * supply a value the library never displays (a "lying prop contract").
9895
+ */
9896
+ type MosaicSessionCardVariantProps = {
9897
+ /**
9898
+ * Full card layout with a labelled "last updated" footer.
9899
+ * Default when omitted.
9900
+ * @default "default"
9901
+ */
9902
+ variant?: "default";
9903
+ /**
9904
+ * Formatter producing the "last updated" caption from
9905
+ * `session.updatedAt`. Only ever rendered in the `"default"`
9906
+ * variant — required here, not on `"compact"`. Host-owned.
9907
+ */
9908
+ formatUpdatedAt: (updatedAt: number) => React.ReactNode;
9909
+ } | {
9910
+ /** Dense single-row layout — no "last updated" footer, no call. */
9911
+ variant: "compact";
9912
+ };
9913
+ /**
9914
+ * Discriminated union on selectability — `onSelect` and `selectLabel`
9915
+ * travel together. Absent by default: the root stays a plain,
9916
+ * non-interactive container. Present: the root becomes a keyboard-operable
9917
+ * `role="button"` element and `selectLabel` (required, host-owned, no
9918
+ * default) becomes its `aria-label`.
9919
+ */
9920
+ type MosaicSessionCardInteractionProps = {
9921
+ onSelect?: undefined;
9922
+ selectLabel?: undefined;
9923
+ } | {
9924
+ /** Called with `session.id` on click / Enter / Space. */
9925
+ onSelect: (sessionId: string) => void;
9926
+ /** aria-label for the selectable root. Required — host-owned, no default. */
9927
+ selectLabel: string;
9928
+ };
9929
+ type MosaicSessionCardProps = MosaicSessionCardBaseProps & MosaicSessionCardVariantProps & MosaicSessionCardInteractionProps;
9930
+ /**
9931
+ * MosaicSessionCard — production single-session card for
9932
+ * @vantageos/mosaic-blocks.
9933
+ *
9934
+ * One component, two density variants (`default` default / `compact`),
9935
+ * opt-in selectability — see file JSDoc for the exact prop contract.
9936
+ */
9937
+ declare function MosaicSessionCard(props: MosaicSessionCardProps): React.JSX.Element;
9938
+ declare namespace MosaicSessionCard {
9939
+ var displayName: string;
9940
+ }
9941
+
9942
+ /**
9943
+ * sessionCardVariants — pure CVA variant functions for MosaicSessionCard.
9944
+ *
9945
+ * Isolated in its own module so it can be re-exported from the
9946
+ * `@vantageos/mosaic-blocks/server` subpath without pulling in React.
9947
+ *
9948
+ * Zero browser / React runtime dependencies — safe in RSC / Node.js.
9949
+ */
9950
+ /** Root card container variants */
9951
+ declare const sessionCardVariants: (props?: ({
9952
+ variant?: "default" | "compact" | null | undefined;
9953
+ selectable?: boolean | null | undefined;
9954
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
9955
+
9956
+ /**
9957
+ * MosaicSessionList — presentational, layout-disposition-only list of the
9958
+ * workstation's in-progress sessions
9959
+ *
9960
+ * The source implementation shipped as FOUR separate list components
9961
+ * ("stack", "grid", "compact", "inline" dispositions). Merged here into
9962
+ * ONE variant-driven component — the list does not exist without the
9963
+ * card, and it does not exist four times over either: same doctrine as
9964
+ * MosaicMemoryList, applied to the `layout` axis instead of `density`.
9965
+ *
9966
+ * The list owns disposition ONLY:
9967
+ * - `items`: the host's array of sessions, each requiring only an `id`.
9968
+ * - `renderItem`: the host-supplied per-session renderer (typically a
9969
+ * `MosaicSessionCard`) — the list never renders a row of its own and
9970
+ * never hardcodes a status, a sort order, or any domain content
9971
+ * (no-hardcoded-business-knowledge). It never fetches its own data.
9972
+ * - `emptyMessage`: required, no default (SIN-01) — the host owns the
9973
+ * language, e.g. `t('SessionList.empty')`.
9974
+ *
9975
+ * Keyboard: roving tabindex across items (native `<ul>` / `<li>` —
9976
+ * semantic list roles come from the elements themselves) — ArrowDown/
9977
+ * ArrowRight moves focus to the next row, ArrowUp/ArrowLeft to the
9978
+ * previous, Home/End jump to the first/last. Exactly one item is
9979
+ * `tabIndex={0}` at a time; the rest are `tabIndex={-1}`. Behavior is the
9980
+ * same across all four `layout` values — only the container/item Tailwind
9981
+ * classes differ.
9982
+ *
9983
+ * Pattern: MosaicMemoryList.tsx (data-slot, inline utility `cn`, roving
9984
+ * tabindex, React 19 ref prop, displayName, JSDoc).
9985
+ */
9986
+
9987
+ /** The four merged source dispositions, as ONE variant prop. */
9988
+ type MosaicSessionListLayout = "stack" | "grid" | "compact" | "inline";
9989
+ interface MosaicSessionListProps<T extends {
9990
+ id: string;
9991
+ }> {
9992
+ /** The sessions to lay out. The list never inspects their shape beyond `id`. */
9993
+ items: T[];
9994
+ /** Host-owned renderer for a single session — the list owns disposition only. */
9995
+ renderItem: (item: T, index: number) => React.ReactNode;
9996
+ /**
9997
+ * Container disposition — the four merged source variants.
9998
+ * @default "stack"
9999
+ */
10000
+ layout?: MosaicSessionListLayout;
10001
+ /**
10002
+ * Message shown when `items` is empty. Required, no default — the host
10003
+ * owns the language (e.g. `t('SessionList.empty')`).
10004
+ */
10005
+ emptyMessage: string;
10006
+ /** Additional Tailwind classes on the root container. */
10007
+ className?: string;
10008
+ /** Additional Tailwind classes on each item wrapper. */
10009
+ itemClassName?: string;
10010
+ /** React 19 ref prop — forwarded to the root container. */
10011
+ ref?: React.Ref<HTMLDivElement | HTMLUListElement>;
10012
+ }
10013
+ /**
10014
+ * MosaicSessionList — production layout-disposition atom for
10015
+ * @vantageos/mosaic-blocks.
10016
+ *
10017
+ * Purely presentational: no filtering, no sorting, no item rendering, no
10018
+ * I/O — the host owns the session content via `renderItem`; this
10019
+ * component only owns the four merged layout dispositions and keyboard
10020
+ * roving-tabindex navigation.
10021
+ */
10022
+ declare function MosaicSessionList<T extends {
10023
+ id: string;
10024
+ }>({ items, renderItem, layout, emptyMessage, className, itemClassName, ref, }: MosaicSessionListProps<T>): React.JSX.Element;
10025
+ declare namespace MosaicSessionList {
10026
+ var displayName: string;
10027
+ }
10028
+
10029
+ /**
10030
+ * sessionListVariants — pure CVA variant function for MosaicSessionList.
10031
+ *
10032
+ * The source implementation shipped as FOUR separate list components, one
10033
+ * per disposition. Merged here into ONE component with a `layout` variant
10034
+ * prop — the doctrine used throughout this repo (see MosaicMemoryCard,
10035
+ * MosaicMemoryList): one component, variants, never N components for what
10036
+ * is really the same `items` + `renderItem` + `emptyMessage` contract with
10037
+ * a different container layout.
10038
+ *
10039
+ * Isolated in its own module so it can be re-exported from the
10040
+ * `@vantageos/mosaic-blocks/server` subpath without pulling in React.
10041
+ *
10042
+ * Zero browser / React runtime dependencies — safe in RSC / Node.js.
10043
+ */
10044
+ /**
10045
+ * Root container layout — owns disposition ONLY; item content is entirely
10046
+ * host-supplied via `renderItem`.
10047
+ */
10048
+ declare const sessionListVariants: (props?: ({
10049
+ layout?: "grid" | "inline" | "compact" | "stack" | null | undefined;
10050
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
10051
+ /** Per-item wrapper — spacing depends on the container layout. */
10052
+ declare const sessionListItemVariants: (props?: ({
10053
+ layout?: "grid" | "inline" | "compact" | "stack" | null | undefined;
10054
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
10055
+
10056
+ interface MosaicEditSessionDialogProps {
10057
+ /** Controlled open state — the host owns the source of truth. */
10058
+ open: boolean;
10059
+ /** Called whenever the modal wants to change its open state (save, cancel, Escape, backdrop click). */
10060
+ onOpenChange: (open: boolean) => void;
10061
+ /** Modal heading. Required, no default. */
10062
+ title: string;
10063
+ /** Optional modal subheading. */
10064
+ description?: string;
10065
+ /** Accessible name for the desktop close button, forwarded to MosaicAdaptiveModal. */
10066
+ closeAriaLabel: string;
10067
+ /** Current session name value — controlled, pre-filled from the host's current session. */
10068
+ name: string;
10069
+ /** Called on every keystroke in the name field. */
10070
+ onNameChange: (value: string) => void;
10071
+ /** Label for the name field. Required, no default. */
10072
+ nameLabel: string;
10073
+ /** Placeholder for the name field. */
10074
+ namePlaceholder?: string;
10075
+ /** Host-computed validation message for the name field, or absent when valid. */
10076
+ nameError?: string;
10077
+ /** Host-supplied classification taxonomy — never hardcoded in the library. */
10078
+ classifications: MosaicSelectItem$1[];
10079
+ /** Currently selected classification value — controlled, pre-filled from the host's current session. */
10080
+ classification: string;
10081
+ /** Called when the host user picks a different classification. */
10082
+ onClassificationChange: (value: string) => void;
10083
+ /** Label for the classification field. Required, no default. */
10084
+ classificationLabel: string;
10085
+ /** True while a save request is in flight — announced via aria-busy, disables both actions. */
10086
+ isSaving: boolean;
10087
+ /**
10088
+ * Host-computed form validity gating the save button. This component
10089
+ * never decides validation itself — it only reflects the host's verdict.
10090
+ */
10091
+ canSave: boolean;
10092
+ /** Called when the host user submits the form. Never called on Escape/backdrop close. */
10093
+ onSave: () => void;
10094
+ /** Called when the host user clicks Cancel. Does not mutate anything by itself. */
10095
+ onCancel: () => void;
10096
+ /** Label for the save button while idle. Required, no default. */
10097
+ saveButtonLabel: string;
10098
+ /** Label for the save button while isSaving=true. Required, no default. */
10099
+ savingLabel: string;
10100
+ /** Label for the cancel button. Required, no default. */
10101
+ cancelButtonLabel: string;
10102
+ /** Additional Tailwind classes on the modal body. */
10103
+ className?: string;
10104
+ }
10105
+ /**
10106
+ * MosaicEditSessionDialog — production "rename / reclassify a session"
10107
+ * form modal for @vantageos/mosaic-blocks.
10108
+ *
10109
+ * Purely presentational and fully controlled: composes MosaicAdaptiveModal +
10110
+ * MosaicInput + MosaicSelect. No network call, no built-in taxonomy, no
10111
+ * built-in validation, no built-in copy.
10112
+ */
10113
+ declare function MosaicEditSessionDialog({ open, onOpenChange, title, description, closeAriaLabel, name, onNameChange, nameLabel, namePlaceholder, nameError, classifications, classification, onClassificationChange, classificationLabel, isSaving, canSave, onSave, onCancel, saveButtonLabel, savingLabel, cancelButtonLabel, className, }: MosaicEditSessionDialogProps): React.JSX.Element | null;
10114
+ declare namespace MosaicEditSessionDialog {
10115
+ var displayName: string;
10116
+ }
10117
+
10118
+ /**
10119
+ * editSessionDialogVariants — pure CVA variant functions for
10120
+ * MosaicEditSessionDialog.
10121
+ *
10122
+ * Isolated in their own module so they can be re-exported from the
10123
+ * `@vantageos/mosaic-blocks/server` subpath without pulling in React.
10124
+ *
10125
+ * Zero browser / React runtime dependencies — safe in RSC / Node.js.
10126
+ */
10127
+ /** Form body vertical layout. */
10128
+ declare const editSessionDialogBodyVariants: (props?: class_variance_authority_types.ClassProp | undefined) => string;
10129
+ /** Field group (label + control + helper/error) vertical layout. */
10130
+ declare const editSessionDialogFieldVariants: (props?: class_variance_authority_types.ClassProp | undefined) => string;
10131
+ /** Field error text. */
10132
+ declare const editSessionDialogErrorVariants: (props?: class_variance_authority_types.ClassProp | undefined) => string;
10133
+ /** Footer action row. */
10134
+ declare const editSessionDialogFooterVariants: (props?: class_variance_authority_types.ClassProp | undefined) => string;
10135
+ /** Submit / cancel button variants by intent. */
10136
+ declare const editSessionDialogButtonVariants: (props?: ({
10137
+ intent?: "cancel" | "save" | null | undefined;
10138
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
10139
+
10140
+ /**
10141
+ * MosaicSaveChatAsMemoryForm — presentational "turn this thread into agency
10142
+ * knowledge" form: the chat → memory bridge.
10143
+ *
10144
+ * Presentational atom composed from existing mosaic-blocks primitives:
10145
+ * MosaicInput, MosaicTextarea and MosaicTagInput. This component never
10146
+ * invents a new form field or tag chip — it assembles the ones the library
10147
+ * already ships (same doctrine as MosaicAddMemoryForm / MosaicEditMemoryDialog).
10148
+ *
10149
+ * Zero extraction, zero I/O: the component does NOT read the chat, does NOT
10150
+ * summarize it and does NOT decide what is worth remembering — it renders
10151
+ * whatever the host already extracted as a fully controlled `content` value,
10152
+ * lets the host user title/tag it, and routes save/cancel through host
10153
+ * callbacks. No network call of any kind lives in this component.
10154
+ *
10155
+ * Fully controlled: `title`/`content`/`tags` are single-source-of-truth
10156
+ * values supplied by the host, every change is reported via a callback. The
10157
+ * component keeps no internal form state.
10158
+ *
10159
+ * Validation belongs to the host (SIN-01 + doctrine "the host decides"):
10160
+ * `canSave` is a host-computed boolean gating the save button, and
10161
+ * `titleError`/`contentError` are host-computed strings — this component
10162
+ * only *displays* an error, it never decides whether one exists. When an
10163
+ * error string is supplied, the matching field gets `aria-invalid="true"`
10164
+ * and `aria-describedby` pointing at the rendered error text; the field is
10165
+ * `aria-invalid="false"` otherwise, so the absence of an error is never
10166
+ * ambiguous.
10167
+ *
10168
+ * isSaving sets `aria-busy="true"` on the save button and disables both
10169
+ * actions — a save-in-progress is announced, never silent.
10170
+ *
10171
+ * data-slot="save-chat-as-memory-form" on the form root.
10172
+ * Bilingual: every user-facing string (labels/placeholders/errors/button
10173
+ * labels) is a required host-supplied prop — zero hardcoded copy, zero
10174
+ * default (SIN-01).
10175
+ *
10176
+ * No "use client" in source — prepend-use-client.mjs adds it to dist.
10177
+ * Design tokens: --border, --destructive, --foreground.
10178
+ *
10179
+ * @example
10180
+ * <MosaicSaveChatAsMemoryForm
10181
+ * title={title}
10182
+ * onTitleChange={setTitle}
10183
+ * titleLabel="Title"
10184
+ * titleError={titleError}
10185
+ * content={extractedContent}
10186
+ * onContentChange={setContent}
10187
+ * contentLabel="Content"
10188
+ * contentError={contentError}
10189
+ * tags={tags}
10190
+ * onAddTag={(t) => setTags((prev) => [...prev, t])}
10191
+ * onRemoveTag={(t) => setTags((prev) => prev.filter((x) => x !== t))}
10192
+ * tagsLabel="Tags"
10193
+ * tagInputPlaceholder="Add a tag…"
10194
+ * removeTagAriaLabel={(t) => `Remove ${t}`}
10195
+ * isSaving={isSaving}
10196
+ * canSave={canSave}
10197
+ * onSave={handleSave}
10198
+ * onCancel={() => setOpen(false)}
10199
+ * saveLabel="Save Memory"
10200
+ * savingLabel="Saving…"
10201
+ * cancelLabel="Cancel"
10202
+ * />
10203
+ */
10204
+ interface MosaicSaveChatAsMemoryFormProps {
10205
+ /** Current memory title value — controlled. */
10206
+ title: string;
10207
+ /** Called on every keystroke in the title field. */
10208
+ onTitleChange: (value: string) => void;
10209
+ /** Label for the title field. Required, no default. */
10210
+ titleLabel: string;
10211
+ /** Placeholder for the title field. */
10212
+ titlePlaceholder?: string;
10213
+ /** Host-computed validation message for the title field, or absent when valid. */
10214
+ titleError?: string;
10215
+ /**
10216
+ * Host-supplied, pre-extracted content value — controlled. This component
10217
+ * never reads or summarizes the source thread; the host is the sole
10218
+ * source of the extracted text.
10219
+ */
10220
+ content: string;
10221
+ /** Called on every keystroke in the content field. */
10222
+ onContentChange: (value: string) => void;
10223
+ /** Label for the content field. Required, no default. */
10224
+ contentLabel: string;
10225
+ /** Placeholder for the content field. */
10226
+ contentPlaceholder?: string;
10227
+ /** Host-computed validation message for the content field, or absent when valid. */
10228
+ contentError?: string;
10229
+ /** Current tag list — controlled, single source of truth owned by the host. */
10230
+ tags: string[];
10231
+ /** Called when a tag should be added. */
10232
+ onAddTag: (tag: string) => void;
10233
+ /** Called when a tag should be removed. */
10234
+ onRemoveTag: (tag: string) => void;
10235
+ /** Label for the tags field. Required, no default. */
10236
+ tagsLabel: string;
10237
+ /** Placeholder for the tag input. Required, no default. */
10238
+ tagInputPlaceholder: string;
10239
+ /** Per-tag accessible name for the remove button. Required, no default. */
10240
+ removeTagAriaLabel: (tag: string) => string;
10241
+ /** Optional host-supplied suggested tags. */
10242
+ suggestedTags?: string[];
10243
+ /** Optional maximum number of tags. */
10244
+ maxTags?: number;
10245
+ /** True while a save request is in flight — announced via aria-busy, disables both actions. */
10246
+ isSaving: boolean;
10247
+ /**
10248
+ * Host-computed form validity gating the save button. This component
10249
+ * never decides validation itself — it only reflects the host's verdict.
10250
+ */
10251
+ canSave: boolean;
10252
+ /** Called when the host user saves the form. */
10253
+ onSave: () => void;
10254
+ /** Called when the host user clicks Cancel. */
10255
+ onCancel: () => void;
10256
+ /** Label for the save button while idle. Required, no default. */
10257
+ saveLabel: string;
10258
+ /** Label for the save button while isSaving=true. Required, no default. */
10259
+ savingLabel: string;
10260
+ /** Label for the cancel button. Required, no default. */
10261
+ cancelLabel: string;
10262
+ /** Additional Tailwind classes on the form root. */
10263
+ className?: string;
10264
+ }
10265
+ /**
10266
+ * MosaicSaveChatAsMemoryForm — production "save this thread as a memory"
10267
+ * form for @vantageos/mosaic-blocks.
10268
+ *
10269
+ * Purely presentational and fully controlled: composes MosaicInput +
10270
+ * MosaicTextarea + MosaicTagInput. No network call, no extraction logic, no
10271
+ * built-in validation, no built-in copy.
10272
+ */
10273
+ declare function MosaicSaveChatAsMemoryForm({ title, onTitleChange, titleLabel, titlePlaceholder, titleError, content, onContentChange, contentLabel, contentPlaceholder, contentError, tags, onAddTag, onRemoveTag, tagsLabel, tagInputPlaceholder, removeTagAriaLabel, suggestedTags, maxTags, isSaving, canSave, onSave, onCancel, saveLabel, savingLabel, cancelLabel, className, }: MosaicSaveChatAsMemoryFormProps): React.JSX.Element;
10274
+ declare namespace MosaicSaveChatAsMemoryForm {
10275
+ var displayName: string;
10276
+ }
10277
+
10278
+ /**
10279
+ * saveChatAsMemoryFormVariants — pure CVA variant functions for
10280
+ * MosaicSaveChatAsMemoryForm.
10281
+ *
10282
+ * Isolated in their own module so they can be re-exported from the
10283
+ * `@vantageos/mosaic-blocks/server` subpath without pulling in React.
10284
+ *
10285
+ * Zero browser / React runtime dependencies — safe in RSC / Node.js.
10286
+ */
10287
+ /** Form vertical layout. */
10288
+ declare const saveChatAsMemoryFormRootVariants: (props?: class_variance_authority_types.ClassProp | undefined) => string;
10289
+ /** Field group (label + control + helper/error) vertical layout. */
10290
+ declare const saveChatAsMemoryFormFieldVariants: (props?: class_variance_authority_types.ClassProp | undefined) => string;
10291
+ /** Field error text. */
10292
+ declare const saveChatAsMemoryFormErrorVariants: (props?: class_variance_authority_types.ClassProp | undefined) => string;
10293
+ /** Footer action row. */
10294
+ declare const saveChatAsMemoryFormFooterVariants: (props?: class_variance_authority_types.ClassProp | undefined) => string;
10295
+ /** Save / cancel button variants by intent. */
10296
+ declare const saveChatAsMemoryFormButtonVariants: (props?: ({
10297
+ intent?: "cancel" | "save" | null | undefined;
10298
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
10299
+
10300
+ export { type Breakpoint, type DeviceContextValue, type Feature3ColItem, type FeatureItem, type FooterColumn, type FooterLink, type HeroCta, type LogoItem, MosaicAccordion, MosaicAccordionItem, type MosaicAccordionItemProps, MosaicAccordionPanel, type MosaicAccordionPanelProps, type MosaicAccordionProps, MosaicAccordionTrigger, type MosaicAccordionTriggerProps, type MosaicActionAccent, type MosaicActivity, MosaicActivityFeed, type MosaicActivityFeedProps, MosaicActivityItem, type MosaicActivityItemProps, type MosaicActivityStatus, MosaicAdaptiveGrid, type MosaicAdaptiveGridProps, MosaicAdaptiveModal, type MosaicAdaptiveModalProps, MosaicAdaptiveNavigation, type MosaicAdaptiveNavigationProps, MosaicAddMemoryForm, type MosaicAddMemoryFormProps, MosaicAgentBuilderModal, type MosaicAgentBuilderModalProps, MosaicAgentCard, type MosaicAgentCardProps, MosaicAgentChat, type MosaicAgentChatApprovalLabels, type MosaicAgentChatApprovalRequest, type MosaicAgentChatApprovalResponsePayload, type MosaicAgentChatMessage, type MosaicAgentChatMessagePart, type MosaicAgentChatProps, type MosaicAgentChatState, type MosaicAgentChatToolPart, type MosaicAgentChatToolPartState, MosaicAgentComposer, MosaicAgentComposerDesktop, type MosaicAgentComposerDesktopProps, MosaicAgentComposerMobile, type MosaicAgentComposerMobileProps, type MosaicAgentComposerProps, type MosaicAgentData, MosaicAgentEditor, type MosaicAgentEditorProps, MosaicAgentList, AgentListDesktop as MosaicAgentListDesktop, AgentListMobile as MosaicAgentListMobile, type MosaicAgentListProps, type MosaicAgentPreset, MosaicAgentPreview, type MosaicAgentPreviewAttribute, type MosaicAgentPreviewDetailedProps, type MosaicAgentPreviewProps, type MosaicAgentPreviewSummaryProps, MosaicAgentTeamPreview, type MosaicAgentTeamPreviewProps, MosaicAlertDialog, MosaicAlertDialogAction, type MosaicAlertDialogActionProps, MosaicAlertDialogCancel, type MosaicAlertDialogCancelProps, MosaicAlertDialogContent, type MosaicAlertDialogContentProps, MosaicAlertDialogDescription, type MosaicAlertDialogDescriptionProps, MosaicAlertDialogFooter, MosaicAlertDialogHeader, MosaicAlertDialogOverlay, type MosaicAlertDialogOverlayProps, MosaicAlertDialogPortal, MosaicAlertDialogTitle, type MosaicAlertDialogTitleProps, MosaicAlertDialogTrigger, MosaicAnimatedList, type MosaicAnimatedListProps, MosaicApiKeyPanel, type MosaicApiKeyPanelProps, type MosaicApiKeyPanelProvider, type MosaicApiKeyPanelState, MosaicAppSidebar, type MosaicAppSidebarProps, MosaicApprovalPrompt, type MosaicApprovalPromptProps, type MosaicApprovalPromptState, MosaicAvatar, type MosaicAvatarProps, MosaicBadge, type MosaicBadgeProps, MosaicBlurredOrb, type MosaicBlurredOrbProps, type MosaicBreadcrumb, MosaicButton, type MosaicButtonProps, MosaicCard, MosaicCardContent, type MosaicCardContentProps, MosaicCardDescription, type MosaicCardDescriptionProps, MosaicCardFooter, type MosaicCardFooterProps, MosaicCardHeader, type MosaicCardHeaderProps, type MosaicCardProps, MosaicCardTitle, type MosaicCardTitleProps, MosaicChatComposer, type MosaicChatComposerProps, type MosaicChatComposerState, MosaicChatMessage, type MosaicChatMessageAttachmentPart, type MosaicChatMessagePart, type MosaicChatMessageProps, type MosaicChatMessageReasoningPart, type MosaicChatMessageSenderRole, type MosaicChatMessageTextPart, type MosaicChatMessageToolPart, type MosaicChatMessageToolState, type MosaicChatMessageToolStatusLabels, MosaicChatSidebar, type MosaicChatSidebarProps, MosaicChatThread, type MosaicChatThreadProps, MosaicCheckbox, type MosaicCheckboxProps, type MosaicClerkMembership, MosaicClerkOrgSwitcher, type MosaicClerkOrgSwitcherProps, type MosaicClerkOrganization, MosaicClerkWebhookHandler, type MosaicClerkWebhookHandlerOptions, MosaicCollapsible, MosaicCollapsiblePanel, type MosaicCollapsiblePanelProps, type MosaicCollapsibleProps, MosaicCollapsibleTrigger, type MosaicCollapsibleTriggerProps, MosaicCombobox, type MosaicComboboxItem, type MosaicComboboxProps, type MosaicComposerModel, type MosaicComposerModule, MosaicCounter, type MosaicCounterProps, MosaicCreateOrgDialog, type MosaicCreateOrgDialogProps, MosaicDashboardContent, type MosaicDashboardContentProps, MosaicDashboardHeader, type MosaicDashboardHeaderProps, MosaicDashboardLayout, type MosaicDashboardLayoutProps, type MosaicDashboardView, MosaicDataTable, type MosaicDataTableColumn, type MosaicDataTablePagination, type MosaicDataTableProps, MosaicDeleteConfirmationDialog, type MosaicDeleteConfirmationDialogProps, MosaicDeviceProvider, type MosaicDeviceProviderProps, MosaicDocumentUpload, type MosaicDocumentUploadFile, type MosaicDocumentUploadFileStatus, type MosaicDocumentUploadProps, MosaicDrawer, type MosaicDrawerProps, MosaicDropdownMenu, type MosaicDropdownMenuItem, type MosaicDropdownMenuProps, MosaicEditMemoryDialog, type MosaicEditMemoryDialogProps, MosaicEditSessionDialog, type MosaicEditSessionDialogProps, MosaicEmptyState, type MosaicEmptyStateProps, MosaicFallingPattern, type MosaicFallingPatternProps, MosaicFeature3Col, type MosaicFeature3ColProps, MosaicFeatureCenteredMedia, type MosaicFeatureCenteredMediaProps, MosaicField, MosaicFieldControl, type MosaicFieldControlProps, MosaicFieldDescription, type MosaicFieldDescriptionProps, MosaicFieldError, type MosaicFieldErrorProps, MosaicFieldLabel, type MosaicFieldLabelProps, type MosaicFieldProps, MosaicFilterBar, type MosaicFilterBarProps, type MosaicFilterOption, MosaicFilterSidebar, type MosaicFilterSidebarProps, MosaicFooterSimple, type MosaicFooterSimpleProps, MosaicHeroSplit, type MosaicHeroSplitProps, MosaicInput, MosaicInputGroup, type MosaicInputGroupProps, type MosaicInputProps, MosaicIntegrationsBadge, type MosaicIntegrationsBadgeProps, MosaicInviteMemberDialog, type MosaicInviteMemberDialogProps, MosaicKanbanBoard, type MosaicKanbanBoardProps, MosaicKanbanColumn, type MosaicKanbanColumnProps, MosaicLogosGrid, type MosaicLogosGridProps, MosaicMainNav, type MosaicMainNavProps, MosaicMarkdown, type MosaicMarkdownProps, MosaicMarketplaceCard, type MosaicMarketplaceCardProps, type MosaicMarketplaceItem, MosaicMarketplaceList, MarketplaceListDesktop as MosaicMarketplaceListDesktop, MarketplaceListMobile as MosaicMarketplaceListMobile, type MosaicMarketplaceListProps, MosaicMemberList, type MosaicMemberListProps, MosaicMemoryCard, type MosaicMemoryCardProps, MosaicMemoryDashboard, type MosaicMemoryDashboardProps, type MosaicMemoryDashboardStat, type MosaicMemoryDashboardViewMode, type MosaicMemoryData, MosaicMemoryGrid, type MosaicMemoryGridProps, MosaicMemoryList, type MosaicMemoryListProps, type MosaicMemoryScope, MosaicMemorySearch, type MosaicMemorySearchFilter, type MosaicMemorySearchProps, type MosaicMemorySource, MosaicMentionInput, type MosaicMentionInputProps, type MosaicMessage, MosaicMessageCard, type MosaicMessageCardProps, MosaicMessageList, MessageListDesktop as MosaicMessageListDesktop, MessageListMobile as MosaicMessageListMobile, type MosaicMessageListProps, type MosaicMessageReactions, MosaicMessageSearch, type MosaicMessageSearchProps, type MosaicMessageSender, type MosaicMessageSenderType, type MosaicModelOption, MosaicModelSelector, type MosaicModelSelectorProps, MosaicModuleCard, type MosaicModuleCardProps, type MosaicModuleData, MosaicModuleForm, type MosaicModuleFormField, type MosaicModuleFormProps, type MosaicModuleItem, MosaicModuleLibrary, type MosaicModuleLibraryProps, type MosaicModuleType, MosaicMultiOrgIndicator, type MosaicMultiOrgIndicatorProps, MosaicMultiTenantProvider, type MosaicMultiTenantProviderProps, type MosaicNavItem, MosaicNavbar, type MosaicNavbarProps, type MosaicNavigationItem, type MosaicOrg, type MosaicOrgInfo, type MosaicOrgMember, MosaicOrgPanel, type MosaicOrgPanelProps, type MosaicOrgPanelTab, MosaicOrgProfilePage, type MosaicOrgProfilePageProps, type MosaicOrgRole, MosaicOrgRoleBadge, type MosaicOrgRoleBadgeProps, type MosaicOrgStats, MosaicOrgSwitcher, type MosaicOrgSwitcherProps, MosaicPdfViewer, type MosaicPdfViewerProps, MosaicPopover, type MosaicPopoverProps, type MosaicSelectItem as MosaicPrefSelectItem, type MosaicPreference, type MosaicPreferenceGroup, MosaicPreferencesPanel, type MosaicPreferencesPanelProps, MosaicPricingCard, type MosaicPricingCardProps, type MosaicProfileField, MosaicProfilePanel, type MosaicProfilePanelProps, MosaicProgress, type MosaicProgressProps, type MosaicQuickAction$1 as MosaicQuickAction, MosaicQuickActionCard, type MosaicQuickActionCardProps, MosaicQuickActionsMenu, type MosaicQuickAction as MosaicQuickActionsMenuItem, type MosaicQuickActionsMenuProps, type MosaicQuickAgent, MosaicQuickAgentSelector, type MosaicQuickAgentSelectorProps, MosaicQuickStartPanel, type MosaicQuickStartPanelProps, MosaicRadioGroup, MosaicRadioGroupItem, type MosaicRadioGroupItemProps, type MosaicRadioGroupProps, MosaicReplyInput, type MosaicReplyInputProps, MosaicResizableSplitPane, type MosaicResizableSplitPaneProps, MosaicSaveChatAsMemoryForm, type MosaicSaveChatAsMemoryFormProps, MosaicSaveTemplateModal, type MosaicSaveTemplateModalProps, type MosaicScenario, MosaicScrollArea, type MosaicScrollAreaProps, MosaicSelect, type MosaicSelectItem$1 as MosaicSelectItem, type MosaicSelectProps, type MosaicSelectorCategory, type MosaicSelectorItem, MosaicSelectorModal, type MosaicSelectorModalProps, MosaicSeparator, type MosaicSeparatorProps, MosaicSessionCard, type MosaicSessionCardInteractionProps, type MosaicSessionCardProps, type MosaicSessionCardVariantProps, type MosaicSessionData, MosaicSessionList, type MosaicSessionListLayout, type MosaicSessionListProps, type MosaicSessionStatus, type MosaicSidebarFooterStatus, type MosaicSidebarNavItem, type MosaicSidebarQuickAction, type MosaicSidebarRecentItem, MosaicSignInLayout, type MosaicSignInLayoutProps, MosaicSignUpLayout, type MosaicSignUpLayoutProps, MosaicSkeleton, type MosaicSkeletonProps, MosaicSlider, type MosaicSliderProps, type MosaicStatItem, MosaicStatsGrid, type MosaicStatsGridProps, type MosaicStep, MosaicStepPipeline, type MosaicStepPipelineDotsProps, type MosaicStepPipelineProps, type MosaicStepPipelineSegmentsProps, type MosaicStepStatus, MosaicSwitch, type MosaicSwitchProps, MosaicTabs, MosaicTabsList, type MosaicTabsListProps, MosaicTabsPanel, type MosaicTabsPanelProps, type MosaicTabsProps, MosaicTabsTrigger, type MosaicTabsTriggerProps, MosaicTagInput, type MosaicTagInputProps, type MosaicTemplate, type MosaicTemplateAgent, MosaicTemplateAgentCard, type MosaicTemplateAgentCardProps, type MosaicTemplateAgentData, MosaicTemplateCard, type MosaicTemplateCardProps, type MosaicTemplateCategory, MosaicTemplateCategoryChips, type MosaicTemplateCategoryChipsProps, MosaicTemplateGallery, type MosaicTemplateGalleryProps, MosaicTemplateList, type MosaicTemplateListProps, type MosaicTemplateManagementItem, MosaicTemplateManagementPanel, type MosaicTemplateManagementPanelProps, type MosaicTemplateMetadata, MosaicTemplatePreview, type MosaicTemplatePreviewProps, MosaicTestimonialsGrid, type MosaicTestimonialsGridProps, MosaicTextarea, type MosaicTextareaProps, MosaicThemeProvider, type MosaicThemeProviderProps, MosaicThemeToggle, type MosaicThemeToggleProps, MosaicThreadIndicator, type MosaicThreadIndicatorProps, type MosaicThreadIndicatorReplyStatus, MosaicThreadView, type MosaicThreadViewMessage, type MosaicThreadViewProps, MosaicToast, type MosaicToastProps, MosaicToastProvider, type MosaicToastProviderPosition, type MosaicToastProviderProps, type MosaicToastVariant, MosaicToolToggleList, type MosaicToolToggleListApprovalLevel, type MosaicToolToggleListProps, type MosaicToolToggleListSection, type MosaicToolToggleListTool, MosaicTooltip, MosaicTooltipContent, type MosaicTooltipContentProps, type MosaicTooltipProps, MosaicTooltipProvider, type MosaicTooltipProviderProps, MosaicTooltipRoot, type MosaicTooltipRootProps, MosaicTooltipTrigger, type MosaicTooltipTriggerProps, MosaicUrlScraper, type MosaicUrlScraperContent, type MosaicUrlScraperProps, type MosaicUrlScraperState, MosaicUserButton, type MosaicUserButtonProps, type MosaicWorkspaceContext, type NavCta, type NavLink, type OrbPosition, type Orientation, Placeholder, type PricingCta, type SocialLink, type StatItem, type TestimonialItem, type Theme, addMemoryFormButtonVariants, addMemoryFormErrorVariants, addMemoryFormFieldVariants, addMemoryFormFooterVariants, addMemoryFormRootVariants, agentBuilderModalBackdropVariants, agentBuilderModalPopupVariants, agentChatRootVariants, agentEditorVariants, agentPreviewVariants, alertDialogContentVariants, alertDialogOverlayVariants, badgeVariants, buttonVariants, chatMessageBubbleVariants, chatMessageContainerVariants, chatMessageToolStatusVariants, chatSidebarThreadVariants, drawerBackdropVariants, drawerPopupVariants, editMemoryDialogBackdropVariants, editMemoryDialogErrorVariants, editMemoryDialogFieldVariants, editMemoryDialogPopupVariants, editSessionDialogBodyVariants, editSessionDialogButtonVariants, editSessionDialogErrorVariants, editSessionDialogFieldVariants, editSessionDialogFooterVariants, marketplaceCardVariants, memoryDashboardViewToggleButtonVariants, memoryGridVariants, memoryListItemVariants, memoryListVariants, memorySearchFilterChipVariants, mentionInputFieldVariants, mentionListItemVariants, mentionListVariants, pdfViewerFrameVariants, pdfViewerStatusVariants, pdfViewerToolbarButtonVariants, popoverPopupVariants, replyInputActionButtonVariants, replyInputContextVariants, replyInputRootVariants, replyInputTextareaVariants, saveChatAsMemoryFormButtonVariants, saveChatAsMemoryFormErrorVariants, saveChatAsMemoryFormFieldVariants, saveChatAsMemoryFormFooterVariants, saveChatAsMemoryFormRootVariants, saveTemplateModalBodyVariants, saveTemplateModalButtonVariants, saveTemplateModalErrorVariants, saveTemplateModalFieldVariants, saveTemplateModalFooterVariants, sessionCardVariants, sessionListItemVariants, sessionListVariants, skeletonVariants, splitPaneCollapseButtonVariants, splitPaneHandleVariants, splitPaneRootVariants, tagInputFieldVariants, tagInputRemoveButtonVariants, tagInputRootVariants, tagInputTagVariants, templateAgentCardBadgeVariants, templateAgentCardTagVariants, templateAgentCardVariants, templateCategoryChipVariants, templateListVariants, templateManagementRowVariants, threadIndicatorCountVariants, threadIndicatorRootVariants, threadViewEmptyVariants, threadViewRepliesVariants, threadViewReplyVariants, threadViewRootMessageVariants, threadViewRootVariants, toastCardVariants, toastDismissButtonVariants, toastProviderPositionVariants, toastTitleVariants, toolToggleListRowVariants, toolToggleListSectionVariants, useBreakpoint, useDevice, useMosaicWorkspace as useEffectiveWorkspaceId, useIsDesktop, useIsMobile, useIsTablet, useMediaQuery, useMosaicWorkspace, useOrientation, useViewport, version };