sa2kit 3.4.0 → 3.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (157) hide show
  1. package/dist/business/index.d.mts +2 -7
  2. package/dist/business/index.d.ts +2 -7
  3. package/dist/business/index.js +1761 -8045
  4. package/dist/business/index.js.map +1 -1
  5. package/dist/business/index.mjs +1169 -7452
  6. package/dist/business/index.mjs.map +1 -1
  7. package/dist/business/portfolio/index.d.mts +1 -2
  8. package/dist/business/portfolio/index.d.ts +1 -2
  9. package/dist/{chunk-KVYHCGRY.js → chunk-7Z3XR2Y4.js} +552 -263
  10. package/dist/chunk-7Z3XR2Y4.js.map +1 -0
  11. package/dist/chunk-XPY45Y75.js +1143 -0
  12. package/dist/chunk-XPY45Y75.js.map +1 -0
  13. package/dist/{chunk-YIRPPMCN.mjs → chunk-XSTMLLJV.mjs} +474 -198
  14. package/dist/chunk-XSTMLLJV.mjs.map +1 -0
  15. package/dist/chunk-ZJLS5JU5.mjs +1090 -0
  16. package/dist/chunk-ZJLS5JU5.mjs.map +1 -0
  17. package/dist/common/aiApi/client/index.d.mts +71 -0
  18. package/dist/common/aiApi/client/index.d.ts +71 -0
  19. package/dist/common/aiApi/client/index.js +165 -0
  20. package/dist/common/aiApi/client/index.js.map +1 -0
  21. package/dist/common/aiApi/client/index.mjs +151 -0
  22. package/dist/common/aiApi/client/index.mjs.map +1 -0
  23. package/dist/common/aiApi/index.d.mts +184 -0
  24. package/dist/common/aiApi/index.d.ts +184 -0
  25. package/dist/common/aiApi/index.js +217 -0
  26. package/dist/common/aiApi/index.mjs +4 -0
  27. package/dist/common/aiApi/server/index.d.mts +3 -0
  28. package/dist/common/aiApi/server/index.d.ts +3 -0
  29. package/dist/common/aiApi/server/index.js +217 -0
  30. package/dist/common/aiApi/server/index.mjs +4 -0
  31. package/dist/common/components/index.js +176 -177
  32. package/dist/common/components/index.mjs +1 -2
  33. package/dist/common/index.js +2 -3
  34. package/dist/common/index.mjs +1 -2
  35. package/dist/{index-BSmd4ikf.d.ts → index-B4wDXFL0.d.mts} +39 -2
  36. package/dist/{index-r2-zE3iC.d.mts → index-B4wDXFL0.d.ts} +39 -2
  37. package/dist/{index-DLLPTprx.d.mts → index-B9vXYzok.d.mts} +48 -13
  38. package/dist/{index-VFDbZxVM.d.ts → index-BZ0MhRau.d.ts} +48 -13
  39. package/dist/index.d.mts +703 -181
  40. package/dist/index.d.ts +703 -181
  41. package/dist/index.js +2921 -7257
  42. package/dist/index.js.map +1 -1
  43. package/dist/index.mjs +2161 -6538
  44. package/dist/index.mjs.map +1 -1
  45. package/dist/types-CiqMQ-uu.d.mts +166 -0
  46. package/dist/types-CiqMQ-uu.d.ts +166 -0
  47. package/package.json +15 -60
  48. package/dist/CollisionBalls-DgKtscU2.d.mts +0 -41
  49. package/dist/CollisionBalls-DgKtscU2.d.ts +0 -41
  50. package/dist/business/calendar/index.d.mts +0 -6
  51. package/dist/business/calendar/index.d.ts +0 -6
  52. package/dist/business/calendar/index.js +0 -7433
  53. package/dist/business/calendar/index.js.map +0 -1
  54. package/dist/business/calendar/index.mjs +0 -7257
  55. package/dist/business/calendar/index.mjs.map +0 -1
  56. package/dist/business/calendar/routes/index.d.mts +0 -191
  57. package/dist/business/calendar/routes/index.d.ts +0 -191
  58. package/dist/business/calendar/routes/index.js +0 -844
  59. package/dist/business/calendar/routes/index.js.map +0 -1
  60. package/dist/business/calendar/routes/index.mjs +0 -826
  61. package/dist/business/calendar/routes/index.mjs.map +0 -1
  62. package/dist/chunk-3R6JHA6D.js +0 -120
  63. package/dist/chunk-3R6JHA6D.js.map +0 -1
  64. package/dist/chunk-4PJM4752.js +0 -4
  65. package/dist/chunk-4PJM4752.js.map +0 -1
  66. package/dist/chunk-7PMT4L4I.js +0 -324
  67. package/dist/chunk-7PMT4L4I.js.map +0 -1
  68. package/dist/chunk-FY2X3LYR.mjs +0 -3
  69. package/dist/chunk-FY2X3LYR.mjs.map +0 -1
  70. package/dist/chunk-GS4SAW25.mjs +0 -116
  71. package/dist/chunk-GS4SAW25.mjs.map +0 -1
  72. package/dist/chunk-HL4H2HF6.js +0 -279
  73. package/dist/chunk-HL4H2HF6.js.map +0 -1
  74. package/dist/chunk-IJIQUMAK.mjs +0 -272
  75. package/dist/chunk-IJIQUMAK.mjs.map +0 -1
  76. package/dist/chunk-KVYHCGRY.js.map +0 -1
  77. package/dist/chunk-MMDSZIXD.mjs +0 -286
  78. package/dist/chunk-MMDSZIXD.mjs.map +0 -1
  79. package/dist/chunk-N2O3OX5Y.mjs +0 -243
  80. package/dist/chunk-N2O3OX5Y.mjs.map +0 -1
  81. package/dist/chunk-RRQ2X26Z.js +0 -106
  82. package/dist/chunk-RRQ2X26Z.js.map +0 -1
  83. package/dist/chunk-RVNQI6BI.js +0 -249
  84. package/dist/chunk-RVNQI6BI.js.map +0 -1
  85. package/dist/chunk-UJUWDF7M.mjs +0 -336
  86. package/dist/chunk-UJUWDF7M.mjs.map +0 -1
  87. package/dist/chunk-VCKXK6V5.js +0 -345
  88. package/dist/chunk-VCKXK6V5.js.map +0 -1
  89. package/dist/chunk-VIEXDTNF.mjs +0 -100
  90. package/dist/chunk-VIEXDTNF.mjs.map +0 -1
  91. package/dist/chunk-YIRPPMCN.mjs.map +0 -1
  92. package/dist/common/ai/llm/core/index.d.mts +0 -70
  93. package/dist/common/ai/llm/core/index.d.ts +0 -70
  94. package/dist/common/ai/llm/core/index.js +0 -54
  95. package/dist/common/ai/llm/core/index.mjs +0 -5
  96. package/dist/common/ai/llm/electron/index.d.mts +0 -6
  97. package/dist/common/ai/llm/electron/index.d.ts +0 -6
  98. package/dist/common/ai/llm/electron/index.js +0 -67
  99. package/dist/common/ai/llm/electron/index.mjs +0 -10
  100. package/dist/common/ai/llm/index.d.mts +0 -3
  101. package/dist/common/ai/llm/index.d.ts +0 -3
  102. package/dist/common/ai/llm/index.js +0 -54
  103. package/dist/common/ai/llm/index.js.map +0 -1
  104. package/dist/common/ai/llm/index.mjs +0 -5
  105. package/dist/common/ai/llm/index.mjs.map +0 -1
  106. package/dist/common/ai/llm/miniapp/index.d.mts +0 -6
  107. package/dist/common/ai/llm/miniapp/index.d.ts +0 -6
  108. package/dist/common/ai/llm/miniapp/index.js +0 -59
  109. package/dist/common/ai/llm/miniapp/index.js.map +0 -1
  110. package/dist/common/ai/llm/miniapp/index.mjs +0 -6
  111. package/dist/common/ai/llm/miniapp/index.mjs.map +0 -1
  112. package/dist/common/ai/llm/rn/index.d.mts +0 -6
  113. package/dist/common/ai/llm/rn/index.d.ts +0 -6
  114. package/dist/common/ai/llm/rn/index.js +0 -59
  115. package/dist/common/ai/llm/rn/index.js.map +0 -1
  116. package/dist/common/ai/llm/rn/index.mjs +0 -6
  117. package/dist/common/ai/llm/rn/index.mjs.map +0 -1
  118. package/dist/common/ai/llm/ui/electron/index.d.mts +0 -5
  119. package/dist/common/ai/llm/ui/electron/index.d.ts +0 -5
  120. package/dist/common/ai/llm/ui/electron/index.js +0 -22
  121. package/dist/common/ai/llm/ui/electron/index.js.map +0 -1
  122. package/dist/common/ai/llm/ui/electron/index.mjs +0 -9
  123. package/dist/common/ai/llm/ui/electron/index.mjs.map +0 -1
  124. package/dist/common/ai/llm/ui/miniapp/index.d.mts +0 -9
  125. package/dist/common/ai/llm/ui/miniapp/index.d.ts +0 -9
  126. package/dist/common/ai/llm/ui/miniapp/index.js +0 -14
  127. package/dist/common/ai/llm/ui/miniapp/index.js.map +0 -1
  128. package/dist/common/ai/llm/ui/miniapp/index.mjs +0 -5
  129. package/dist/common/ai/llm/ui/miniapp/index.mjs.map +0 -1
  130. package/dist/common/ai/llm/ui/rn/index.d.mts +0 -9
  131. package/dist/common/ai/llm/ui/rn/index.d.ts +0 -9
  132. package/dist/common/ai/llm/ui/rn/index.js +0 -14
  133. package/dist/common/ai/llm/ui/rn/index.js.map +0 -1
  134. package/dist/common/ai/llm/ui/rn/index.mjs +0 -5
  135. package/dist/common/ai/llm/ui/rn/index.mjs.map +0 -1
  136. package/dist/common/ai/llm/ui/web/index.d.mts +0 -15
  137. package/dist/common/ai/llm/ui/web/index.d.ts +0 -15
  138. package/dist/common/ai/llm/ui/web/index.js +0 -21
  139. package/dist/common/ai/llm/ui/web/index.js.map +0 -1
  140. package/dist/common/ai/llm/ui/web/index.mjs +0 -8
  141. package/dist/common/ai/llm/ui/web/index.mjs.map +0 -1
  142. package/dist/common/ai/llm/web/index.d.mts +0 -6
  143. package/dist/common/ai/llm/web/index.d.ts +0 -6
  144. package/dist/common/ai/llm/web/index.js +0 -66
  145. package/dist/common/ai/llm/web/index.js.map +0 -1
  146. package/dist/common/ai/llm/web/index.mjs +0 -9
  147. package/dist/common/ai/llm/web/index.mjs.map +0 -1
  148. package/dist/index-BMgdH5dL.d.mts +0 -1716
  149. package/dist/index-IXMAeTtN.d.ts +0 -1716
  150. package/dist/types-B2rs_jq1.d.mts +0 -38
  151. package/dist/types-DgACCUpT.d.ts +0 -122
  152. package/dist/types-DwS2Eg0q.d.ts +0 -38
  153. package/dist/types-LU_BGSzk.d.mts +0 -122
  154. /package/dist/common/{ai/llm/core → aiApi}/index.js.map +0 -0
  155. /package/dist/common/{ai/llm/core → aiApi}/index.mjs.map +0 -0
  156. /package/dist/common/{ai/llm/electron → aiApi/server}/index.js.map +0 -0
  157. /package/dist/common/{ai/llm/electron → aiApi/server}/index.mjs.map +0 -0
package/dist/index.d.ts CHANGED
@@ -1,17 +1,20 @@
1
1
  import { ClassValue } from 'clsx';
2
- import { D as Dialog, A as AlertDialogAction, c as AlertDialogCancel, d as AlertDialogContent, e as DialogDescription, f as DialogFooter, g as DialogHeader, h as DialogOverlay, j as DialogPortal, k as DialogTitle, l as DialogTrigger, m as Avatar, n as AvatarFallback, o as AvatarImage, B as BackButton, p as BackButtonProps, q as Badge, r as BadgeProps, s as Button, t as ButtonProps, C as Card, u as CardContent, v as CardDescription, w as CardFooter, x as CardHeader, y as CardTitle, z as ConfirmModal, E as ConfirmModalProps, F as DialogClose, H as DialogContent, I as DialogContentProps, J as DropdownMenu, K as DropdownMenuCheckboxItem, L as DropdownMenuContent, M as DropdownMenuGroup, N as DropdownMenuItem, O as DropdownMenuLabel, P as DropdownMenuPortal, Q as DropdownMenuRadioGroup, R as DropdownMenuRadioItem, S as DropdownMenuSeparator, T as DropdownMenuShortcut, U as DropdownMenuSub, V as DropdownMenuSubContent, W as DropdownMenuSubTrigger, X as DropdownMenuTrigger, Y as FilterButtonGroup, Z as FilterButtonGroupProps, _ as FilterOption, $ as GenericOrderManager, a0 as GenericOrderManagerProps, a1 as Grid, a as GridColumns, b as GridGap, G as GridItem, a2 as GridProps, a3 as ImageMappingItem, a4 as ImageMappingPanel, a5 as ImageMappingPanelProps, a6 as ImageMappingValue, a7 as Input, a8 as Label, a9 as LocalImageMappingPanel, aa as LocalImageMappingPanelProps, ab as Modal, ac as ModalProps, ad as OrderManagerOperations, ae as OrderableItem, af as Popover, ag as PopoverAnchor, ah as PopoverContent, ai as PopoverTrigger, aj as Progress, ak as ProgressProps, al as ScrollArea, am as ScrollBar, an as SearchBox, ao as SearchResultHint, ap as SearchResultHintProps, aq as Select, ar as SelectContent, as as SelectGroup, at as SelectItem, au as SelectLabel, av as SelectScrollDownButton, aw as SelectScrollUpButton, ax as SelectSeparator, ay as SelectTrigger, az as SelectValue, aA as Separator, aB as SeparatorProps, aC as SheetContent, aD as SheetDescription, aE as SheetFooter, aF as SheetHeader, aG as SheetTitle, aH as Tabs, aI as TabsContent, aJ as TabsList, aK as TabsTrigger, aL as Textarea, aM as Tooltip, aN as TooltipContent, aO as TooltipProvider, aP as TooltipTrigger, aQ as badgeVariants, aR as buttonVariants } from './index-IXMAeTtN.js';
3
- import { B as Ball, b as CollisionBalls, C as CollisionBallsConfig, c as Timeline, T as TimelineConfig, a as TimelineItem } from './CollisionBalls-DgKtscU2.js';
2
+ import * as class_variance_authority_types from 'class-variance-authority/types';
3
+ import * as React from 'react';
4
+ import React__default from 'react';
5
+ import { VariantProps } from 'class-variance-authority';
6
+ import { G as Grid, a as GridColumns, b as GridGap, c as GridItem, d as GridProps } from './index-BZ0MhRau.js';
7
+ export { j as AutoOpenModal, A as AutoOpenModalProps, C as CategoryFilter, M as CompletionFilter, o as CompletionFilterComponent, F as DraggableExperimentGrid, D as DraggableExperimentGridProps, ah as DrizzleLikeDb, w as EmptyState, v as EmptyStateProps, k as EnhancedAvatar, E as EnhancedAvatarProps, K as ExperimentCategory, t as ExperimentGrid, r as ExperimentGridItem, s as ExperimentGridProps, L as ExperimentItem, u as ExperimentItemGrid, ao as MikuContestNoticeRow, ag as MikuContestPersistenceAdapter, as as MikuContestPersistentService, ar as MikuContestPersistentServiceOptions, aw as MikuContestRouteConfig, ae as MikuContestService, av as MikuContestServiceLike, ad as MikuContestServiceOptions, ap as MikuContestStateDbService, an as MikuContestVoteRow, q as PageHeader, p as PageHeaderProps, J as PermissionGuard, m as ProfileBadge, f as ProfileButton, P as ProfileButtonProps, l as ProfileData, h as ProfileModal, g as ProfileModalProps, S as SocialLink, y as SortControl, x as SortControlProps, N as SortMode, B as SortModeToggle, z as SortModeToggleProps, I as SortableExperimentItem, H as SortableExperimentItemProps, n as Stat, T as TestFieldConfig, O as TestFieldPageProps, U as UserInfoBar, V as ViewMode, a8 as VoteCheckContext, e as bubbleShooter, i as business, a9 as checkVoteEligibility, az as createCreateSubmissionHandler, a5 as createDefaultMikuContestConfig, aF as createExportSubmissionsHandler, ax as createGetContestSnapshotHandler, aC as createListSubmissionsHandler, aq as createMikuContestDrizzlePersistenceAdapter, at as createMikuContestPersistentService, af as createMikuContestService, aE as createResetVotesHandler, aB as createReviewSubmissionHandler, aD as createSetVoterRestrictionHandler, ay as createUpdateContestConfigHandler, aA as createVoteHandler, a4 as defaultMikuVotingRules, Q as filterExperiments, W as getAllTags, _ as getCategoryColor, Z as getCategoryDisplayName, $ as getCompletionFilterDisplayName, a0 as getCompletionStatusColor, a1 as getCompletionStatusText, X as getExperimentCounts, ai as mikuContestConfigs, au as mikuContestDbService, al as mikuContestNotices, aj as mikuContestSubmissions, am as mikuContestVoterRestrictions, ak as mikuContestVotes, ac as miniappService, a2 as miniappUI, aa as sortByVotesDesc, R as sortExperiments, a7 as toVoteDayKey, a3 as useMikuContest, Y as validateExperiment, a6 as validateMikuSubmissionInput, ab as webService } from './index-BZ0MhRau.js';
8
+ import { B as Ball, C as CollisionBalls, a as CollisionBallsConfig, T as Timeline, b as TimelineConfig, c as TimelineItem } from './index-B4wDXFL0.js';
9
+ export { A as About, d as AboutBase, e as Contact, E as ExperimentCard, H as Home, f as HomeConfig, P as ProjectCarousel, g as ProjectsConfig } from './index-B4wDXFL0.js';
4
10
  import { U as UploadFileInfo, a as UploadProgress, F as FileMetadata, b as FileQueryOptions, P as PaginatedResult, B as BatchOperationResult, A as AccessPermission, g as AudioProcessingOptions, h as CDNProviderError, C as CDNType, i as FileEvent, c as FileEventListener, j as FileEventType, k as FileProcessingError, l as FileServiceError, m as FileUploadError, I as ImageProcessingOptions, f as ProcessingOptions, e as ProcessorType, n as StorageProviderError, S as StorageType, o as UploadResult, d as UploadStatus, V as VideoProcessingOptions } from './types-B6B210gX.js';
5
11
  import { A as AliyunOSSConfig } from './types-_rFX1atk.js';
6
- import React__default from 'react';
7
12
  import * as zod_v4_core from 'zod/v4/core';
8
13
  import * as zod from 'zod';
9
14
  import * as better_auth_plugins_email_otp from 'better-auth/plugins/email-otp';
10
15
  import * as better_auth_plugins_phone_number from 'better-auth/plugins/phone-number';
11
16
  import * as better_auth_client from 'better-auth/client';
12
17
  import * as better_auth from 'better-auth';
13
- export { e as AutoOpenModal, A as AutoOpenModalProps, C as CategoryFilter, H as CompletionFilter, k as CompletionFilterComponent, x as DraggableExperimentGrid, D as DraggableExperimentGridProps, ac as DrizzleLikeDb, s as EmptyState, r as EmptyStateProps, f as EnhancedAvatar, E as EnhancedAvatarProps, F as ExperimentCategory, p as ExperimentGrid, n as ExperimentGridItem, o as ExperimentGridProps, G as ExperimentItem, q as ExperimentItemGrid, aj as MikuContestNoticeRow, ab as MikuContestPersistenceAdapter, an as MikuContestPersistentService, am as MikuContestPersistentServiceOptions, ar as MikuContestRouteConfig, a9 as MikuContestService, aq as MikuContestServiceLike, a8 as MikuContestServiceOptions, ak as MikuContestStateDbService, ai as MikuContestVoteRow, m as PageHeader, l as PageHeaderProps, B as PermissionGuard, h as ProfileBadge, b as ProfileButton, P as ProfileButtonProps, g as ProfileData, d as ProfileModal, c as ProfileModalProps, S as SocialLink, u as SortControl, t as SortControlProps, I as SortMode, w as SortModeToggle, v as SortModeToggleProps, z as SortableExperimentItem, y as SortableExperimentItemProps, j as Stat, T as TestFieldConfig, J as TestFieldPageProps, U as UserInfoBar, V as ViewMode, a3 as VoteCheckContext, a as bubbleShooter, i as business, a4 as checkVoteEligibility, au as createCreateSubmissionHandler, a0 as createDefaultMikuContestConfig, aA as createExportSubmissionsHandler, as as createGetContestSnapshotHandler, ax as createListSubmissionsHandler, al as createMikuContestDrizzlePersistenceAdapter, ao as createMikuContestPersistentService, aa as createMikuContestService, az as createResetVotesHandler, aw as createReviewSubmissionHandler, ay as createSetVoterRestrictionHandler, at as createUpdateContestConfigHandler, av as createVoteHandler, $ as defaultMikuVotingRules, K as filterExperiments, M as getAllTags, R as getCategoryColor, Q as getCategoryDisplayName, W as getCompletionFilterDisplayName, X as getCompletionStatusColor, Y as getCompletionStatusText, N as getExperimentCounts, ad as mikuContestConfigs, ap as mikuContestDbService, ag as mikuContestNotices, ae as mikuContestSubmissions, ah as mikuContestVoterRestrictions, af as mikuContestVotes, a7 as miniappService, Z as miniappUI, a5 as sortByVotesDesc, L as sortExperiments, a2 as toVoteDayKey, _ as useMikuContest, O as validateExperiment, a1 as validateMikuSubmissionInput, a6 as webService } from './index-VFDbZxVM.js';
14
- export { A as About, a as AboutBase, C as Contact, E as ExperimentCard, H as Home, b as HomeConfig, P as ProjectCarousel, c as ProjectsConfig } from './index-BSmd4ikf.js';
15
18
  export { F as FloatingMenu, c as FloatingMenuExample, N as Navigation, f as NavigationConfig, d as NavigationDirection, a as NavigationItem, e as NavigationPosition, g as NavigationProps, b as NavigationToggle } from './index-Bo_fW3Tl.js';
16
19
  export { k as DANMAKU_MAX_LENGTH, l as DANMAKU_TRACK_COUNT, g as DEFAULT_MAX_ACTIVE_FIREWORKS, f as DEFAULT_MAX_PARTICLES, t as DanmakuControllerOptions, n as DanmakuMessage, c as DanmakuOverlayItem, D as DanmakuPanel, s as DanmakuSendResult, h as FIREWORK_KIND_LABELS, q as FireworkEngineOptions, m as FireworkKind, p as FireworkLaunchPayload, o as FireworkPosition, F as FireworksCanvas, a as FireworksControlPanel, w as FireworksRealtimeConfig, x as FireworksRealtimeState, v as FireworksRealtimeUser, j as MIKU_PALETTE, M as MikuFireworks3D, r as MikuFireworks3DProps, N as NORMAL_PALETTE, U as UseFireworksEngineOptions, W as WebSocketTransport, b as WebSocketTransportCallbacks, d as useDanmakuController, u as useFireworksEngine, e as useFireworksRealtime } from './index-CucXCBNR.js';
17
20
  export { R as ResolveScreenReceiverSignalUrlOptions, a as ScreenReceiverClientRole, k as ScreenReceiverErrorMessage, e as ScreenReceiverIncomingMessage, c as ScreenReceiverJoinMessage, f as ScreenReceiverJoinedMessage, l as ScreenReceiverLogEntry, o as ScreenReceiverPanel, n as ScreenReceiverPanelProps, g as ScreenReceiverPeerJoinedMessage, h as ScreenReceiverPeerLeftMessage, S as ScreenReceiverRole, j as ScreenReceiverRoomStateMessage, d as ScreenReceiverSignalMessage, b as ScreenReceiverSignalType, U as UseScreenReceiverOptions, m as UseScreenReceiverReturn, r as resolveScreenReceiverSignalUrl, u as useScreenReceiver } from './index-C_GhVhOT.js';
@@ -21,9 +24,6 @@ export { f as FestivalCardAudioConfig, b as FestivalCardConfig, a as FestivalCar
21
24
  export { B as BoothAuditEvent, a as BoothAuditEventType, b as BoothFileItem, c as BoothFileKind, d as BoothRedeemGuardLike, e as BoothUploadRecord, f as BoothVaultService, g as BoothVaultServiceOptions, h as BoothVaultStore, C as CreateBoothUploadInput, i as CreateBoothUploadResult } from './boothVaultService-lKcnyA-u.js';
22
25
  export { G as GenerateMatchCodeOptions, V as VocaloidBoothConfig, d as defaultVocaloidBoothConfig, g as generateMatchCode, n as normalizeMatchCode, a as normalizeVocaloidBoothConfig } from './config-BQp3qLAL.js';
23
26
  export { f as CreateMikuAnnouncementInput, C as CreateMikuSubmissionInput, H as HttpMethod, e as MikuAnnouncement, n as MikuContestApiClient, M as MikuContestConfig, j as MikuContestPersistedState, p as MikuContestRole, h as MikuContestStateSnapshot, q as MikuContestTimeline, r as MikuFeatureToggles, g as MikuLeaderboardItem, s as MikuNoticeType, a as MikuSubmission, k as MikuSubmissionContent, i as MikuSubmissionExportRow, b as MikuSubmissionFilter, t as MikuSubmissionStatus, l as MikuVoteRecord, c as MikuVoterRestriction, m as MikuVotingRules, u as MikuWorkType, o as Requester, d as ResetMikuVotesInput, R as ReviewMikuSubmissionInput, S as SetMikuVoterRestrictionInput, V as VoteMikuSubmissionInput, v as createMikuContestApiClient, w as webUI } from './index-DowAHRIP.js';
24
- import 'class-variance-authority/types';
25
- import 'class-variance-authority';
26
- import '@dnd-kit/core';
27
27
  import './index-C8i9SIxk.js';
28
28
  import './types-HorDyIRv.js';
29
29
  import 'three';
@@ -392,6 +392,368 @@ declare namespace index$d {
392
392
  export { index$d_arrayUtils as arrayUtils, index$d_cn as cn, index$d_debugUtils as debugUtils, index$d_errorUtils as errorUtils, index$d_fileUtils as fileUtils, index$d_formatTime as formatTime, index$d_japaneseUtils as japaneseUtils, index$d_stringUtils as stringUtils, index$d_validators as validators };
393
393
  }
394
394
 
395
+ declare const buttonVariants: (props?: ({
396
+ variant?: "default" | "destructive" | "outline" | "secondary" | "ghost" | "link" | null | undefined;
397
+ size?: "default" | "sm" | "lg" | "icon" | null | undefined;
398
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
399
+ interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
400
+ variant?: 'default' | 'destructive' | 'outline' | 'secondary' | 'ghost' | 'link';
401
+ size?: 'default' | 'sm' | 'lg' | 'icon';
402
+ asChild?: boolean;
403
+ }
404
+ declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
405
+
406
+ declare const Card: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
407
+ declare const CardHeader: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
408
+ declare const CardTitle: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
409
+ declare const CardDescription: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
410
+ declare const CardContent: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
411
+ declare const CardFooter: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
412
+
413
+ declare const badgeVariants: (props?: ({
414
+ variant?: "default" | "destructive" | "outline" | "secondary" | null | undefined;
415
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
416
+ interface BadgeProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {
417
+ }
418
+ declare function Badge({ className, variant, ...props }: BadgeProps): React.JSX.Element;
419
+
420
+ declare const Input: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref"> & React.RefAttributes<HTMLInputElement>>;
421
+
422
+ declare const Label: React.ForwardRefExoticComponent<React.LabelHTMLAttributes<HTMLLabelElement> & VariantProps<(props?: class_variance_authority_types.ClassProp | undefined) => string> & React.RefAttributes<HTMLLabelElement>>;
423
+
424
+ interface TabsProps extends React.HTMLAttributes<HTMLDivElement> {
425
+ value?: string;
426
+ defaultValue?: string;
427
+ onValueChange?: (value: string) => void;
428
+ }
429
+ declare const Tabs: ({ value, defaultValue, onValueChange, className, ...props }: TabsProps) => React.JSX.Element;
430
+ declare const TabsList: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
431
+ interface TabsTriggerProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
432
+ value: string;
433
+ }
434
+ declare const TabsTrigger: React.ForwardRefExoticComponent<TabsTriggerProps & React.RefAttributes<HTMLButtonElement>>;
435
+ interface TabsContentProps extends React.HTMLAttributes<HTMLDivElement> {
436
+ value: string;
437
+ forceMount?: boolean;
438
+ }
439
+ declare const TabsContent: React.ForwardRefExoticComponent<TabsContentProps & React.RefAttributes<HTMLDivElement>>;
440
+
441
+ interface DialogProps {
442
+ open?: boolean;
443
+ defaultOpen?: boolean;
444
+ onOpenChange?: (open: boolean) => void;
445
+ children: React.ReactNode;
446
+ }
447
+ declare const Dialog: ({ open, defaultOpen, onOpenChange, children }: DialogProps) => React.JSX.Element;
448
+ interface TriggerProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
449
+ asChild?: boolean;
450
+ children: React.ReactNode;
451
+ }
452
+ declare const DialogTrigger: React.ForwardRefExoticComponent<TriggerProps & React.RefAttributes<HTMLButtonElement>>;
453
+ declare const DialogPortal: ({ children }: {
454
+ children: React.ReactNode;
455
+ }) => React.JSX.Element | null;
456
+ declare const DialogClose: React.ForwardRefExoticComponent<React.ButtonHTMLAttributes<HTMLButtonElement> & React.RefAttributes<HTMLButtonElement>>;
457
+ declare const DialogOverlay: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
458
+ interface DialogContentProps extends React.HTMLAttributes<HTMLDivElement> {
459
+ onPointerDownOutside?: (event: PointerEvent) => void;
460
+ onEscapeKeyDown?: (event: KeyboardEvent) => void;
461
+ showCloseButton?: boolean;
462
+ overlayClassName?: string;
463
+ }
464
+ declare const DialogContent: React.ForwardRefExoticComponent<DialogContentProps & React.RefAttributes<HTMLDivElement>>;
465
+ declare const DialogHeader: {
466
+ ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): React.JSX.Element;
467
+ displayName: string;
468
+ };
469
+ declare const DialogFooter: {
470
+ ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): React.JSX.Element;
471
+ displayName: string;
472
+ };
473
+ declare const DialogTitle: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLHeadingElement> & React.RefAttributes<HTMLHeadingElement>>;
474
+ declare const DialogDescription: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
475
+
476
+ declare const AlertDialogContent: React.ForwardRefExoticComponent<Omit<DialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
477
+ declare const AlertDialogAction: React.ForwardRefExoticComponent<React.ButtonHTMLAttributes<HTMLButtonElement> & React.RefAttributes<HTMLButtonElement>>;
478
+ declare const AlertDialogCancel: React.ForwardRefExoticComponent<React.ButtonHTMLAttributes<HTMLButtonElement> & React.RefAttributes<HTMLButtonElement>>;
479
+
480
+ interface DropdownMenuProps {
481
+ open?: boolean;
482
+ defaultOpen?: boolean;
483
+ onOpenChange?: (open: boolean) => void;
484
+ children: React.ReactNode;
485
+ }
486
+ declare const DropdownMenu: ({ open, defaultOpen, onOpenChange, children }: DropdownMenuProps) => React.JSX.Element;
487
+ declare const DropdownMenuTrigger: React.ForwardRefExoticComponent<React.ButtonHTMLAttributes<HTMLButtonElement> & {
488
+ asChild?: boolean;
489
+ children: React.ReactNode;
490
+ } & React.RefAttributes<HTMLButtonElement>>;
491
+ declare const DropdownMenuGroup: ({ children }: {
492
+ children: React.ReactNode;
493
+ }) => React.JSX.Element;
494
+ declare const DropdownMenuPortal: ({ children }: {
495
+ children: React.ReactNode;
496
+ }) => React.JSX.Element;
497
+ declare const DropdownMenuSub: ({ children }: {
498
+ children: React.ReactNode;
499
+ }) => React.JSX.Element;
500
+ declare const DropdownMenuContent: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & {
501
+ sideOffset?: number;
502
+ } & React.RefAttributes<HTMLDivElement>>;
503
+ type SelectEventLike = Event & {
504
+ preventDefault: () => void;
505
+ defaultPrevented: boolean;
506
+ };
507
+ declare const DropdownMenuItem: React.ForwardRefExoticComponent<React.ButtonHTMLAttributes<HTMLButtonElement> & {
508
+ inset?: boolean;
509
+ onSelect?: (event: SelectEventLike) => void;
510
+ } & React.RefAttributes<HTMLButtonElement>>;
511
+ declare const DropdownMenuCheckboxItem: React.ForwardRefExoticComponent<React.ButtonHTMLAttributes<HTMLButtonElement> & {
512
+ checked?: boolean;
513
+ onCheckedChange?: (checked: boolean) => void;
514
+ } & React.RefAttributes<HTMLButtonElement>>;
515
+ declare const DropdownMenuRadioGroup: ({ value, onValueChange, children, }: {
516
+ value?: string;
517
+ onValueChange?: (value: string) => void;
518
+ children: React.ReactNode;
519
+ }) => React.JSX.Element;
520
+ declare const DropdownMenuRadioItem: React.ForwardRefExoticComponent<React.ButtonHTMLAttributes<HTMLButtonElement> & {
521
+ value: string;
522
+ } & React.RefAttributes<HTMLButtonElement>>;
523
+ declare const DropdownMenuLabel: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & {
524
+ inset?: boolean;
525
+ } & React.RefAttributes<HTMLDivElement>>;
526
+ declare const DropdownMenuSeparator: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
527
+ declare const DropdownMenuShortcut: {
528
+ ({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>): React.JSX.Element;
529
+ displayName: string;
530
+ };
531
+ declare const DropdownMenuSubTrigger: React.ForwardRefExoticComponent<React.ButtonHTMLAttributes<HTMLButtonElement> & {
532
+ inset?: boolean;
533
+ } & React.RefAttributes<HTMLButtonElement>>;
534
+ declare const DropdownMenuSubContent: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
535
+
536
+ interface PopoverProps {
537
+ open?: boolean;
538
+ defaultOpen?: boolean;
539
+ onOpenChange?: (open: boolean) => void;
540
+ children: React.ReactNode;
541
+ }
542
+ declare const Popover: ({ open, defaultOpen, onOpenChange, children }: PopoverProps) => React.JSX.Element;
543
+ interface PopoverTriggerProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
544
+ asChild?: boolean;
545
+ children: React.ReactNode;
546
+ }
547
+ declare const PopoverTrigger: React.ForwardRefExoticComponent<PopoverTriggerProps & React.RefAttributes<HTMLButtonElement>>;
548
+ declare const PopoverAnchor: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLSpanElement> & React.RefAttributes<HTMLSpanElement>>;
549
+ interface PopoverContentProps extends React.HTMLAttributes<HTMLDivElement> {
550
+ align?: "start" | "center" | "end";
551
+ sideOffset?: number;
552
+ }
553
+ declare const PopoverContent: React.ForwardRefExoticComponent<PopoverContentProps & React.RefAttributes<HTMLDivElement>>;
554
+
555
+ interface ProgressProps extends React.HTMLAttributes<HTMLDivElement> {
556
+ value?: number;
557
+ max?: number;
558
+ }
559
+ declare const Progress: React.ForwardRefExoticComponent<ProgressProps & React.RefAttributes<HTMLDivElement>>;
560
+
561
+ declare const ScrollArea: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
562
+ interface ScrollBarProps extends React.HTMLAttributes<HTMLDivElement> {
563
+ orientation?: "vertical" | "horizontal";
564
+ }
565
+ declare const ScrollBar: React.ForwardRefExoticComponent<ScrollBarProps & React.RefAttributes<HTMLDivElement>>;
566
+
567
+ interface SelectProps {
568
+ value?: string;
569
+ defaultValue?: string;
570
+ onValueChange?: (value: string) => void;
571
+ open?: boolean;
572
+ defaultOpen?: boolean;
573
+ onOpenChange?: (open: boolean) => void;
574
+ disabled?: boolean;
575
+ children: React.ReactNode;
576
+ }
577
+ declare const Select: ({ value, defaultValue, onValueChange, open, defaultOpen, onOpenChange, disabled, children, }: SelectProps) => React.JSX.Element;
578
+ declare const SelectGroup: ({ children }: {
579
+ children: React.ReactNode;
580
+ }) => React.JSX.Element;
581
+ declare const SelectValue: ({ placeholder, children, }: {
582
+ placeholder?: React.ReactNode;
583
+ children?: React.ReactNode;
584
+ }) => React.JSX.Element | null;
585
+ declare const SelectTrigger: React.ForwardRefExoticComponent<React.ButtonHTMLAttributes<HTMLButtonElement> & React.RefAttributes<HTMLButtonElement>>;
586
+ declare const SelectScrollUpButton: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
587
+ declare const SelectScrollDownButton: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
588
+ declare const SelectContent: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & {
589
+ position?: "item-aligned" | "popper";
590
+ } & React.RefAttributes<HTMLDivElement>>;
591
+ declare const SelectLabel: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
592
+ interface SelectItemProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
593
+ value: string;
594
+ }
595
+ declare const SelectItem: React.ForwardRefExoticComponent<SelectItemProps & React.RefAttributes<HTMLButtonElement>>;
596
+ declare const SelectSeparator: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
597
+
598
+ interface SeparatorProps extends React.HTMLAttributes<HTMLDivElement> {
599
+ orientation?: "horizontal" | "vertical";
600
+ decorative?: boolean;
601
+ }
602
+ declare const Separator: React.ForwardRefExoticComponent<SeparatorProps & React.RefAttributes<HTMLDivElement>>;
603
+
604
+ declare const sheetVariants: (props?: ({
605
+ side?: "top" | "left" | "right" | "bottom" | null | undefined;
606
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
607
+ interface SheetContentProps extends Omit<React.ComponentPropsWithoutRef<typeof DialogContent>, "children">, VariantProps<typeof sheetVariants> {
608
+ children?: React.ReactNode;
609
+ }
610
+ declare const SheetContent: React.ForwardRefExoticComponent<SheetContentProps & React.RefAttributes<HTMLDivElement>>;
611
+ declare const SheetHeader: {
612
+ ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): React.JSX.Element;
613
+ displayName: string;
614
+ };
615
+ declare const SheetFooter: {
616
+ ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): React.JSX.Element;
617
+ displayName: string;
618
+ };
619
+ declare const SheetTitle: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLHeadingElement> & React.RefAttributes<HTMLHeadingElement>>;
620
+ declare const SheetDescription: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
621
+
622
+ declare const Textarea: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement>, "ref"> & React.RefAttributes<HTMLTextAreaElement>>;
623
+
624
+ declare const TooltipProvider: ({ children, delayDuration, }: {
625
+ children: React.ReactNode;
626
+ delayDuration?: number;
627
+ }) => React.JSX.Element;
628
+ declare const Tooltip: ({ children }: {
629
+ children: React.ReactNode;
630
+ }) => React.JSX.Element;
631
+ declare const TooltipTrigger: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLSpanElement> & {
632
+ asChild?: boolean;
633
+ children: React.ReactNode;
634
+ } & React.RefAttributes<HTMLSpanElement>>;
635
+ declare const TooltipContent: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & {
636
+ sideOffset?: number;
637
+ } & React.RefAttributes<HTMLDivElement>>;
638
+
639
+ declare const Avatar: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLSpanElement> & React.RefAttributes<HTMLSpanElement>>;
640
+ declare const AvatarImage: React.ForwardRefExoticComponent<React.ImgHTMLAttributes<HTMLImageElement> & React.RefAttributes<HTMLImageElement>>;
641
+ declare const AvatarFallback: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLSpanElement> & React.RefAttributes<HTMLSpanElement>>;
642
+
643
+ interface SearchBoxProps {
644
+ searchQuery: string;
645
+ onSearchChange: (query: string) => void;
646
+ placeholder?: string;
647
+ size?: 'small' | 'medium' | 'large';
648
+ }
649
+ declare const SearchBox: React__default.FC<SearchBoxProps>;
650
+
651
+ interface OrderableItem {
652
+ id: number;
653
+ [key: string]: any;
654
+ }
655
+ interface OrderManagerOperations<T extends OrderableItem> {
656
+ loadItems: () => Promise<T[]>;
657
+ moveItemUp: (id: number) => Promise<void>;
658
+ moveItemDown: (id: number) => Promise<void>;
659
+ updateItemOrder: (orders: {
660
+ id: number;
661
+ order: number;
662
+ }[]) => Promise<void>;
663
+ }
664
+ interface GenericOrderManagerProps<T extends OrderableItem> {
665
+ operations: OrderManagerOperations<T>;
666
+ renderItem: (item: T, index: number, isFirst: boolean, isLast: boolean) => React__default.ReactNode;
667
+ className?: string;
668
+ title?: string;
669
+ description?: string;
670
+ onOrderChanged?: () => void;
671
+ emptyMessage?: string;
672
+ loadingMessage?: string;
673
+ }
674
+ declare function GenericOrderManager<T extends OrderableItem>({ operations, renderItem, className, title, description, onOrderChanged, emptyMessage, loadingMessage }: GenericOrderManagerProps<T>): React__default.JSX.Element;
675
+
676
+ interface BackButtonProps {
677
+ href?: string;
678
+ className?: string;
679
+ }
680
+ declare const BackButton: React__default.FC<BackButtonProps>;
681
+
682
+ interface FilterOption<T> {
683
+ value: T;
684
+ label: string;
685
+ icon: string;
686
+ activeColor: {
687
+ bg: string;
688
+ shadow: string;
689
+ };
690
+ count?: number;
691
+ showCount?: boolean;
692
+ }
693
+ interface FilterButtonGroupProps<T> {
694
+ label: string;
695
+ value: T;
696
+ options: FilterOption<T>[];
697
+ onChange: (value: T) => void;
698
+ className?: string;
699
+ }
700
+ declare function FilterButtonGroup<T extends string>({ label, value, options, onChange, className }: FilterButtonGroupProps<T>): React__default.JSX.Element;
701
+
702
+ interface SearchResultHintProps {
703
+ searchQuery: string;
704
+ resultCount: number;
705
+ className?: string;
706
+ }
707
+ declare function SearchResultHint({ searchQuery, resultCount, className }: SearchResultHintProps): React__default.JSX.Element | null;
708
+
709
+ interface ModalProps {
710
+ isOpen: boolean;
711
+ onClose: () => void;
712
+ title?: string;
713
+ width?: number | string;
714
+ height?: number | string;
715
+ className?: string;
716
+ maskClosable?: boolean;
717
+ children: React__default.ReactNode;
718
+ zIndex?: number;
719
+ overlayClassName?: string;
720
+ }
721
+ declare const Modal: React__default.FC<ModalProps>;
722
+ interface ConfirmModalProps {
723
+ isOpen: boolean;
724
+ onClose: () => void;
725
+ onConfirm: () => void;
726
+ title?: string;
727
+ message: string;
728
+ confirmText?: string;
729
+ cancelText?: string;
730
+ isLoading?: boolean;
731
+ }
732
+ declare const ConfirmModal: React__default.FC<ConfirmModalProps>;
733
+
734
+ interface ImageMappingItem {
735
+ id: string;
736
+ label: string;
737
+ }
738
+ type ImageMappingValue = Record<string, string>;
739
+ interface ImageMappingPanelProps {
740
+ title: string;
741
+ items: ImageMappingItem[];
742
+ value: ImageMappingValue;
743
+ onChange: (next: ImageMappingValue) => void;
744
+ className?: string;
745
+ uploadLabel?: string;
746
+ clearLabel?: string;
747
+ }
748
+ declare function ImageMappingPanel({ title, items, value, onChange, className, uploadLabel, clearLabel, }: ImageMappingPanelProps): React__default.JSX.Element;
749
+
750
+ interface LocalImageMappingPanelProps extends Omit<ImageMappingPanelProps, 'value' | 'onChange'> {
751
+ storageKey: string;
752
+ defaultValue?: ImageMappingValue;
753
+ onValueChange?: (next: ImageMappingValue) => void;
754
+ }
755
+ declare function LocalImageMappingPanel({ storageKey, defaultValue, onValueChange, ...panelProps }: LocalImageMappingPanelProps): React__default.JSX.Element;
756
+
395
757
  declare const index$c_AlertDialogAction: typeof AlertDialogAction;
396
758
  declare const index$c_AlertDialogCancel: typeof AlertDialogCancel;
397
759
  declare const index$c_AlertDialogContent: typeof AlertDialogContent;
@@ -399,12 +761,12 @@ declare const index$c_Avatar: typeof Avatar;
399
761
  declare const index$c_AvatarFallback: typeof AvatarFallback;
400
762
  declare const index$c_AvatarImage: typeof AvatarImage;
401
763
  declare const index$c_BackButton: typeof BackButton;
402
- declare const index$c_BackButtonProps: typeof BackButtonProps;
764
+ type index$c_BackButtonProps = BackButtonProps;
403
765
  declare const index$c_Badge: typeof Badge;
404
- declare const index$c_BadgeProps: typeof BadgeProps;
766
+ type index$c_BadgeProps = BadgeProps;
405
767
  declare const index$c_Ball: typeof Ball;
406
768
  declare const index$c_Button: typeof Button;
407
- declare const index$c_ButtonProps: typeof ButtonProps;
769
+ type index$c_ButtonProps = ButtonProps;
408
770
  declare const index$c_Card: typeof Card;
409
771
  declare const index$c_CardContent: typeof CardContent;
410
772
  declare const index$c_CardDescription: typeof CardDescription;
@@ -414,11 +776,11 @@ declare const index$c_CardTitle: typeof CardTitle;
414
776
  declare const index$c_CollisionBalls: typeof CollisionBalls;
415
777
  declare const index$c_CollisionBallsConfig: typeof CollisionBallsConfig;
416
778
  declare const index$c_ConfirmModal: typeof ConfirmModal;
417
- declare const index$c_ConfirmModalProps: typeof ConfirmModalProps;
779
+ type index$c_ConfirmModalProps = ConfirmModalProps;
418
780
  declare const index$c_Dialog: typeof Dialog;
419
781
  declare const index$c_DialogClose: typeof DialogClose;
420
782
  declare const index$c_DialogContent: typeof DialogContent;
421
- declare const index$c_DialogContentProps: typeof DialogContentProps;
783
+ type index$c_DialogContentProps = DialogContentProps;
422
784
  declare const index$c_DialogDescription: typeof DialogDescription;
423
785
  declare const index$c_DialogFooter: typeof DialogFooter;
424
786
  declare const index$c_DialogHeader: typeof DialogHeader;
@@ -442,38 +804,38 @@ declare const index$c_DropdownMenuSubContent: typeof DropdownMenuSubContent;
442
804
  declare const index$c_DropdownMenuSubTrigger: typeof DropdownMenuSubTrigger;
443
805
  declare const index$c_DropdownMenuTrigger: typeof DropdownMenuTrigger;
444
806
  declare const index$c_FilterButtonGroup: typeof FilterButtonGroup;
445
- declare const index$c_FilterButtonGroupProps: typeof FilterButtonGroupProps;
446
- declare const index$c_FilterOption: typeof FilterOption;
807
+ type index$c_FilterButtonGroupProps<T> = FilterButtonGroupProps<T>;
808
+ type index$c_FilterOption<T> = FilterOption<T>;
447
809
  declare const index$c_GenericOrderManager: typeof GenericOrderManager;
448
- declare const index$c_GenericOrderManagerProps: typeof GenericOrderManagerProps;
810
+ type index$c_GenericOrderManagerProps<T extends OrderableItem> = GenericOrderManagerProps<T>;
449
811
  declare const index$c_Grid: typeof Grid;
450
812
  declare const index$c_GridColumns: typeof GridColumns;
451
813
  declare const index$c_GridGap: typeof GridGap;
452
814
  declare const index$c_GridItem: typeof GridItem;
453
815
  declare const index$c_GridProps: typeof GridProps;
454
- declare const index$c_ImageMappingItem: typeof ImageMappingItem;
816
+ type index$c_ImageMappingItem = ImageMappingItem;
455
817
  declare const index$c_ImageMappingPanel: typeof ImageMappingPanel;
456
- declare const index$c_ImageMappingPanelProps: typeof ImageMappingPanelProps;
457
- declare const index$c_ImageMappingValue: typeof ImageMappingValue;
818
+ type index$c_ImageMappingPanelProps = ImageMappingPanelProps;
819
+ type index$c_ImageMappingValue = ImageMappingValue;
458
820
  declare const index$c_Input: typeof Input;
459
821
  declare const index$c_Label: typeof Label;
460
822
  declare const index$c_LocalImageMappingPanel: typeof LocalImageMappingPanel;
461
- declare const index$c_LocalImageMappingPanelProps: typeof LocalImageMappingPanelProps;
823
+ type index$c_LocalImageMappingPanelProps = LocalImageMappingPanelProps;
462
824
  declare const index$c_Modal: typeof Modal;
463
- declare const index$c_ModalProps: typeof ModalProps;
464
- declare const index$c_OrderManagerOperations: typeof OrderManagerOperations;
465
- declare const index$c_OrderableItem: typeof OrderableItem;
825
+ type index$c_ModalProps = ModalProps;
826
+ type index$c_OrderManagerOperations<T extends OrderableItem> = OrderManagerOperations<T>;
827
+ type index$c_OrderableItem = OrderableItem;
466
828
  declare const index$c_Popover: typeof Popover;
467
829
  declare const index$c_PopoverAnchor: typeof PopoverAnchor;
468
830
  declare const index$c_PopoverContent: typeof PopoverContent;
469
831
  declare const index$c_PopoverTrigger: typeof PopoverTrigger;
470
832
  declare const index$c_Progress: typeof Progress;
471
- declare const index$c_ProgressProps: typeof ProgressProps;
833
+ type index$c_ProgressProps = ProgressProps;
472
834
  declare const index$c_ScrollArea: typeof ScrollArea;
473
835
  declare const index$c_ScrollBar: typeof ScrollBar;
474
836
  declare const index$c_SearchBox: typeof SearchBox;
475
837
  declare const index$c_SearchResultHint: typeof SearchResultHint;
476
- declare const index$c_SearchResultHintProps: typeof SearchResultHintProps;
838
+ type index$c_SearchResultHintProps = SearchResultHintProps;
477
839
  declare const index$c_Select: typeof Select;
478
840
  declare const index$c_SelectContent: typeof SelectContent;
479
841
  declare const index$c_SelectGroup: typeof SelectGroup;
@@ -485,7 +847,7 @@ declare const index$c_SelectSeparator: typeof SelectSeparator;
485
847
  declare const index$c_SelectTrigger: typeof SelectTrigger;
486
848
  declare const index$c_SelectValue: typeof SelectValue;
487
849
  declare const index$c_Separator: typeof Separator;
488
- declare const index$c_SeparatorProps: typeof SeparatorProps;
850
+ type index$c_SeparatorProps = SeparatorProps;
489
851
  declare const index$c_SheetContent: typeof SheetContent;
490
852
  declare const index$c_SheetDescription: typeof SheetDescription;
491
853
  declare const index$c_SheetFooter: typeof SheetFooter;
@@ -506,7 +868,7 @@ declare const index$c_TooltipTrigger: typeof TooltipTrigger;
506
868
  declare const index$c_badgeVariants: typeof badgeVariants;
507
869
  declare const index$c_buttonVariants: typeof buttonVariants;
508
870
  declare namespace index$c {
509
- export { Dialog as AlertDialog, index$c_AlertDialogAction as AlertDialogAction, index$c_AlertDialogCancel as AlertDialogCancel, index$c_AlertDialogContent as AlertDialogContent, DialogDescription as AlertDialogDescription, DialogFooter as AlertDialogFooter, DialogHeader as AlertDialogHeader, DialogOverlay as AlertDialogOverlay, DialogPortal as AlertDialogPortal, DialogTitle as AlertDialogTitle, DialogTrigger as AlertDialogTrigger, index$c_Avatar as Avatar, index$c_AvatarFallback as AvatarFallback, index$c_AvatarImage as AvatarImage, index$c_BackButton as BackButton, index$c_BackButtonProps as BackButtonProps, index$c_Badge as Badge, index$c_BadgeProps as BadgeProps, index$c_Ball as Ball, index$c_Button as Button, index$c_ButtonProps as ButtonProps, index$c_Card as Card, index$c_CardContent as CardContent, index$c_CardDescription as CardDescription, index$c_CardFooter as CardFooter, index$c_CardHeader as CardHeader, index$c_CardTitle as CardTitle, index$c_CollisionBalls as CollisionBalls, index$c_CollisionBallsConfig as CollisionBallsConfig, index$c_ConfirmModal as ConfirmModal, index$c_ConfirmModalProps as ConfirmModalProps, index$c_Dialog as Dialog, index$c_DialogClose as DialogClose, index$c_DialogContent as DialogContent, index$c_DialogContentProps as DialogContentProps, index$c_DialogDescription as DialogDescription, index$c_DialogFooter as DialogFooter, index$c_DialogHeader as DialogHeader, index$c_DialogOverlay as DialogOverlay, index$c_DialogPortal as DialogPortal, index$c_DialogTitle as DialogTitle, index$c_DialogTrigger as DialogTrigger, index$c_DropdownMenu as DropdownMenu, index$c_DropdownMenuCheckboxItem as DropdownMenuCheckboxItem, index$c_DropdownMenuContent as DropdownMenuContent, index$c_DropdownMenuGroup as DropdownMenuGroup, index$c_DropdownMenuItem as DropdownMenuItem, index$c_DropdownMenuLabel as DropdownMenuLabel, index$c_DropdownMenuPortal as DropdownMenuPortal, index$c_DropdownMenuRadioGroup as DropdownMenuRadioGroup, index$c_DropdownMenuRadioItem as DropdownMenuRadioItem, index$c_DropdownMenuSeparator as DropdownMenuSeparator, index$c_DropdownMenuShortcut as DropdownMenuShortcut, index$c_DropdownMenuSub as DropdownMenuSub, index$c_DropdownMenuSubContent as DropdownMenuSubContent, index$c_DropdownMenuSubTrigger as DropdownMenuSubTrigger, index$c_DropdownMenuTrigger as DropdownMenuTrigger, index$c_FilterButtonGroup as FilterButtonGroup, index$c_FilterButtonGroupProps as FilterButtonGroupProps, index$c_FilterOption as FilterOption, index$c_GenericOrderManager as GenericOrderManager, index$c_GenericOrderManagerProps as GenericOrderManagerProps, index$c_Grid as Grid, index$c_GridColumns as GridColumns, index$c_GridGap as GridGap, index$c_GridItem as GridItem, index$c_GridProps as GridProps, index$c_ImageMappingItem as ImageMappingItem, index$c_ImageMappingPanel as ImageMappingPanel, index$c_ImageMappingPanelProps as ImageMappingPanelProps, index$c_ImageMappingValue as ImageMappingValue, index$c_Input as Input, index$c_Label as Label, index$c_LocalImageMappingPanel as LocalImageMappingPanel, index$c_LocalImageMappingPanelProps as LocalImageMappingPanelProps, index$c_Modal as Modal, index$c_ModalProps as ModalProps, index$c_OrderManagerOperations as OrderManagerOperations, index$c_OrderableItem as OrderableItem, index$c_Popover as Popover, index$c_PopoverAnchor as PopoverAnchor, index$c_PopoverContent as PopoverContent, index$c_PopoverTrigger as PopoverTrigger, index$c_Progress as Progress, index$c_ProgressProps as ProgressProps, index$c_ScrollArea as ScrollArea, index$c_ScrollBar as ScrollBar, index$c_SearchBox as SearchBox, index$c_SearchResultHint as SearchResultHint, index$c_SearchResultHintProps as SearchResultHintProps, index$c_Select as Select, index$c_SelectContent as SelectContent, index$c_SelectGroup as SelectGroup, index$c_SelectItem as SelectItem, index$c_SelectLabel as SelectLabel, index$c_SelectScrollDownButton as SelectScrollDownButton, index$c_SelectScrollUpButton as SelectScrollUpButton, index$c_SelectSeparator as SelectSeparator, index$c_SelectTrigger as SelectTrigger, index$c_SelectValue as SelectValue, index$c_Separator as Separator, index$c_SeparatorProps as SeparatorProps, Dialog as Sheet, DialogClose as SheetClose, index$c_SheetContent as SheetContent, index$c_SheetDescription as SheetDescription, index$c_SheetFooter as SheetFooter, index$c_SheetHeader as SheetHeader, DialogOverlay as SheetOverlay, DialogPortal as SheetPortal, index$c_SheetTitle as SheetTitle, DialogTrigger as SheetTrigger, index$c_Tabs as Tabs, index$c_TabsContent as TabsContent, index$c_TabsList as TabsList, index$c_TabsTrigger as TabsTrigger, index$c_Textarea as Textarea, index$c_Timeline as Timeline, index$c_TimelineConfig as TimelineConfig, index$c_TimelineItem as TimelineItem, index$c_Tooltip as Tooltip, index$c_TooltipContent as TooltipContent, index$c_TooltipProvider as TooltipProvider, index$c_TooltipTrigger as TooltipTrigger, index$c_badgeVariants as badgeVariants, index$c_buttonVariants as buttonVariants };
871
+ export { Dialog as AlertDialog, index$c_AlertDialogAction as AlertDialogAction, index$c_AlertDialogCancel as AlertDialogCancel, index$c_AlertDialogContent as AlertDialogContent, DialogDescription as AlertDialogDescription, DialogFooter as AlertDialogFooter, DialogHeader as AlertDialogHeader, DialogOverlay as AlertDialogOverlay, DialogPortal as AlertDialogPortal, DialogTitle as AlertDialogTitle, DialogTrigger as AlertDialogTrigger, index$c_Avatar as Avatar, index$c_AvatarFallback as AvatarFallback, index$c_AvatarImage as AvatarImage, index$c_BackButton as BackButton, type index$c_BackButtonProps as BackButtonProps, index$c_Badge as Badge, type index$c_BadgeProps as BadgeProps, index$c_Ball as Ball, index$c_Button as Button, type index$c_ButtonProps as ButtonProps, index$c_Card as Card, index$c_CardContent as CardContent, index$c_CardDescription as CardDescription, index$c_CardFooter as CardFooter, index$c_CardHeader as CardHeader, index$c_CardTitle as CardTitle, index$c_CollisionBalls as CollisionBalls, index$c_CollisionBallsConfig as CollisionBallsConfig, index$c_ConfirmModal as ConfirmModal, type index$c_ConfirmModalProps as ConfirmModalProps, index$c_Dialog as Dialog, index$c_DialogClose as DialogClose, index$c_DialogContent as DialogContent, type index$c_DialogContentProps as DialogContentProps, index$c_DialogDescription as DialogDescription, index$c_DialogFooter as DialogFooter, index$c_DialogHeader as DialogHeader, index$c_DialogOverlay as DialogOverlay, index$c_DialogPortal as DialogPortal, index$c_DialogTitle as DialogTitle, index$c_DialogTrigger as DialogTrigger, index$c_DropdownMenu as DropdownMenu, index$c_DropdownMenuCheckboxItem as DropdownMenuCheckboxItem, index$c_DropdownMenuContent as DropdownMenuContent, index$c_DropdownMenuGroup as DropdownMenuGroup, index$c_DropdownMenuItem as DropdownMenuItem, index$c_DropdownMenuLabel as DropdownMenuLabel, index$c_DropdownMenuPortal as DropdownMenuPortal, index$c_DropdownMenuRadioGroup as DropdownMenuRadioGroup, index$c_DropdownMenuRadioItem as DropdownMenuRadioItem, index$c_DropdownMenuSeparator as DropdownMenuSeparator, index$c_DropdownMenuShortcut as DropdownMenuShortcut, index$c_DropdownMenuSub as DropdownMenuSub, index$c_DropdownMenuSubContent as DropdownMenuSubContent, index$c_DropdownMenuSubTrigger as DropdownMenuSubTrigger, index$c_DropdownMenuTrigger as DropdownMenuTrigger, index$c_FilterButtonGroup as FilterButtonGroup, type index$c_FilterButtonGroupProps as FilterButtonGroupProps, type index$c_FilterOption as FilterOption, index$c_GenericOrderManager as GenericOrderManager, type index$c_GenericOrderManagerProps as GenericOrderManagerProps, index$c_Grid as Grid, index$c_GridColumns as GridColumns, index$c_GridGap as GridGap, index$c_GridItem as GridItem, index$c_GridProps as GridProps, type index$c_ImageMappingItem as ImageMappingItem, index$c_ImageMappingPanel as ImageMappingPanel, type index$c_ImageMappingPanelProps as ImageMappingPanelProps, type index$c_ImageMappingValue as ImageMappingValue, index$c_Input as Input, index$c_Label as Label, index$c_LocalImageMappingPanel as LocalImageMappingPanel, type index$c_LocalImageMappingPanelProps as LocalImageMappingPanelProps, index$c_Modal as Modal, type index$c_ModalProps as ModalProps, type index$c_OrderManagerOperations as OrderManagerOperations, type index$c_OrderableItem as OrderableItem, index$c_Popover as Popover, index$c_PopoverAnchor as PopoverAnchor, index$c_PopoverContent as PopoverContent, index$c_PopoverTrigger as PopoverTrigger, index$c_Progress as Progress, type index$c_ProgressProps as ProgressProps, index$c_ScrollArea as ScrollArea, index$c_ScrollBar as ScrollBar, index$c_SearchBox as SearchBox, index$c_SearchResultHint as SearchResultHint, type index$c_SearchResultHintProps as SearchResultHintProps, index$c_Select as Select, index$c_SelectContent as SelectContent, index$c_SelectGroup as SelectGroup, index$c_SelectItem as SelectItem, index$c_SelectLabel as SelectLabel, index$c_SelectScrollDownButton as SelectScrollDownButton, index$c_SelectScrollUpButton as SelectScrollUpButton, index$c_SelectSeparator as SelectSeparator, index$c_SelectTrigger as SelectTrigger, index$c_SelectValue as SelectValue, index$c_Separator as Separator, type index$c_SeparatorProps as SeparatorProps, Dialog as Sheet, DialogClose as SheetClose, index$c_SheetContent as SheetContent, index$c_SheetDescription as SheetDescription, index$c_SheetFooter as SheetFooter, index$c_SheetHeader as SheetHeader, DialogOverlay as SheetOverlay, DialogPortal as SheetPortal, index$c_SheetTitle as SheetTitle, DialogTrigger as SheetTrigger, index$c_Tabs as Tabs, index$c_TabsContent as TabsContent, index$c_TabsList as TabsList, index$c_TabsTrigger as TabsTrigger, index$c_Textarea as Textarea, index$c_Timeline as Timeline, index$c_TimelineConfig as TimelineConfig, index$c_TimelineItem as TimelineItem, index$c_Tooltip as Tooltip, index$c_TooltipContent as TooltipContent, index$c_TooltipProvider as TooltipProvider, index$c_TooltipTrigger as TooltipTrigger, index$c_badgeVariants as badgeVariants, index$c_buttonVariants as buttonVariants };
510
872
  }
511
873
 
512
874
  /**
@@ -10495,188 +10857,348 @@ interface SmartAssistantProps {
10495
10857
  }
10496
10858
  declare const SmartAssistant: React__default.FC<SmartAssistantProps>;
10497
10859
 
10498
- type PromptVariableValue = string | number | boolean | null | undefined;
10499
- type PromptVariables = Record<string, PromptVariableValue>;
10500
- declare const normalizePromptVariables: (variables?: PromptVariables) => Record<string, string>;
10501
-
10502
- interface AiProvider {
10503
- id?: string;
10504
- sendChat(request: AiChatRequest, config: ResolvedAiClientConfig): Promise<AiChatResponse>;
10505
- streamChat?(request: AiChatRequest, config: ResolvedAiClientConfig): AsyncIterable<AiChatChunk>;
10506
- }
10507
-
10508
- type AiRole = 'system' | 'user' | 'assistant' | 'tool';
10509
- type AiToolChoice = {
10510
- type: 'function';
10511
- function: {
10512
- name: string;
10513
- };
10514
- };
10515
- type AiToolDefinition = {
10516
- type: 'function';
10517
- function: {
10518
- name: string;
10519
- description?: string;
10520
- parameters?: Record<string, any>;
10521
- };
10522
- };
10523
- type AiToolCall = {
10524
- id: string;
10525
- type: 'function';
10526
- function: {
10527
- name: string;
10528
- arguments: string;
10529
- };
10530
- };
10531
- interface AiMessage {
10532
- role: AiRole;
10533
- content: string;
10534
- name?: string;
10535
- toolCallId?: string;
10536
- toolCalls?: AiToolCall[];
10860
+ /** 音频处理策略:native=chat 内嵌音频,stt=先转写再 chat,auto=按模型能力自动选择(失败时 STT 回退) */
10861
+ type AudioStrategy = 'native' | 'stt' | 'auto';
10862
+ /** 连接配置(调用方可显式传入,或与 env 合并) */
10863
+ interface AiConnectionSettings {
10864
+ apiKey: string;
10865
+ baseUrl: string;
10866
+ model?: string;
10867
+ textModel?: string;
10868
+ visionModel?: string;
10869
+ audioModel?: string;
10870
+ audioStrategy?: AudioStrategy;
10871
+ timeoutMs?: number;
10872
+ maxImageBytes?: number;
10873
+ maxAudioBytes?: number;
10874
+ }
10875
+ /** 客户端/请求可携带的 AI 连接配置(字段均可选,用于覆盖环境变量) */
10876
+ type AiClientSettings = Partial<AiConnectionSettings>;
10877
+ /** 解析后的完整连接配置 */
10878
+ interface AiConnectionConfig extends AiConnectionSettings {
10879
+ textModel: string;
10880
+ visionModel: string;
10881
+ audioModel: string;
10882
+ audioStrategy: AudioStrategy;
10883
+ timeoutMs: number;
10884
+ maxImageBytes: number;
10885
+ maxAudioBytes: number;
10537
10886
  }
10538
- interface AiUsage {
10539
- promptTokens?: number;
10540
- completionTokens?: number;
10541
- totalTokens?: number;
10887
+ /** 统一 AI 任务请求 */
10888
+ interface AiApiRunRequest<TInput = unknown> {
10889
+ taskId: string;
10890
+ input: TInput;
10891
+ options?: AiTaskRunOptions;
10892
+ clientSettings?: AiClientSettings;
10542
10893
  }
10543
- interface AiChatRequestOptions {
10894
+ interface AiTaskRunOptions {
10544
10895
  model?: string;
10545
10896
  temperature?: number;
10546
10897
  maxTokens?: number;
10547
- topP?: number;
10548
- stop?: string | string[];
10549
- stream?: boolean;
10550
- tools?: AiToolDefinition[];
10551
- toolChoice?: 'auto' | 'none' | AiToolChoice;
10552
10898
  }
10553
- interface AiChatRequest extends AiChatRequestOptions {
10554
- messages: AiMessage[];
10899
+ /** 统一 AI 任务响应 */
10900
+ interface AiApiResponse<TData = unknown> {
10901
+ success: boolean;
10902
+ taskId: string;
10903
+ data?: TData;
10904
+ error?: AiApiErrorBody;
10905
+ meta?: AiApiResponseMeta;
10555
10906
  }
10556
- interface AiChatResponse {
10557
- id: string;
10907
+ interface AiApiErrorBody {
10908
+ code: AiApiErrorCode;
10909
+ message: string;
10910
+ details?: unknown;
10911
+ }
10912
+ type AiApiErrorCode = 'UNAUTHORIZED' | 'INVALID_INPUT' | 'TASK_NOT_FOUND' | 'AI_CONFIG_MISSING' | 'AI_REQUEST_FAILED' | 'AI_PARSE_FAILED' | 'PAYLOAD_TOO_LARGE' | 'UNSUPPORTED_MEDIA';
10913
+ interface AiApiResponseMeta {
10914
+ model: string;
10915
+ latencyMs: number;
10916
+ provider?: string;
10917
+ confidence?: number;
10918
+ rawSummary?: string;
10919
+ }
10920
+ /** 多模态图片输入(base64) */
10921
+ interface AiImageInput {
10922
+ base64: string;
10923
+ mimeType: string;
10924
+ }
10925
+ /** 多模态音频输入(base64) */
10926
+ interface AiAudioInput {
10927
+ base64: string;
10928
+ mimeType: string;
10929
+ }
10930
+ type AiMediaKind = 'image' | 'audio';
10931
+ interface AiImageMediaInput extends AiImageInput {
10932
+ kind: 'image';
10933
+ }
10934
+ interface AiAudioMediaInput extends AiAudioInput {
10935
+ kind: 'audio';
10936
+ }
10937
+ type AiMediaInput = AiImageMediaInput | AiAudioMediaInput;
10938
+ /** 通用文本补全任务输入 */
10939
+ interface TextCompletionInput {
10940
+ systemPrompt?: string;
10941
+ userPrompt: string;
10942
+ model?: string;
10943
+ temperature?: number;
10944
+ maxTokens?: number;
10945
+ /** 显式连接配置,优先级高于 clientSettings / 环境变量 */
10946
+ connection?: AiClientSettings;
10947
+ }
10948
+ /** 通用文本补全任务输出 */
10949
+ interface TextCompletionOutput {
10558
10950
  content: string;
10559
- message?: AiMessage;
10560
- usage?: AiUsage;
10561
- raw?: unknown;
10562
- toolCalls?: AiToolCall[];
10951
+ rawText: string;
10952
+ }
10953
+ /** 通用结构化多模态任务输入 */
10954
+ interface StructuredMultimodalInput {
10955
+ systemPrompt: string;
10956
+ userPrompt: string;
10957
+ media?: AiMediaInput[];
10958
+ jsonSchemaHint?: string;
10959
+ model?: string;
10960
+ temperature?: number;
10961
+ maxTokens?: number;
10962
+ audioStrategy?: AudioStrategy;
10963
+ connection?: AiClientSettings;
10563
10964
  }
10564
- interface AiChatChunk {
10565
- id: string;
10566
- content?: string;
10567
- delta?: string;
10568
- toolCalls?: AiToolCall[];
10569
- raw?: unknown;
10965
+ /** 通用结构化多模态任务输出 */
10966
+ interface StructuredMultimodalOutput {
10967
+ json: Record<string, unknown>;
10968
+ rawText: string;
10570
10969
  }
10571
- interface AiLogger {
10572
- debug?: (message: string, data?: any) => void;
10573
- info?: (message: string, data?: any) => void;
10574
- warn?: (message: string, data?: any) => void;
10575
- error?: (message: string, error?: any) => void;
10970
+ declare const CORE_LLM_COMPLETION_TASK_ID = "core.llmCompletion";
10971
+ declare const CORE_STRUCTURED_MULTIMODAL_TASK_ID = "core.structuredMultimodal";
10972
+ declare const CORE_CONNECTIVITY_TEST_TASK_ID = "core.connectivityTest";
10973
+ interface ConnectivityTestOutput {
10974
+ ok: boolean;
10975
+ reply: string;
10576
10976
  }
10577
- interface AiClientConfig {
10578
- apiKey?: string;
10579
- getApiKey?: () => Promise<string> | string;
10580
- baseUrl?: string;
10977
+ interface AiModelsListRequest {
10978
+ clientSettings?: AiClientSettings;
10979
+ }
10980
+ interface AiModelsListResponse {
10981
+ success: boolean;
10982
+ models: string[];
10983
+ visionModels: string[];
10984
+ suggestedVisionModel?: string;
10985
+ error?: {
10986
+ code: string;
10987
+ message: string;
10988
+ };
10989
+ }
10990
+ interface AiTaskContext {
10991
+ requestId?: string;
10992
+ userId?: string | number;
10993
+ clientSettings?: AiClientSettings;
10994
+ }
10995
+ interface AiTaskDefinition<TInput = unknown, TOutput = unknown> {
10996
+ id: string;
10997
+ description?: string;
10998
+ validateInput: (input: unknown) => TInput;
10999
+ execute: (input: TInput, ctx: AiTaskContext) => Promise<{
11000
+ data: TOutput;
11001
+ meta?: Partial<AiApiResponseMeta>;
11002
+ }>;
11003
+ }
11004
+ interface MultimodalChatParams {
11005
+ systemPrompt: string;
11006
+ userPrompt: string;
11007
+ media?: AiMediaInput[];
10581
11008
  model?: string;
11009
+ temperature?: number;
11010
+ maxTokens?: number;
11011
+ jsonMode?: boolean;
11012
+ audioStrategy?: AudioStrategy;
11013
+ connection?: AiClientSettings;
11014
+ }
11015
+ interface MultimodalChatResult {
11016
+ content: string;
11017
+ model: string;
11018
+ raw: unknown;
11019
+ /** auto/native/stt 实际采用的音频处理方式 */
11020
+ audioHandling?: 'none' | 'native' | 'stt';
11021
+ /** STT 或 native 失败回退时的转写文本 */
11022
+ transcriptions?: string[];
11023
+ }
11024
+
11025
+ /**
11026
+ * 合并连接配置:显式 connection > clientSettings > 环境变量。
11027
+ * 缺少 apiKey 时返回 null。
11028
+ */
11029
+ declare function resolveAiConnectionConfig(...sources: Array<AiClientSettings | undefined>): AiConnectionConfig | null;
11030
+ declare function requireAiConnectionConfig(...sources: Array<AiClientSettings | undefined>): AiConnectionConfig;
11031
+
11032
+ type JsonRequestOptions = {
11033
+ url: string;
11034
+ method?: 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH';
10582
11035
  headers?: Record<string, string>;
11036
+ body?: unknown;
10583
11037
  timeoutMs?: number;
10584
11038
  requestAdapter?: RequestAdapter;
10585
- logger?: AiLogger;
10586
- provider?: AiProvider;
11039
+ };
11040
+ declare function requestJson<T>(options: JsonRequestOptions): Promise<T>;
11041
+
11042
+ declare const DEFAULT_OPENAI_BASE_URL = "https://api.openai.com/v1";
11043
+ declare const DEFAULT_TEXT_MODEL = "gpt-4o-mini";
11044
+ type ChatRole = 'system' | 'user' | 'assistant';
11045
+ interface ChatMessage {
11046
+ role: ChatRole;
11047
+ content: string;
10587
11048
  }
10588
- interface ResolvedAiClientConfig extends AiClientConfig {
11049
+ interface CallChatOptions {
11050
+ /** OpenAI 兼容 API Base URL */
10589
11051
  baseUrl: string;
10590
- headers: Record<string, string>;
10591
- timeoutMs: number;
11052
+ /** API Key */
11053
+ apiKey: string;
11054
+ model?: string;
11055
+ systemPrompt?: string;
11056
+ userPrompt?: string;
11057
+ messages?: ChatMessage[];
11058
+ temperature?: number;
11059
+ maxTokens?: number;
11060
+ topP?: number;
11061
+ stop?: string | string[];
11062
+ timeoutMs?: number;
11063
+ requestAdapter?: RequestAdapter;
10592
11064
  }
10593
- interface AiClient {
10594
- sendChat(request: AiChatRequest): Promise<AiChatResponse>;
10595
- sendMessage(content: string, options?: AiChatRequestOptions & {
10596
- systemPrompt?: string;
10597
- }): Promise<AiChatResponse>;
11065
+ interface ChatUsage {
11066
+ promptTokens?: number;
11067
+ completionTokens?: number;
11068
+ totalTokens?: number;
10598
11069
  }
10599
- type AiChatStatus = 'idle' | 'loading' | 'success' | 'error';
10600
- interface AiChatInputOptions extends AiChatRequestOptions {
10601
- template?: string;
10602
- variables?: PromptVariables;
11070
+ interface CallChatResult {
11071
+ content: string;
11072
+ model: string;
11073
+ usage?: ChatUsage;
11074
+ raw?: unknown;
10603
11075
  }
10604
- interface AiChatSessionOptions {
10605
- client: AiClient;
11076
+ /**
11077
+ * OpenAI 兼容文本对话:外部传入 URL、Key、提示词,返回模型生成内容。
11078
+ */
11079
+ declare function callChat(options: CallChatOptions): Promise<CallChatResult>;
11080
+
11081
+ interface CallCompletionParams {
10606
11082
  systemPrompt?: string;
10607
- template?: string;
10608
- initialMessages?: AiMessage[];
11083
+ userPrompt: string;
11084
+ model?: string;
11085
+ temperature?: number;
11086
+ maxTokens?: number;
11087
+ connection?: AiClientSettings;
10609
11088
  }
10610
- interface AiChatSession {
10611
- getMessages(): AiMessage[];
10612
- setSystemPrompt(prompt?: string): void;
10613
- reset(): void;
10614
- sendMessage(input: string, options?: AiChatInputOptions): Promise<AiChatResponse>;
11089
+ interface CallCompletionResult {
11090
+ content: string;
11091
+ model: string;
11092
+ raw?: unknown;
10615
11093
  }
11094
+ /**
11095
+ * 文本补全:连接信息与提示词均由调用方传入(或通过 connection 合并 env)。
11096
+ */
11097
+ declare function callCompletion(params: CallCompletionParams, clientSettings?: AiClientSettings): Promise<CallCompletionResult>;
10616
11098
 
10617
- declare const createAiClient: (config: AiClientConfig) => AiClient;
11099
+ /**
11100
+ * OpenAI 兼容多模态对话:文本 + 可选图片/语音。
11101
+ * audioStrategy=auto 时:优先 chat 内嵌音频(native),失败或未支持则 STT 转写后走文本 chat。
11102
+ */
11103
+ declare function callMultimodalChat(params: MultimodalChatParams, clientSettings?: AiClientSettings): Promise<MultimodalChatResult>;
10618
11104
 
10619
- declare const createChatSession: (options: AiChatSessionOptions) => AiChatSession;
11105
+ declare function extractJsonObject(text: string): Record<string, unknown>;
10620
11106
 
10621
- interface PromptTemplateOptions {
10622
- missingValue?: string;
10623
- preserveUnknown?: boolean;
10624
- }
10625
- declare const applyPromptTemplate: (template: string, variables?: PromptVariables, options?: PromptTemplateOptions) => string;
11107
+ declare function assertValidImageInput(image: AiImageInput, maxImageBytes?: number): void;
11108
+ declare function fileToAiImageInput(file: File): Promise<AiImageInput>;
10626
11109
 
10627
- declare const DEFAULT_OPENAI_BASE_URL = "https://api.openai.com/v1";
10628
- declare const DEFAULT_OPENAI_MODEL = "gpt-3.5-turbo";
10629
- declare const createOpenAICompatibleProvider: () => AiProvider;
11110
+ declare function mimeToAudioFormat(mimeType: string): string;
11111
+ declare function assertValidAudioInput(audio: AiAudioInput, maxAudioBytes?: number): void;
11112
+ declare function fileToAiAudioInput(file: File): Promise<AiAudioInput>;
11113
+ declare function base64ToBlob(base64: string, mimeType: string): Blob;
10630
11114
 
10631
- interface UseAiChatOptions {
10632
- client: AiClient;
10633
- systemPrompt?: string;
10634
- template?: string;
10635
- initialMessages?: AiMessage[];
10636
- }
10637
- declare const useAiChat: (options: UseAiChatOptions) => {
10638
- status: AiChatStatus;
10639
- isLoading: boolean;
10640
- error: Error | null;
10641
- messages: AiMessage[];
10642
- lastResponse: AiChatResponse | null;
10643
- sendMessage: (input: string, requestOptions?: AiChatInputOptions) => Promise<AiChatResponse>;
10644
- reset: () => void;
10645
- setSystemPrompt: (prompt?: string) => void;
11115
+ declare function splitMediaByKind(media: AiMediaInput[]): {
11116
+ images: AiMediaInput[];
11117
+ audios: AiMediaInput[];
10646
11118
  };
11119
+ declare function assertValidMultimodalMedia(media: AiMediaInput[] | undefined, limits: {
11120
+ maxImageBytes: number;
11121
+ maxAudioBytes: number;
11122
+ maxImages?: number;
11123
+ maxAudios?: number;
11124
+ }): AiMediaInput[];
11125
+
11126
+ type ResolvedAudioHandling = 'none' | 'native' | 'stt';
11127
+ declare function resolveAudioHandling(options: {
11128
+ hasAudio: boolean;
11129
+ strategy: AudioStrategy;
11130
+ model: string;
11131
+ baseUrl: string;
11132
+ }): ResolvedAudioHandling;
11133
+ declare function isAudioInputError(message: string): boolean;
11134
+ declare function appendTranscriptionsToPrompt(userPrompt: string, transcriptions: string[]): string;
10647
11135
 
10648
- type SkillInputSchema = Record<string, any>;
10649
- interface SkillExecutionContext {
10650
- messages?: AiMessage[];
10651
- logger?: AiLogger;
10652
- metadata?: Record<string, any>;
11136
+ interface TranscribeAudioOptions {
11137
+ audio: AiAudioInput;
11138
+ config: AiConnectionConfig;
11139
+ model?: string;
11140
+ language?: string;
10653
11141
  }
10654
- interface SkillDefinition<Input = any, Output = any> {
10655
- name: string;
10656
- description?: string;
10657
- inputSchema?: SkillInputSchema;
10658
- execute: (input: Input, context?: SkillExecutionContext) => Promise<Output> | Output;
10659
- }
10660
- interface SkillRegistry {
10661
- registerSkill(skill: SkillDefinition): void;
10662
- unregisterSkill(name: string): boolean;
10663
- getSkill(name: string): SkillDefinition | undefined;
10664
- listSkills(): SkillDefinition[];
10665
- executeSkill(name: string, input: any, context?: SkillExecutionContext): Promise<any>;
10666
- toToolDefinitions?(): AiToolDefinition[];
10667
- }
10668
-
10669
- declare const skillToToolDefinition: (skill: SkillDefinition) => AiToolDefinition;
10670
- declare class InMemorySkillRegistry implements SkillRegistry {
10671
- private skills;
10672
- constructor(initialSkills?: SkillDefinition[]);
10673
- registerSkill(skill: SkillDefinition): void;
10674
- unregisterSkill(name: string): boolean;
10675
- getSkill(name: string): SkillDefinition | undefined;
10676
- listSkills(): SkillDefinition[];
10677
- executeSkill(name: string, input: any, context?: SkillExecutionContext): Promise<any>;
10678
- toToolDefinitions(): AiToolDefinition[];
10679
- }
10680
- declare const createSkillRegistry: (initialSkills?: SkillDefinition[]) => InMemorySkillRegistry;
10681
-
10682
- export { type AiChatChunk, type AiChatInputOptions, type AiChatRequest, type AiChatRequestOptions, type AiChatResponse, type AiChatSession, type AiChatSessionOptions, type AiChatStatus, type AiClient, type AiClientConfig, type AiLogger, type AiMessage, type AiProvider, type AiRole, type AiToolCall, type AiToolChoice, type AiToolDefinition, type AiUsage, Dialog as AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, DialogDescription as AlertDialogDescription, DialogFooter as AlertDialogFooter, DialogHeader as AlertDialogHeader, DialogOverlay as AlertDialogOverlay, DialogPortal as AlertDialogPortal, DialogTitle as AlertDialogTitle, DialogTrigger as AlertDialogTrigger, Avatar, AvatarFallback, AvatarImage, BackButton, BackButtonProps, type BackgroundRemovalOptions, type BackgroundRemovalState, BackgroundRemover, Badge, BadgeProps, Ball, Button, ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, CollisionBalls, CollisionBallsConfig, ConfirmModal, ConfirmModalProps, ConsoleLoggerAdapter, DEFAULT_OPENAI_BASE_URL, DEFAULT_OPENAI_MODEL, Dialog, DialogClose, DialogContent, DialogContentProps, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, FilterButtonGroup, FilterButtonGroupProps, FilterOption, GenericOrderManager, GenericOrderManagerProps, Grid, GridColumns, GridGap, GridItem, GridProps, ImageMappingItem, ImageMappingPanel, ImageMappingPanelProps, ImageMappingValue, InMemorySkillRegistry, Input, Label, LocalImageMappingPanel, LocalImageMappingPanelProps, type LogEntry, LogLevel, Logger, type LoggerAdapter, type LoggerConfig, Modal, ModalProps, type OCROptions, type OCRResult, OCRScanner, type OCRState, OrderManagerOperations, OrderableItem, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, Progress, ProgressProps, type PromptTemplateOptions, type PromptVariableValue, type PromptVariables, type ResolvedAiClientConfig, ScrollArea, ScrollBar, SearchBox, SearchResultHint, SearchResultHintProps, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, SentimentAnalyzer, type SentimentOptions, type SentimentResult, type SentimentState, Separator, SeparatorProps, Dialog as Sheet, DialogClose as SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, DialogOverlay as SheetOverlay, DialogPortal as SheetPortal, SheetTitle, DialogTrigger as SheetTrigger, type SkillDefinition, type SkillExecutionContext, type SkillInputSchema, type SkillRegistry, SmartAssistant, type StorageAdapter, type StorageChangeEvent, Tabs, TabsContent, TabsList, TabsTrigger, type TextGenerationOptions, type TextGenerationState, Textarea, Timeline, TimelineConfig, TimelineItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, type UseAiChatOptions, applyPromptTemplate, arrayUtils, badgeVariants, buttonVariants, cn, index as common, createAiClient, createChatSession, createLogger, createOpenAICompatibleProvider, createSkillRegistry, debugUtils, errorUtils, fileUtils, formatTime, japaneseUtils, logger, normalizePromptVariables, skillToToolDefinition, stringUtils, useAiChat, useAsyncStorage, useBackgroundRemoval, useElectronStorage, useLocalStorage, useOCR, useSentimentAnalysis, useStorage, useTaroStorage, useTextGeneration, validators };
11142
+ declare function transcribeAudio(options: TranscribeAudioOptions): Promise<string>;
11143
+ declare function transcribeAudios(audios: AiAudioInput[], config: AiConnectionConfig, model?: string): Promise<string[]>;
11144
+
11145
+ declare function isLikelyNativeAudioChatModel(id: string): boolean;
11146
+ declare function isLikelySttModel(id: string): boolean;
11147
+ declare function filterSttModels(modelIds: string[]): string[];
11148
+ declare function pickDefaultSttModel(modelIds: string[], current?: string): string | undefined;
11149
+ declare function isLikelyVisionModel(id: string): boolean;
11150
+ declare function isKnownTextOnlyModel(id: string): boolean;
11151
+ declare function filterChatModels(modelIds: string[]): string[];
11152
+ declare function filterVisionModels(modelIds: string[]): string[];
11153
+ /** 从可用模型中挑选默认视觉模型 */
11154
+ declare function pickDefaultVisionModel(modelIds: string[], current?: string): string | undefined;
11155
+
11156
+ type VisionMessageFormat = 'openai' | 'ollama';
11157
+ declare function detectVisionMessageFormat(baseUrl: string): VisionMessageFormat;
11158
+ declare function assertVisionCapableModel(modelId: string, options?: {
11159
+ baseUrl?: string;
11160
+ hasImages?: boolean;
11161
+ }): void;
11162
+ declare function isImageUrlVariantError(message: string): boolean;
11163
+ declare function toVisionApiErrorMessage(rawMessage: string, modelId: string): string;
11164
+
11165
+ declare function buildMultimodalMessages(options: {
11166
+ systemPrompt: string;
11167
+ userPrompt: string;
11168
+ images: AiMediaInput[];
11169
+ nativeAudios: AiMediaInput[];
11170
+ format: VisionMessageFormat;
11171
+ }): Array<Record<string, unknown>>;
11172
+ declare function assertMultimodalCapableModel(modelId: string, options: {
11173
+ baseUrl?: string;
11174
+ hasImages?: boolean;
11175
+ hasNativeAudio?: boolean;
11176
+ }): void;
11177
+
11178
+ interface ListModelsResult {
11179
+ models: string[];
11180
+ visionModels: string[];
11181
+ suggestedVisionModel?: string;
11182
+ }
11183
+ declare function listOpenAiCompatibleModels(clientSettings?: AiClientSettings, currentVisionModel?: string): Promise<ListModelsResult>;
11184
+
11185
+ declare function registerAiTask<TInput, TOutput>(task: AiTaskDefinition<TInput, TOutput>): void;
11186
+ declare function getAiTask(taskId: string): AiTaskDefinition | undefined;
11187
+ declare function listAiTasks(): string[];
11188
+ declare function clearAiTasksForTest(): void;
11189
+
11190
+ declare function runAiTask<TData = unknown>(taskId: string, input: unknown, ctx?: AiTaskContext): Promise<AiApiResponse<TData>>;
11191
+
11192
+ /** 注册内置通用 AI 任务(幂等) */
11193
+ declare function registerCoreAiTasks(): void;
11194
+ /** 别名:确保 core 任务已注册 */
11195
+ declare const ensureCoreAiTasksRegistered: typeof registerCoreAiTasks;
11196
+ declare function resetCoreAiTasksForTest(): void;
11197
+
11198
+ declare const coreLlmCompletionTask: AiTaskDefinition<TextCompletionInput, TextCompletionOutput>;
11199
+
11200
+ declare const coreStructuredMultimodalTask: AiTaskDefinition<StructuredMultimodalInput, StructuredMultimodalOutput>;
11201
+
11202
+ declare const coreConnectivityTestTask: AiTaskDefinition<Record<string, never>, ConnectivityTestOutput>;
11203
+
11204
+ export { type AiApiErrorBody, type AiApiErrorCode, type AiApiResponse, type AiApiResponseMeta, type AiApiRunRequest, type AiAudioInput, type AiAudioMediaInput, type AiClientSettings, type AiConnectionConfig, type AiConnectionSettings, type AiImageInput, type AiImageMediaInput, type AiMediaInput, type AiMediaKind, type AiModelsListRequest, type AiModelsListResponse, type AiTaskContext, type AiTaskDefinition, type AiTaskRunOptions, Dialog as AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, DialogDescription as AlertDialogDescription, DialogFooter as AlertDialogFooter, DialogHeader as AlertDialogHeader, DialogOverlay as AlertDialogOverlay, DialogPortal as AlertDialogPortal, DialogTitle as AlertDialogTitle, DialogTrigger as AlertDialogTrigger, type AudioStrategy, Avatar, AvatarFallback, AvatarImage, BackButton, type BackButtonProps, type BackgroundRemovalOptions, type BackgroundRemovalState, BackgroundRemover, Badge, type BadgeProps, Ball, Button, type ButtonProps, CORE_CONNECTIVITY_TEST_TASK_ID, CORE_LLM_COMPLETION_TASK_ID, CORE_STRUCTURED_MULTIMODAL_TASK_ID, type CallChatOptions, type CallChatResult, type CallCompletionParams, type CallCompletionResult, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, type ChatMessage, type ChatRole, type ChatUsage, CollisionBalls, CollisionBallsConfig, ConfirmModal, type ConfirmModalProps, type ConnectivityTestOutput, ConsoleLoggerAdapter, DEFAULT_OPENAI_BASE_URL, DEFAULT_TEXT_MODEL, Dialog, DialogClose, DialogContent, type DialogContentProps, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, FilterButtonGroup, type FilterButtonGroupProps, type FilterOption, GenericOrderManager, type GenericOrderManagerProps, Grid, GridColumns, GridGap, GridItem, GridProps, type ImageMappingItem, ImageMappingPanel, type ImageMappingPanelProps, type ImageMappingValue, Input, type JsonRequestOptions, Label, type ListModelsResult, LocalImageMappingPanel, type LocalImageMappingPanelProps, type LogEntry, LogLevel, Logger, type LoggerAdapter, type LoggerConfig, Modal, type ModalProps, type MultimodalChatParams, type MultimodalChatResult, type OCROptions, type OCRResult, OCRScanner, type OCRState, type OrderManagerOperations, type OrderableItem, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, Progress, type ProgressProps, type ResolvedAudioHandling, ScrollArea, ScrollBar, SearchBox, SearchResultHint, type SearchResultHintProps, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, SentimentAnalyzer, type SentimentOptions, type SentimentResult, type SentimentState, Separator, type SeparatorProps, Dialog as Sheet, DialogClose as SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, DialogOverlay as SheetOverlay, DialogPortal as SheetPortal, SheetTitle, DialogTrigger as SheetTrigger, SmartAssistant, type StorageAdapter, type StorageChangeEvent, type StructuredMultimodalInput, type StructuredMultimodalOutput, Tabs, TabsContent, TabsList, TabsTrigger, type TextCompletionInput, type TextCompletionOutput, type TextGenerationOptions, type TextGenerationState, Textarea, Timeline, TimelineConfig, TimelineItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, type TranscribeAudioOptions, type VisionMessageFormat, appendTranscriptionsToPrompt, arrayUtils, assertMultimodalCapableModel, assertValidAudioInput, assertValidImageInput, assertValidMultimodalMedia, assertVisionCapableModel, badgeVariants, base64ToBlob, buildMultimodalMessages, buttonVariants, callChat, callCompletion, callMultimodalChat, clearAiTasksForTest, cn, index as common, coreConnectivityTestTask, coreLlmCompletionTask, coreStructuredMultimodalTask, createLogger, debugUtils, detectVisionMessageFormat, ensureCoreAiTasksRegistered, errorUtils, extractJsonObject, fileToAiAudioInput, fileToAiImageInput, fileUtils, filterChatModels, filterSttModels, filterVisionModels, formatTime, getAiTask, isAudioInputError, isImageUrlVariantError, isKnownTextOnlyModel, isLikelyNativeAudioChatModel, isLikelySttModel, isLikelyVisionModel, japaneseUtils, listAiTasks, listOpenAiCompatibleModels, logger, mimeToAudioFormat, pickDefaultSttModel, pickDefaultVisionModel, registerAiTask, registerCoreAiTasks, requestJson, requireAiConnectionConfig, resetCoreAiTasksForTest, resolveAiConnectionConfig, resolveAudioHandling, runAiTask, splitMediaByKind, stringUtils, toVisionApiErrorMessage, transcribeAudio, transcribeAudios, useAsyncStorage, useBackgroundRemoval, useElectronStorage, useLocalStorage, useOCR, useSentimentAnalysis, useStorage, useTaroStorage, useTextGeneration, validators };