@runlith/tagma 0.0.0-stage → 0.2.3

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 (342) hide show
  1. package/adapter/claudeHooks.d.ts +10 -0
  2. package/adapter/claudeHooks.js +4 -0
  3. package/adapter/declaration.d.ts +14 -0
  4. package/adapter/declaration.js +2 -0
  5. package/adapter/harness.d.ts +454 -0
  6. package/adapter/harness.js +2 -0
  7. package/adapter/hook.d.ts +43 -0
  8. package/adapter/hook.js +2 -0
  9. package/adapter/hostModules.d.ts +19 -0
  10. package/adapter/hostModules.js +2 -0
  11. package/adapter/loader.d.ts +10 -0
  12. package/adapter/loader.js +2 -0
  13. package/adapter/metadata.d.ts +179 -0
  14. package/adapter/metadata.js +4 -0
  15. package/adapter/payload.d.ts +19 -0
  16. package/adapter/payload.js +3 -0
  17. package/adapter/provider.d.ts +209 -0
  18. package/adapter/provider.js +2 -0
  19. package/adapter/settings.d.ts +182 -0
  20. package/adapter/settings.js +2 -0
  21. package/adapter/speech.d.ts +4 -0
  22. package/adapter/speech.js +2 -0
  23. package/host.d.ts +61223 -0
  24. package/package.json +134 -3
  25. package/plugin/Held-cvetk2wg.js +6 -0
  26. package/plugin/accountKey-t44g9avw.js +2 -0
  27. package/plugin/adapter-qdnpxs6n.js +1 -0
  28. package/plugin/anthropic-a4pdzrv2.js +2 -0
  29. package/plugin/anthropic-messages-svq0svwe.js +2 -0
  30. package/plugin/anthropic-q1xa9n0j.js +2 -0
  31. package/plugin/auth-cp8wnd0z.js +2 -0
  32. package/plugin/authStatus-d6scztz5.js +2 -0
  33. package/plugin/bundling.d.ts +30 -0
  34. package/plugin/bundling.js +2 -0
  35. package/plugin/cacheLifetime-c5mpw676.js +2 -0
  36. package/plugin/callback-server-q2asby82.js +16 -0
  37. package/plugin/capabilities-jfhf61dt.js +2 -0
  38. package/plugin/claudeHooks-edpg1e46.js +3 -0
  39. package/plugin/cli.js +21 -0
  40. package/plugin/cliStore-5s0qerr7.js +2 -0
  41. package/plugin/clientSession-tmmxm39z.js +2 -0
  42. package/plugin/codec-aa8mxqyr.js +1 -0
  43. package/plugin/connect-d7ec6kfh.js +2 -0
  44. package/plugin/contract-qn0z7r9c.js +1 -0
  45. package/plugin/credential-garn07qc.js +2 -0
  46. package/plugin/deepseek-fvdrmjr9.js +2 -0
  47. package/plugin/deepseek-sp4vxjqy.js +2 -0
  48. package/plugin/definition-0h3gqd2z.js +2 -0
  49. package/plugin/description-8xhxryaq.js +2 -0
  50. package/plugin/deviceGrant-axpyc7xr.js +2 -0
  51. package/plugin/devin-hy98d305.js +2 -0
  52. package/plugin/duplex-yexjcpv2.js +2 -0
  53. package/plugin/endpoint-0b9bsb4q.js +2 -0
  54. package/plugin/errors-kck87dpv.js +2 -0
  55. package/plugin/events-81m69vqz.js +2 -0
  56. package/plugin/events-s95ybm4g.js +2 -0
  57. package/plugin/executor-avear8af.js +2 -0
  58. package/plugin/failure-ddv4456n.js +2 -0
  59. package/plugin/framing-jnd2zm0h.js +2 -0
  60. package/plugin/grant-85r3bbqn.js +2 -0
  61. package/plugin/harness-jm3fhnwg.js +2 -0
  62. package/plugin/headers-w6p5sp18.js +2 -0
  63. package/plugin/hook-hjrk83m8.js +2 -0
  64. package/plugin/icon-044pa3y8.js +6 -0
  65. package/plugin/icon-j22svmgp.js +4 -0
  66. package/plugin/icon-ny6qbjvc.js +4 -0
  67. package/plugin/icon-pz54e8n3.js +4 -0
  68. package/plugin/icon-qy92jx2b.js +4 -0
  69. package/plugin/ids-2dndaq8y.js +2 -0
  70. package/plugin/images-s2kqebfv.js +2 -0
  71. package/plugin/index-b3yp4szm.js +2 -0
  72. package/plugin/index-xs7nfsck.js +2 -0
  73. package/plugin/lifecycle-er51apxp.js +2 -0
  74. package/plugin/manual-2mdscj84.js +2 -0
  75. package/plugin/messages-gmwcg1pq.js +2 -0
  76. package/plugin/metadata-gpazs3f5.js +4 -0
  77. package/plugin/muse-g8bc58v8.js +2 -0
  78. package/plugin/muse-tfe6sph7.js +2 -0
  79. package/plugin/museToolSchema-tbe0f3wa.js +2 -0
  80. package/plugin/notes-5m0m3pdr.js +2 -0
  81. package/plugin/object-9pjtdam7.js +2 -0
  82. package/plugin/open-browser-vqb7ckt1.js +2 -0
  83. package/plugin/openai-6f50tf64.js +2 -0
  84. package/plugin/openai-compatible-chat-eez8hkge.js +2 -0
  85. package/plugin/openai-images-haszbnft.js +2 -0
  86. package/plugin/openai-mfqwg6pa.js +2 -0
  87. package/plugin/openai-responses-1gpyp640.js +2 -0
  88. package/plugin/opencodeGo-1wgdjtjz.js +3 -0
  89. package/plugin/opencodeGo-qgw3pfg6.js +2 -0
  90. package/plugin/options-476akxaj.js +2 -0
  91. package/plugin/payload-2gr4q9g8.js +2 -0
  92. package/plugin/pkce-y3sh5pk8.js +2 -0
  93. package/plugin/plugin-0e34qaar.js +3 -0
  94. package/plugin/plugin-1vpp5mqk.js +4 -0
  95. package/plugin/plugin-1zkx860n.js +3 -0
  96. package/plugin/plugin-217mw9ck.js +3 -0
  97. package/plugin/plugin-24j9hnc7.js +3 -0
  98. package/plugin/plugin-2s6bq45c.js +3 -0
  99. package/plugin/plugin-3969dy0b.js +3 -0
  100. package/plugin/plugin-3b8x73y6.js +3 -0
  101. package/plugin/plugin-3t0qp574.js +3 -0
  102. package/plugin/plugin-55fbx586.js +3 -0
  103. package/plugin/plugin-5zq084fb.js +3 -0
  104. package/plugin/plugin-6a56xsx3.js +3 -0
  105. package/plugin/plugin-6vzw5yyr.js +3 -0
  106. package/plugin/plugin-72xxqm1t.js +3 -0
  107. package/plugin/plugin-7swap1ad.js +3 -0
  108. package/plugin/plugin-7te9b50h.js +3 -0
  109. package/plugin/plugin-7xmwhj5h.js +3 -0
  110. package/plugin/plugin-80gqwmjy.js +3 -0
  111. package/plugin/plugin-8g8myq9g.js +3 -0
  112. package/plugin/plugin-8q44b578.js +3 -0
  113. package/plugin/plugin-8v4g0q0b.js +3 -0
  114. package/plugin/plugin-8x3c401q.js +9 -0
  115. package/plugin/plugin-92sxs4r1.js +3 -0
  116. package/plugin/plugin-9gha9fx3.js +3 -0
  117. package/plugin/plugin-9zbh7788.js +3 -0
  118. package/plugin/plugin-a3vzpk4e.js +3 -0
  119. package/plugin/plugin-ak62rhwz.js +3 -0
  120. package/plugin/plugin-azkzdkpk.js +3 -0
  121. package/plugin/plugin-cydz2zhy.js +3 -0
  122. package/plugin/plugin-d28d8jar.js +4 -0
  123. package/plugin/plugin-dd951075.js +3 -0
  124. package/plugin/plugin-dqxdznvd.js +3 -0
  125. package/plugin/plugin-dsjq4tye.js +3 -0
  126. package/plugin/plugin-e5ybk2a2.js +3 -0
  127. package/plugin/plugin-eksq91yp.js +5 -0
  128. package/plugin/plugin-er1kc6f6.js +5 -0
  129. package/plugin/plugin-fjsmz1vy.js +4 -0
  130. package/plugin/plugin-fre9hdcg.js +3 -0
  131. package/plugin/plugin-g0zv4vrz.js +3 -0
  132. package/plugin/plugin-g4hst0jz.js +3 -0
  133. package/plugin/plugin-g7hrtg2p.js +3 -0
  134. package/plugin/plugin-gh857xdd.js +3 -0
  135. package/plugin/plugin-hkjxkgty.js +3 -0
  136. package/plugin/plugin-jxvmq18y.js +3 -0
  137. package/plugin/plugin-kc4z9msd.js +3 -0
  138. package/plugin/plugin-krbbb4ts.js +3 -0
  139. package/plugin/plugin-me00x60n.js +3 -0
  140. package/plugin/plugin-mqr325kz.js +3 -0
  141. package/plugin/plugin-nzacjxf9.js +3 -0
  142. package/plugin/plugin-p59gy5xd.js +3 -0
  143. package/plugin/plugin-p6x7emar.js +3 -0
  144. package/plugin/plugin-pdww1ma8.js +3 -0
  145. package/plugin/plugin-psj9935q.js +3 -0
  146. package/plugin/plugin-q6pvb1xf.js +3 -0
  147. package/plugin/plugin-r342d8zf.js +3 -0
  148. package/plugin/plugin-r7g3vqrm.js +3 -0
  149. package/plugin/plugin-rrgyjesv.js +3 -0
  150. package/plugin/plugin-t4xrq5q2.js +3 -0
  151. package/plugin/plugin-tetj2cr3.js +3 -0
  152. package/plugin/plugin-v80m00bq.js +14 -0
  153. package/plugin/plugin-vfjhxng8.js +3 -0
  154. package/plugin/plugin-vqrd05eg.js +3 -0
  155. package/plugin/plugin-w3zbkmy6.js +3 -0
  156. package/plugin/plugin-w8f977my.js +3 -0
  157. package/plugin/plugin-xbnw80pk.js +3 -0
  158. package/plugin/plugin-xfcgt5ba.js +36 -0
  159. package/plugin/plugin-y9cdpmbv.js +6 -0
  160. package/plugin/plugin-yg0h5k5d.js +3 -0
  161. package/plugin/plugin-yp736z4n.js +3 -0
  162. package/plugin/plugin-zrb8bbr4.js +3 -0
  163. package/plugin/plugin-zsv7wawc.js +3 -0
  164. package/plugin/plugin.d.ts +175 -0
  165. package/plugin/plugin.js +2 -0
  166. package/plugin/points.generated.d.ts +341 -0
  167. package/plugin/points.generated.js +2 -0
  168. package/plugin/process.d.ts +4 -0
  169. package/plugin/process.js +85 -0
  170. package/plugin/protocol-8c26dk6v.js +2 -0
  171. package/plugin/protocol.d.ts +115 -0
  172. package/plugin/protocol.js +2 -0
  173. package/plugin/provider-0b7xxyhn.js +2 -0
  174. package/plugin/quota-v63yvp13.js +2 -0
  175. package/plugin/quotaRead-esmjycnd.js +2 -0
  176. package/plugin/reasoning-1saw6tds.js +2 -0
  177. package/plugin/record-1m3vvy60.js +2 -0
  178. package/plugin/requests-2zyr1g8e.js +1 -0
  179. package/plugin/responseFold-xxhqx4sa.js +2 -0
  180. package/plugin/settings-8xq8dvhp.js +2 -0
  181. package/plugin/shared-4jndfh28.js +2 -0
  182. package/plugin/speech-067caz1a.js +2 -0
  183. package/plugin/stepfun-3en5g41d.js +2 -0
  184. package/plugin/stepfun-xp1c5wpk.js +2 -0
  185. package/plugin/stream-8yrr289z.js +2 -0
  186. package/plugin/svelteProgram-73v9yajk.js +2 -0
  187. package/plugin/synthesisDuplex-ch9jhqzt.js +2 -0
  188. package/plugin/template.d.ts +14 -0
  189. package/plugin/template.js +2 -0
  190. package/plugin/testing.d.ts +85 -0
  191. package/plugin/testing.js +4 -0
  192. package/plugin/tool-content-vean6rqa.js +2 -0
  193. package/plugin/tool-stream-fb180jmt.js +2 -0
  194. package/plugin/transport-j784dsdr.js +2 -0
  195. package/plugin/ui.generated.d.ts +1041 -0
  196. package/plugin/value.d.ts +8 -0
  197. package/plugin/value.js +2 -0
  198. package/plugin/vendor-pn6b5a8f.js +2 -0
  199. package/plugin/vendorCall-6n5chrn0.js +2 -0
  200. package/plugin/vendorCall-82evk8b3.js +2 -0
  201. package/plugin/vendorPayload-458354fv.js +2 -0
  202. package/plugin/vendorWeb-cz5t01m7.js +2 -0
  203. package/plugin/verbatim-2f2d9n02.js +2 -0
  204. package/plugin/xai-2cqraa99.js +2 -0
  205. package/plugin/xai-e8sbtk6a.js +2 -0
  206. package/rules/effect.d.ts +55 -0
  207. package/rules/effect.js +11 -0
  208. package/rules/rules.d.ts +342 -0
  209. package/rules/rules.js +50 -0
  210. package/types/node/assert/strict.d.ts +12 -0
  211. package/types/node/assert.d.ts +76 -0
  212. package/types/node/async_hooks.d.ts +113 -0
  213. package/types/node/buffer.buffer.d.ts +29 -0
  214. package/types/node/buffer.d.ts +162 -0
  215. package/types/node/child_process.d.ts +337 -0
  216. package/types/node/cluster.d.ts +118 -0
  217. package/types/node/compatibility/iterators.d.ts +11 -0
  218. package/types/node/console.d.ts +48 -0
  219. package/types/node/constants.d.ts +8 -0
  220. package/types/node/crypto.d.ts +847 -0
  221. package/types/node/dgram.d.ts +88 -0
  222. package/types/node/diagnostics_channel.d.ts +61 -0
  223. package/types/node/dns/promises.d.ts +94 -0
  224. package/types/node/dns.d.ts +276 -0
  225. package/types/node/domain.d.ts +17 -0
  226. package/types/node/events.d.ts +138 -0
  227. package/types/node/fs/promises.d.ts +253 -0
  228. package/types/node/fs.d.ts +1038 -0
  229. package/types/node/globals.d.ts +73 -0
  230. package/types/node/globals.typedarray.d.ts +22 -0
  231. package/types/node/http.d.ts +530 -0
  232. package/types/node/http2.d.ts +794 -0
  233. package/types/node/https.d.ts +66 -0
  234. package/types/node/index.d.ts +84 -0
  235. package/types/node/inspector/promises.d.ts +13 -0
  236. package/types/node/inspector.d.ts +61 -0
  237. package/types/node/inspector.generated.d.ts +1624 -0
  238. package/types/node/module.d.ts +187 -0
  239. package/types/node/net.d.ts +266 -0
  240. package/types/node/os.d.ts +236 -0
  241. package/types/node/path/posix.d.ts +8 -0
  242. package/types/node/path/win32.d.ts +8 -0
  243. package/types/node/path.d.ts +40 -0
  244. package/types/node/perf_hooks.d.ts +236 -0
  245. package/types/node/process.d.ts +436 -0
  246. package/types/node/punycode.d.ts +15 -0
  247. package/types/node/querystring.d.ts +22 -0
  248. package/types/node/quic.d.ts +203 -0
  249. package/types/node/readline/promises.d.ts +28 -0
  250. package/types/node/readline.d.ts +94 -0
  251. package/types/node/repl.d.ts +104 -0
  252. package/types/node/sea.d.ts +11 -0
  253. package/types/node/sqlite.d.ts +183 -0
  254. package/types/node/stream/consumers.d.ts +13 -0
  255. package/types/node/stream/iter.d.ts +240 -0
  256. package/types/node/stream/promises.d.ts +37 -0
  257. package/types/node/stream/web.d.ts +297 -0
  258. package/types/node/stream.d.ts +378 -0
  259. package/types/node/string_decoder.d.ts +10 -0
  260. package/types/node/test/reporters.d.ts +66 -0
  261. package/types/node/test.d.ts +462 -0
  262. package/types/node/timers/promises.d.ts +16 -0
  263. package/types/node/timers.d.ts +43 -0
  264. package/types/node/tls.d.ts +279 -0
  265. package/types/node/trace_events.d.ts +16 -0
  266. package/types/node/ts5.6/buffer.buffer.d.ts +26 -0
  267. package/types/node/ts5.6/compatibility/float16array.d.ts +43 -0
  268. package/types/node/ts5.6/globals.typedarray.d.ts +22 -0
  269. package/types/node/ts5.6/index.d.ts +84 -0
  270. package/types/node/ts5.7/compatibility/float16array.d.ts +50 -0
  271. package/types/node/ts5.7/index.d.ts +84 -0
  272. package/types/node/tty.d.ts +61 -0
  273. package/types/node/url.d.ts +165 -0
  274. package/types/node/util/types.d.ts +49 -0
  275. package/types/node/util.d.ts +320 -0
  276. package/types/node/v8.d.ts +178 -0
  277. package/types/node/vm.d.ts +130 -0
  278. package/types/node/wasi.d.ts +26 -0
  279. package/types/node/web-globals/abortcontroller.d.ts +47 -0
  280. package/types/node/web-globals/blob.d.ts +34 -0
  281. package/types/node/web-globals/console.d.ts +7 -0
  282. package/types/node/web-globals/crypto.d.ts +46 -0
  283. package/types/node/web-globals/domexception.d.ts +74 -0
  284. package/types/node/web-globals/encoding.d.ts +16 -0
  285. package/types/node/web-globals/events.d.ts +111 -0
  286. package/types/node/web-globals/fetch.d.ts +121 -0
  287. package/types/node/web-globals/importmeta.d.ts +11 -0
  288. package/types/node/web-globals/messaging.d.ts +32 -0
  289. package/types/node/web-globals/navigator.d.ts +28 -0
  290. package/types/node/web-globals/performance.d.ts +71 -0
  291. package/types/node/web-globals/storage.d.ts +26 -0
  292. package/types/node/web-globals/streams.d.ts +162 -0
  293. package/types/node/web-globals/timers.d.ts +22 -0
  294. package/types/node/web-globals/url.d.ts +27 -0
  295. package/types/node/worker_threads.d.ts +199 -0
  296. package/types/node/zlib/iter.d.ts +49 -0
  297. package/types/node/zlib.d.ts +360 -0
  298. package/types/undici/agent.d.ts +24 -0
  299. package/types/undici/api.d.ts +19 -0
  300. package/types/undici/balanced-pool.d.ts +16 -0
  301. package/types/undici/cache-interceptor.d.ts +98 -0
  302. package/types/undici/cache.d.ts +30 -0
  303. package/types/undici/client-stats.d.ts +9 -0
  304. package/types/undici/client.d.ts +61 -0
  305. package/types/undici/connector.d.ts +37 -0
  306. package/types/undici/content-type.d.ts +9 -0
  307. package/types/undici/cookies.d.ts +22 -0
  308. package/types/undici/diagnostics-channel.d.ts +72 -0
  309. package/types/undici/dispatcher.d.ts +207 -0
  310. package/types/undici/env-http-proxy-agent.d.ts +15 -0
  311. package/types/undici/errors.d.ts +117 -0
  312. package/types/undici/eventsource.d.ts +39 -0
  313. package/types/undici/fetch.d.ts +122 -0
  314. package/types/undici/formdata.d.ts +24 -0
  315. package/types/undici/global-dispatcher.d.ts +4 -0
  316. package/types/undici/global-origin.d.ts +3 -0
  317. package/types/undici/h2c-client.d.ts +35 -0
  318. package/types/undici/handlers.d.ts +7 -0
  319. package/types/undici/header.d.ts +10 -0
  320. package/types/undici/index.d.ts +85 -0
  321. package/types/undici/interceptors.d.ts +70 -0
  322. package/types/undici/mock-agent.d.ts +43 -0
  323. package/types/undici/mock-call-history.d.ts +57 -0
  324. package/types/undici/mock-client.d.ts +17 -0
  325. package/types/undici/mock-errors.d.ts +9 -0
  326. package/types/undici/mock-interceptor.d.ts +60 -0
  327. package/types/undici/mock-pool.d.ts +17 -0
  328. package/types/undici/patch.d.ts +21 -0
  329. package/types/undici/pool-stats.d.ts +11 -0
  330. package/types/undici/pool.d.ts +25 -0
  331. package/types/undici/proxy-agent.d.ts +22 -0
  332. package/types/undici/readable.d.ts +24 -0
  333. package/types/undici/retry-agent.d.ts +6 -0
  334. package/types/undici/retry-handler.d.ts +41 -0
  335. package/types/undici/round-robin-pool.d.ts +25 -0
  336. package/types/undici/snapshot-agent.d.ts +98 -0
  337. package/types/undici/socks5-proxy-agent.d.ts +17 -0
  338. package/types/undici/util.d.ts +4 -0
  339. package/types/undici/utility.d.ts +2 -0
  340. package/types/undici/webidl.d.ts +121 -0
  341. package/types/undici/websocket.d.ts +130 -0
  342. package/README.md +0 -3
@@ -0,0 +1,1041 @@
1
+ /// <reference path="../types/node/index.d.ts" />
2
+ /// <reference path="../host.d.ts" />
3
+ /// <reference lib="dom" />
4
+ import type { ViewServers, ViewTools } from "@runlith/tagma/plugin";
5
+ import type { Component, Snippet } from "@runlith/tagma/internal/../node_modules/.bun/svelte@5.57.0/node_modules/svelte/types/index";
6
+ import type { HTMLAnchorAttributes, HTMLAttributes, HTMLButtonAttributes, HTMLInputAttributes, HTMLTextareaAttributes } from "@runlith/tagma/internal/../node_modules/.bun/svelte@5.57.0/node_modules/svelte/elements";
7
+ export type TagmaView<Plugin = unknown> = {
8
+ readonly projectId: number;
9
+ readonly plugin: string;
10
+ readonly view: string;
11
+ readonly threadId: string | null;
12
+ readonly key: string | null;
13
+ } & {
14
+ readonly storage: ViewStorage;
15
+ readonly theme: {
16
+ readonly id: string;
17
+ readonly mode: "dark" | "light";
18
+ readonly terminal: {
19
+ black: string;
20
+ red: string;
21
+ green: string;
22
+ yellow: string;
23
+ blue: string;
24
+ magenta: string;
25
+ cyan: string;
26
+ white: string;
27
+ brightBlack: string;
28
+ brightRed: string;
29
+ brightGreen: string;
30
+ brightYellow: string;
31
+ brightBlue: string;
32
+ brightMagenta: string;
33
+ brightCyan: string;
34
+ brightWhite: string;
35
+ } & {
36
+ readonly background: string;
37
+ readonly foreground: string;
38
+ readonly cursor: string;
39
+ readonly cursorAccent: string;
40
+ readonly selectionBackground: string;
41
+ };
42
+ };
43
+ resource: (uri: string) => Reading<unknown>;
44
+ thread: (threadId: string) => Reading<{
45
+ readonly threadId: string;
46
+ readonly life: "awaiting" | "idle" | "stalled" | "working";
47
+ readonly runId: string | null;
48
+ readonly text: string | null;
49
+ readonly ended: string | null;
50
+ } | {
51
+ readonly threadId: string;
52
+ readonly missing: "deleted" | "foreign-project" | "not-found";
53
+ } | null>;
54
+ transcript: (threadId: string) => Transcript;
55
+ open: (opening: ViewOpening) => Promise<void>;
56
+ openLink: (url: string) => void;
57
+ } & {
58
+ readonly speech: {
59
+ status: () => Promise<{
60
+ devices: {
61
+ capabilities: {
62
+ mic: boolean;
63
+ system: boolean;
64
+ excludeSelf: boolean;
65
+ echoCancel: boolean;
66
+ muteOutput: boolean;
67
+ permissionPrompt: boolean;
68
+ };
69
+ availability: {
70
+ readonly _tag: "absent";
71
+ reason: string;
72
+ unblock: ReadonlyArray<string>;
73
+ } | {
74
+ readonly _tag: "present";
75
+ };
76
+ inputs: ReadonlyArray<{
77
+ id: string;
78
+ label: string;
79
+ }>;
80
+ permissions: {
81
+ mic: "denied" | "granted" | "not-asked" | "unknown";
82
+ system: "denied" | "granted" | "not-asked" | "unknown";
83
+ } | null;
84
+ refusal: string | null;
85
+ said: string | null;
86
+ };
87
+ detector: {
88
+ readonly _tag: "absent";
89
+ reason: string;
90
+ unblock: ReadonlyArray<string>;
91
+ } | {
92
+ readonly _tag: "present";
93
+ };
94
+ models: ReadonlyArray<{
95
+ provider: string;
96
+ model: string;
97
+ label: string;
98
+ kind: "file" | "recognition" | "synthesis";
99
+ recorded: boolean;
100
+ again: boolean;
101
+ speakers: boolean;
102
+ availability: {
103
+ readonly _tag: "absent";
104
+ reason: string;
105
+ unblock: ReadonlyArray<string>;
106
+ } | {
107
+ readonly _tag: "present";
108
+ };
109
+ turns: ReadonlyArray<"client" | "none" | "provider">;
110
+ languages: ReadonlyArray<string>;
111
+ tuning: ReadonlyArray<{
112
+ id: string;
113
+ label: string;
114
+ min: number;
115
+ max: number;
116
+ initial: number;
117
+ modes: ReadonlyArray<"client" | "none" | "provider">;
118
+ }>;
119
+ voices: ReadonlyArray<{
120
+ id: string;
121
+ label: string;
122
+ languages: ReadonlyArray<string>;
123
+ }>;
124
+ }>;
125
+ dictation: {
126
+ kind: "blocked";
127
+ reason: string;
128
+ unblock: ReadonlyArray<string>;
129
+ said: string;
130
+ } | {
131
+ kind: "ready";
132
+ provider: string;
133
+ model: string;
134
+ label: string;
135
+ };
136
+ mic: "caller" | "server";
137
+ local: ReadonlyArray<{
138
+ id: string;
139
+ label: string;
140
+ size: number;
141
+ installed: boolean;
142
+ partial: number;
143
+ received: number | null;
144
+ failure: string | null;
145
+ }>;
146
+ }>;
147
+ recognize: (ask: {
148
+ readonly recognizer?: {
149
+ model?: string;
150
+ account?: string;
151
+ provider?: string;
152
+ turns?: "client" | "none" | "provider";
153
+ languages?: ReadonlyArray<string>;
154
+ speakers?: "prefer" | boolean;
155
+ };
156
+ }, listener: {
157
+ readonly heard: (event: {
158
+ kind: "gap";
159
+ track: string;
160
+ from: number;
161
+ to: number | null;
162
+ cause: "budget" | "device-change" | "device-lost" | "handoff" | "helper-failed" | "overflow" | "recognition-failed" | "reconnect" | "transport" | "unconfirmed-tail";
163
+ message: string;
164
+ } | {
165
+ kind: "level";
166
+ track: string;
167
+ at: number;
168
+ rms: number;
169
+ peak: number;
170
+ } | {
171
+ kind: "state";
172
+ state: "live";
173
+ } | {
174
+ kind: "track";
175
+ track: string;
176
+ phase: "connecting" | "ended" | "failed" | "finished" | "live" | "waiting";
177
+ queuedMs: number | null;
178
+ retryInMs: number | null;
179
+ reason: string | null;
180
+ } | {
181
+ kind: "utterance";
182
+ track: string;
183
+ segment: number;
184
+ seq: number;
185
+ revision: number;
186
+ closed: boolean;
187
+ text: string;
188
+ hypothesis: string;
189
+ from: number | null;
190
+ to: number | null;
191
+ speaker: number | null;
192
+ }) => void;
193
+ readonly ended: (failure: string | null) => void;
194
+ }) => Promise<{
195
+ finish: () => Promise<unknown>;
196
+ stop: () => void;
197
+ }>;
198
+ speak: (ask: {
199
+ text: string;
200
+ model?: string;
201
+ provider?: string;
202
+ voice?: string;
203
+ language?: string;
204
+ }) => Promise<{
205
+ provider: string;
206
+ model: string;
207
+ voice: string;
208
+ }>;
209
+ silence: () => number;
210
+ };
211
+ } & {
212
+ readonly tools: unknown extends Plugin ? Readonly<Record<string, (input?: Readonly<Record<string, unknown>>) => Promise<unknown>>> : ViewTools<Plugin>;
213
+ readonly servers: unknown extends Plugin ? Readonly<Record<string, {
214
+ readonly call: (tool: string, input?: Readonly<Record<string, unknown>>) => Promise<{
215
+ content: ReadonlyArray<{
216
+ readonly [key: string]: unknown;
217
+ }>;
218
+ _meta?: {
219
+ readonly [key: string]: unknown;
220
+ };
221
+ isError?: boolean;
222
+ structuredContent?: {
223
+ readonly [key: string]: unknown;
224
+ };
225
+ }>;
226
+ }>> : ViewServers<Plugin>;
227
+ };
228
+ export declare const useTagma: <Plugin = unknown>() => TagmaView<Plugin>;
229
+ export { TagmaRefused } from "@runlith/tagma/plugin";
230
+ export type { ToolFace } from "@runlith/tagma/plugin";
231
+ export type ComposerFace = {
232
+ readonly thread: {
233
+ readonly id: string | null;
234
+ readonly projectId: number;
235
+ readonly life: "awaiting" | "idle" | "stalled" | "working" | null;
236
+ };
237
+ readonly draft: {
238
+ readonly text: string;
239
+ readonly setText: (text: string) => void;
240
+ readonly insert: (text: string) => void;
241
+ readonly attach: (files: ReadonlyArray<File>) => Promise<void>;
242
+ };
243
+ readonly send: () => Promise<boolean>;
244
+ };
245
+ export declare const Thread: Component<{
246
+ id: string;
247
+ }, {}, "">;
248
+ export type Reading<A> = {
249
+ readonly current: A;
250
+ readonly failure: string | null;
251
+ };
252
+ export type ThreadReading = {
253
+ readonly threadId: string;
254
+ readonly life: "awaiting" | "idle" | "stalled" | "working";
255
+ readonly runId: string | null;
256
+ readonly text: string | null;
257
+ readonly ended: string | null;
258
+ } | {
259
+ readonly threadId: string;
260
+ readonly missing: "deleted" | "foreign-project" | "not-found";
261
+ };
262
+ export type ViewOpening = {
263
+ readonly pane: string;
264
+ } | {
265
+ readonly section: string;
266
+ } | {
267
+ readonly threadId: string;
268
+ readonly beside?: boolean;
269
+ };
270
+ export type ViewStorage = {
271
+ get: (key: string) => Promise<{
272
+ readonly stored: boolean;
273
+ readonly value?: unknown;
274
+ }>;
275
+ set: (key: string, value?: unknown) => Promise<boolean>;
276
+ };
277
+ export type Transcript = {
278
+ readonly entries: ReadonlyArray<{
279
+ runId: string | null;
280
+ id: string;
281
+ role: "assistant" | "notice" | "question" | "tool" | "user";
282
+ text?: string;
283
+ question?: {
284
+ id: string;
285
+ prompts: ReadonlyArray<{
286
+ id: string;
287
+ toolCallId: string;
288
+ prompt: string;
289
+ kind?: string;
290
+ options?: ReadonlyArray<{
291
+ label: string;
292
+ value: string;
293
+ description?: string;
294
+ preview?: string;
295
+ }>;
296
+ header?: string;
297
+ secret?: boolean;
298
+ data?: {
299
+ readonly [key: string]: ReadonlyArray<Json> | boolean | number | string | {
300
+ readonly [key: string]: Json;
301
+ } | null;
302
+ };
303
+ approves?: string;
304
+ allowMultiple?: boolean;
305
+ allowFreeform?: boolean;
306
+ }>;
307
+ answered: boolean;
308
+ };
309
+ tool?: {
310
+ input: unknown;
311
+ state: "done" | "failed" | "refused" | "running";
312
+ name: string;
313
+ output?: unknown;
314
+ };
315
+ sender?: {
316
+ name: string;
317
+ threadId?: string;
318
+ };
319
+ }>;
320
+ readonly tail: ReadonlyArray<{
321
+ runId: string | null;
322
+ id: string;
323
+ role: "assistant" | "notice" | "question" | "tool" | "user";
324
+ text?: string;
325
+ question?: {
326
+ id: string;
327
+ prompts: ReadonlyArray<{
328
+ id: string;
329
+ toolCallId: string;
330
+ prompt: string;
331
+ kind?: string;
332
+ options?: ReadonlyArray<{
333
+ label: string;
334
+ value: string;
335
+ description?: string;
336
+ preview?: string;
337
+ }>;
338
+ header?: string;
339
+ secret?: boolean;
340
+ data?: {
341
+ readonly [key: string]: ReadonlyArray<Json> | boolean | number | string | {
342
+ readonly [key: string]: Json;
343
+ } | null;
344
+ };
345
+ approves?: string;
346
+ allowMultiple?: boolean;
347
+ allowFreeform?: boolean;
348
+ }>;
349
+ answered: boolean;
350
+ };
351
+ tool?: {
352
+ input: unknown;
353
+ state: "done" | "failed" | "refused" | "running";
354
+ name: string;
355
+ output?: unknown;
356
+ };
357
+ sender?: {
358
+ name: string;
359
+ threadId?: string;
360
+ };
361
+ }>;
362
+ readonly more: boolean;
363
+ readonly loaded: boolean;
364
+ readonly failure: string | null;
365
+ older: () => Promise<void>;
366
+ };
367
+ export declare const Frame: Component<{
368
+ src: string;
369
+ title: string;
370
+ height?: number | null;
371
+ fill?: boolean;
372
+ media?: boolean;
373
+ }, {}, "">;
374
+ export declare const Button: Component<HTMLButtonAttributes & {
375
+ ref?: HTMLElement | null;
376
+ } & HTMLAnchorAttributes & {
377
+ variant?: "confirm" | "default" | "destructive" | "ghost" | "link" | "outline" | "quiet" | "secondary";
378
+ size?: "default" | "icon" | "icon-sm" | "icon-xs" | "sm" | "xs";
379
+ }, {}, "ref">;
380
+ export declare const Input: Component<(Omit<HTMLInputAttributes, "type"> & {
381
+ type: "file";
382
+ files?: FileList;
383
+ } & {
384
+ ref?: HTMLElement | null;
385
+ }) | (Omit<HTMLInputAttributes, "type"> & {
386
+ type?: "button" | "checkbox" | "color" | "date" | "datetime-local" | "email" | "hidden" | "image" | "month" | "number" | "password" | "radio" | "range" | "reset" | "search" | "submit" | "tel" | "text" | "time" | "url" | "week" | (string & {});
387
+ files?: undefined;
388
+ } & {
389
+ ref?: HTMLElement | null;
390
+ }), {}, "files" | "ref" | "value">;
391
+ export declare const Textarea: Component<Omit<HTMLTextareaAttributes & {
392
+ ref?: HTMLElement | null;
393
+ }, "children">, {}, "ref" | "value">;
394
+ export declare const Tooltip: Component<{
395
+ text?: string | null;
396
+ keys?: string | null;
397
+ hints?: ReadonlyArray<{
398
+ readonly keys: string;
399
+ readonly words: string;
400
+ }>;
401
+ side?: "bottom" | "left" | "right" | "top";
402
+ delayMs?: number;
403
+ class?: Array<ClassArray | bigint | boolean | number | string | {
404
+ [key: string]: any;
405
+ } | null | undefined> | string | {
406
+ [key: string]: any;
407
+ };
408
+ style?: string;
409
+ children: Snippet;
410
+ } & Omit<HTMLAttributes<HTMLSpanElement>, "children" | "class" | "style">, {}, "">;
411
+ export declare const Kbd: Component<{
412
+ chord: string;
413
+ size?: "md" | "sm";
414
+ class?: Array<ClassArray | bigint | boolean | number | string | {
415
+ [key: string]: any;
416
+ } | null | undefined> | string | {
417
+ [key: string]: any;
418
+ };
419
+ }, {}, "">;
420
+ export declare const FadeText: Component<{
421
+ text?: string;
422
+ children?: Snippet;
423
+ fade?: "end" | "start";
424
+ } & Omit<HTMLAttributes<HTMLSpanElement>, "children">, {}, "">;
425
+ export declare const PathText: Component<{
426
+ path: string;
427
+ suffix?: string;
428
+ directory?: "after" | "before" | "none";
429
+ nameClass?: string;
430
+ directoryClass?: string;
431
+ onDirectory?: (() => void);
432
+ directoryTitle?: string;
433
+ piece?: Snippet<[
434
+ from: number,
435
+ to: number
436
+ ]>;
437
+ } & Omit<HTMLAttributes<HTMLSpanElement>, "children">, {}, "">;
438
+ export declare const Glyph: Component<{
439
+ class?: string;
440
+ children: Snippet;
441
+ }, {}, "">;
442
+ export declare const TileMeter: Component<{
443
+ count: number;
444
+ lit: number;
445
+ fill?: string;
446
+ track?: "filled" | "none" | "outlined";
447
+ class?: Array<ClassArray | bigint | boolean | number | string | {
448
+ [key: string]: any;
449
+ } | null | undefined> | string | {
450
+ [key: string]: any;
451
+ };
452
+ }, {}, "">;
453
+ export declare namespace DropdownMenu {
454
+ const CheckboxItem: Component<(Omit<HTMLAttributes<HTMLDivElement>, "children" | "onclick"> & {
455
+ checked?: boolean;
456
+ indeterminate?: boolean;
457
+ onCheckedChange?: ((checked: boolean) => void);
458
+ disabled?: boolean;
459
+ closeOnSelect?: boolean;
460
+ textValue?: string;
461
+ tail?: Snippet;
462
+ children?: Snippet;
463
+ } & {
464
+ readonly icon: Component<{
465
+ class?: string;
466
+ }>;
467
+ readonly lead?: undefined;
468
+ }) | (Omit<HTMLAttributes<HTMLDivElement>, "children" | "onclick"> & {
469
+ checked?: boolean;
470
+ indeterminate?: boolean;
471
+ onCheckedChange?: ((checked: boolean) => void);
472
+ disabled?: boolean;
473
+ closeOnSelect?: boolean;
474
+ textValue?: string;
475
+ tail?: Snippet;
476
+ children?: Snippet;
477
+ } & {
478
+ readonly icon?: undefined;
479
+ readonly lead?: undefined;
480
+ }) | (Omit<HTMLAttributes<HTMLDivElement>, "children" | "onclick"> & {
481
+ checked?: boolean;
482
+ indeterminate?: boolean;
483
+ onCheckedChange?: ((checked: boolean) => void);
484
+ disabled?: boolean;
485
+ closeOnSelect?: boolean;
486
+ textValue?: string;
487
+ tail?: Snippet;
488
+ children?: Snippet;
489
+ } & {
490
+ readonly lead: Snippet;
491
+ readonly icon?: undefined;
492
+ }), {}, "checked">;
493
+ const Content: Component<HTMLAttributes<HTMLDivElement> & {
494
+ readonly anchor?: HTMLElement | {
495
+ readonly x: number;
496
+ readonly y: number;
497
+ } | {
498
+ rect: () => {
499
+ readonly x: number;
500
+ readonly y: number;
501
+ readonly width: number;
502
+ readonly height: number;
503
+ };
504
+ readonly element: Element;
505
+ };
506
+ readonly returnFocus?: (() => HTMLElement | null) | false;
507
+ readonly dismissOnFocusOutside?: boolean;
508
+ readonly side?: "bottom" | "left" | "right" | "top";
509
+ readonly align?: "center" | "end" | "start";
510
+ readonly sideOffset?: number;
511
+ readonly alignOffset?: number;
512
+ readonly collisionPadding?: number | {
513
+ readonly top?: number;
514
+ readonly right?: number;
515
+ readonly bottom?: number;
516
+ readonly left?: number;
517
+ };
518
+ } & {
519
+ portal?: HTMLElement;
520
+ }, {}, "">;
521
+ const Group: Component<HTMLAttributes<HTMLDivElement>, {}, "">;
522
+ const GroupHeading: Component<Omit<HTMLAttributes<HTMLDivElement>, "children"> & {
523
+ children?: Snippet;
524
+ }, {}, "">;
525
+ const Item: Component<(Omit<HTMLAttributes<HTMLDivElement>, "children" | "onclick"> & {
526
+ readonly closeOnSelect?: boolean;
527
+ readonly onSelect?: ((event: Event) => void);
528
+ readonly disabled?: boolean;
529
+ readonly textValue?: string;
530
+ } & {
531
+ variant?: "default" | "destructive";
532
+ children?: Snippet;
533
+ } & {
534
+ readonly unstyled: true;
535
+ readonly icon?: undefined;
536
+ readonly lead?: undefined;
537
+ } & {} & {
538
+ tail?: undefined;
539
+ keys?: undefined;
540
+ hint?: undefined;
541
+ here?: undefined;
542
+ current?: undefined;
543
+ }) | (Omit<HTMLAttributes<HTMLDivElement>, "children" | "onclick"> & {
544
+ readonly closeOnSelect?: boolean;
545
+ readonly onSelect?: ((event: Event) => void);
546
+ readonly disabled?: boolean;
547
+ readonly textValue?: string;
548
+ } & {
549
+ variant?: "default" | "destructive";
550
+ children?: Snippet;
551
+ } & {
552
+ unstyled?: false;
553
+ } & {
554
+ readonly icon: Component<{
555
+ class?: string;
556
+ }>;
557
+ readonly lead?: undefined;
558
+ } & {
559
+ current?: string | null;
560
+ } & {
561
+ tail?: undefined;
562
+ keys?: undefined;
563
+ hint?: undefined;
564
+ here?: undefined;
565
+ }) | (Omit<HTMLAttributes<HTMLDivElement>, "children" | "onclick"> & {
566
+ readonly closeOnSelect?: boolean;
567
+ readonly onSelect?: ((event: Event) => void);
568
+ readonly disabled?: boolean;
569
+ readonly textValue?: string;
570
+ } & {
571
+ variant?: "default" | "destructive";
572
+ children?: Snippet;
573
+ } & {
574
+ unstyled?: false;
575
+ } & {
576
+ readonly icon: Component<{
577
+ class?: string;
578
+ }>;
579
+ readonly lead?: undefined;
580
+ } & {
581
+ here?: boolean;
582
+ } & {
583
+ tail?: undefined;
584
+ keys?: undefined;
585
+ hint?: undefined;
586
+ current?: undefined;
587
+ }) | (Omit<HTMLAttributes<HTMLDivElement>, "children" | "onclick"> & {
588
+ readonly closeOnSelect?: boolean;
589
+ readonly onSelect?: ((event: Event) => void);
590
+ readonly disabled?: boolean;
591
+ readonly textValue?: string;
592
+ } & {
593
+ variant?: "default" | "destructive";
594
+ children?: Snippet;
595
+ } & {
596
+ unstyled?: false;
597
+ } & {
598
+ readonly icon: Component<{
599
+ class?: string;
600
+ }>;
601
+ readonly lead?: undefined;
602
+ } & {
603
+ hint?: string;
604
+ } & {
605
+ tail?: undefined;
606
+ keys?: undefined;
607
+ here?: undefined;
608
+ current?: undefined;
609
+ }) | (Omit<HTMLAttributes<HTMLDivElement>, "children" | "onclick"> & {
610
+ readonly closeOnSelect?: boolean;
611
+ readonly onSelect?: ((event: Event) => void);
612
+ readonly disabled?: boolean;
613
+ readonly textValue?: string;
614
+ } & {
615
+ variant?: "default" | "destructive";
616
+ children?: Snippet;
617
+ } & {
618
+ unstyled?: false;
619
+ } & {
620
+ readonly icon: Component<{
621
+ class?: string;
622
+ }>;
623
+ readonly lead?: undefined;
624
+ } & {
625
+ keys?: string | null;
626
+ } & {
627
+ tail?: undefined;
628
+ hint?: undefined;
629
+ here?: undefined;
630
+ current?: undefined;
631
+ }) | (Omit<HTMLAttributes<HTMLDivElement>, "children" | "onclick"> & {
632
+ readonly closeOnSelect?: boolean;
633
+ readonly onSelect?: ((event: Event) => void);
634
+ readonly disabled?: boolean;
635
+ readonly textValue?: string;
636
+ } & {
637
+ variant?: "default" | "destructive";
638
+ children?: Snippet;
639
+ } & {
640
+ unstyled?: false;
641
+ } & {
642
+ readonly icon: Component<{
643
+ class?: string;
644
+ }>;
645
+ readonly lead?: undefined;
646
+ } & {
647
+ tail?: Snippet;
648
+ } & {
649
+ keys?: undefined;
650
+ hint?: undefined;
651
+ here?: undefined;
652
+ current?: undefined;
653
+ }) | (Omit<HTMLAttributes<HTMLDivElement>, "children" | "onclick"> & {
654
+ readonly closeOnSelect?: boolean;
655
+ readonly onSelect?: ((event: Event) => void);
656
+ readonly disabled?: boolean;
657
+ readonly textValue?: string;
658
+ } & {
659
+ variant?: "default" | "destructive";
660
+ children?: Snippet;
661
+ } & {
662
+ unstyled?: false;
663
+ } & {
664
+ readonly lead: Snippet;
665
+ readonly icon?: undefined;
666
+ } & {
667
+ current?: string | null;
668
+ } & {
669
+ tail?: undefined;
670
+ keys?: undefined;
671
+ hint?: undefined;
672
+ here?: undefined;
673
+ }) | (Omit<HTMLAttributes<HTMLDivElement>, "children" | "onclick"> & {
674
+ readonly closeOnSelect?: boolean;
675
+ readonly onSelect?: ((event: Event) => void);
676
+ readonly disabled?: boolean;
677
+ readonly textValue?: string;
678
+ } & {
679
+ variant?: "default" | "destructive";
680
+ children?: Snippet;
681
+ } & {
682
+ unstyled?: false;
683
+ } & {
684
+ readonly lead: Snippet;
685
+ readonly icon?: undefined;
686
+ } & {
687
+ here?: boolean;
688
+ } & {
689
+ tail?: undefined;
690
+ keys?: undefined;
691
+ hint?: undefined;
692
+ current?: undefined;
693
+ }) | (Omit<HTMLAttributes<HTMLDivElement>, "children" | "onclick"> & {
694
+ readonly closeOnSelect?: boolean;
695
+ readonly onSelect?: ((event: Event) => void);
696
+ readonly disabled?: boolean;
697
+ readonly textValue?: string;
698
+ } & {
699
+ variant?: "default" | "destructive";
700
+ children?: Snippet;
701
+ } & {
702
+ unstyled?: false;
703
+ } & {
704
+ readonly lead: Snippet;
705
+ readonly icon?: undefined;
706
+ } & {
707
+ hint?: string;
708
+ } & {
709
+ tail?: undefined;
710
+ keys?: undefined;
711
+ here?: undefined;
712
+ current?: undefined;
713
+ }) | (Omit<HTMLAttributes<HTMLDivElement>, "children" | "onclick"> & {
714
+ readonly closeOnSelect?: boolean;
715
+ readonly onSelect?: ((event: Event) => void);
716
+ readonly disabled?: boolean;
717
+ readonly textValue?: string;
718
+ } & {
719
+ variant?: "default" | "destructive";
720
+ children?: Snippet;
721
+ } & {
722
+ unstyled?: false;
723
+ } & {
724
+ readonly lead: Snippet;
725
+ readonly icon?: undefined;
726
+ } & {
727
+ keys?: string | null;
728
+ } & {
729
+ tail?: undefined;
730
+ hint?: undefined;
731
+ here?: undefined;
732
+ current?: undefined;
733
+ }) | (Omit<HTMLAttributes<HTMLDivElement>, "children" | "onclick"> & {
734
+ readonly closeOnSelect?: boolean;
735
+ readonly onSelect?: ((event: Event) => void);
736
+ readonly disabled?: boolean;
737
+ readonly textValue?: string;
738
+ } & {
739
+ variant?: "default" | "destructive";
740
+ children?: Snippet;
741
+ } & {
742
+ unstyled?: false;
743
+ } & {
744
+ readonly lead: Snippet;
745
+ readonly icon?: undefined;
746
+ } & {
747
+ tail?: Snippet;
748
+ } & {
749
+ keys?: undefined;
750
+ hint?: undefined;
751
+ here?: undefined;
752
+ current?: undefined;
753
+ }), {}, "">;
754
+ const Label: Component<Omit<HTMLAttributes<HTMLDivElement>, "children"> & {
755
+ lead?: Snippet;
756
+ children?: Snippet;
757
+ }, {}, "">;
758
+ const Note: Component<Omit<HTMLAttributes<HTMLDivElement>, "children"> & {
759
+ text?: string;
760
+ tone?: "destructive" | "muted";
761
+ children?: Snippet;
762
+ }, {}, "">;
763
+ const RadioGroup: Component<HTMLAttributes<HTMLDivElement> & {
764
+ value?: string;
765
+ onValueChange?: ((value: string) => void);
766
+ }, {}, "value">;
767
+ const RadioItem: Component<(Omit<HTMLAttributes<HTMLDivElement>, "children" | "onclick"> & {
768
+ value: string;
769
+ disabled?: boolean;
770
+ closeOnSelect?: boolean;
771
+ textValue?: string;
772
+ children?: Snippet;
773
+ } & {
774
+ readonly icon: Component<{
775
+ class?: string;
776
+ }>;
777
+ readonly lead?: undefined;
778
+ }) | (Omit<HTMLAttributes<HTMLDivElement>, "children" | "onclick"> & {
779
+ value: string;
780
+ disabled?: boolean;
781
+ closeOnSelect?: boolean;
782
+ textValue?: string;
783
+ children?: Snippet;
784
+ } & {
785
+ readonly icon?: undefined;
786
+ readonly lead?: undefined;
787
+ }) | (Omit<HTMLAttributes<HTMLDivElement>, "children" | "onclick"> & {
788
+ value: string;
789
+ disabled?: boolean;
790
+ closeOnSelect?: boolean;
791
+ textValue?: string;
792
+ children?: Snippet;
793
+ } & {
794
+ readonly lead: Snippet;
795
+ readonly icon?: undefined;
796
+ }), {}, "">;
797
+ const Root: Component<{
798
+ open?: boolean;
799
+ onOpenChange?: ((open: boolean) => void);
800
+ children: Snippet;
801
+ }, {}, "open">;
802
+ const Separator: Component<HTMLAttributes<HTMLDivElement> & {
803
+ unstyled?: boolean;
804
+ }, {}, "">;
805
+ const Sub: Component<{
806
+ open?: boolean;
807
+ onOpenChange?: ((open: boolean) => void);
808
+ children: Snippet;
809
+ }, {}, "open">;
810
+ const SubContent: Component<HTMLAttributes<HTMLDivElement> & {
811
+ readonly side?: "bottom" | "left" | "right" | "top";
812
+ readonly align?: "center" | "end" | "start";
813
+ readonly sideOffset?: number;
814
+ readonly alignOffset?: number;
815
+ readonly collisionPadding?: number | {
816
+ readonly top?: number;
817
+ readonly right?: number;
818
+ readonly bottom?: number;
819
+ readonly left?: number;
820
+ };
821
+ }, {}, "">;
822
+ const SubTrigger: Component<(Omit<HTMLAttributes<HTMLDivElement>, "children" | "onclick"> & {
823
+ disabled?: boolean;
824
+ textValue?: string;
825
+ children?: Snippet;
826
+ } & {
827
+ unstyled: true;
828
+ icon?: undefined;
829
+ lead?: undefined;
830
+ current?: undefined;
831
+ }) | (Omit<HTMLAttributes<HTMLDivElement>, "children" | "onclick"> & {
832
+ disabled?: boolean;
833
+ textValue?: string;
834
+ children?: Snippet;
835
+ } & {
836
+ unstyled?: false;
837
+ current?: string | null;
838
+ } & {
839
+ readonly icon: Component<{
840
+ class?: string;
841
+ }>;
842
+ readonly lead?: undefined;
843
+ }) | (Omit<HTMLAttributes<HTMLDivElement>, "children" | "onclick"> & {
844
+ disabled?: boolean;
845
+ textValue?: string;
846
+ children?: Snippet;
847
+ } & {
848
+ unstyled?: false;
849
+ current?: string | null;
850
+ } & {
851
+ readonly lead: Snippet;
852
+ readonly icon?: undefined;
853
+ }), {}, "">;
854
+ const Trigger: Component<HTMLButtonAttributes, {}, "">;
855
+ }
856
+ export declare namespace Dialog {
857
+ const Root: Component<{
858
+ open?: boolean;
859
+ interactOutsideBehavior?: "close" | "ignore";
860
+ escapeKeydownBehavior?: "close" | "ignore";
861
+ motion?: {
862
+ overlay?: {
863
+ durationMs?: number;
864
+ easing?: ((t: number) => number);
865
+ };
866
+ content?: {
867
+ variant?: "scale" | "sheet";
868
+ durationMs?: number;
869
+ easing?: ((t: number) => number);
870
+ startScale?: number;
871
+ startOpacity?: number;
872
+ startYpx?: number;
873
+ startXPercent?: number;
874
+ startYPercent?: number;
875
+ startInlinePercent?: number;
876
+ };
877
+ };
878
+ overlayKey?: string;
879
+ announced?: boolean;
880
+ onOpenChange?: ((open: boolean) => void);
881
+ onEscapeIgnored?: (() => void);
882
+ children: Snippet;
883
+ }, {}, "open">;
884
+ const Title: Component<HTMLAttributes<HTMLHeadingElement> & {
885
+ children: Snippet;
886
+ }, {}, "">;
887
+ const Portal: Component<{
888
+ disabled?: boolean;
889
+ target?: HTMLElement;
890
+ children: Snippet;
891
+ }, {}, "">;
892
+ const Footer: Component<HTMLAttributes<HTMLDivElement> & {
893
+ ref?: HTMLElement | null;
894
+ } & {
895
+ showCloseButton?: boolean;
896
+ }, {}, "ref">;
897
+ const Header: Component<HTMLAttributes<HTMLDivElement> & {
898
+ ref?: HTMLElement | null;
899
+ }, {}, "ref">;
900
+ const Trigger: Component<HTMLButtonAttributes & {
901
+ ref?: HTMLButtonElement | null;
902
+ children?: Snippet;
903
+ }, {}, "ref">;
904
+ const Overlay: Component<HTMLAttributes<HTMLDivElement> & {
905
+ ref?: HTMLDivElement | null;
906
+ }, {}, "ref">;
907
+ const Content: Component<HTMLAttributes<HTMLDivElement> & {
908
+ ref?: HTMLDivElement | null;
909
+ children: Snippet;
910
+ motion?: {
911
+ variant?: "scale" | "sheet";
912
+ durationMs?: number;
913
+ easing?: ((t: number) => number);
914
+ startScale?: number;
915
+ startOpacity?: number;
916
+ startYpx?: number;
917
+ startXPercent?: number;
918
+ startYPercent?: number;
919
+ startInlinePercent?: number;
920
+ };
921
+ onCloseComplete?: (() => void);
922
+ onPresent?: (() => void);
923
+ role?: "alertdialog" | "dialog";
924
+ } & {
925
+ portalProps?: {
926
+ disabled?: boolean;
927
+ target?: HTMLElement;
928
+ children: Snippet;
929
+ };
930
+ children: Snippet;
931
+ showCloseButton?: boolean;
932
+ }, {}, "ref">;
933
+ const Description: Component<HTMLAttributes<HTMLParagraphElement> & {
934
+ children: Snippet;
935
+ }, {}, "">;
936
+ const Close: Component<Omit<HTMLButtonAttributes, "onclick"> & {
937
+ onclick?: ((event: MouseEvent) => void);
938
+ child?: Snippet<[
939
+ {
940
+ props: Record<string, unknown>;
941
+ }
942
+ ]>;
943
+ children?: Snippet;
944
+ dataSlot?: string;
945
+ }, {}, "">;
946
+ const Dialog: Component<{
947
+ open?: boolean;
948
+ interactOutsideBehavior?: "close" | "ignore";
949
+ escapeKeydownBehavior?: "close" | "ignore";
950
+ motion?: {
951
+ overlay?: {
952
+ durationMs?: number;
953
+ easing?: ((t: number) => number);
954
+ };
955
+ content?: {
956
+ variant?: "scale" | "sheet";
957
+ durationMs?: number;
958
+ easing?: ((t: number) => number);
959
+ startScale?: number;
960
+ startOpacity?: number;
961
+ startYpx?: number;
962
+ startXPercent?: number;
963
+ startYPercent?: number;
964
+ startInlinePercent?: number;
965
+ };
966
+ };
967
+ overlayKey?: string;
968
+ announced?: boolean;
969
+ onOpenChange?: ((open: boolean) => void);
970
+ onEscapeIgnored?: (() => void);
971
+ children: Snippet;
972
+ }, {}, "open">;
973
+ const DialogTitle: Component<HTMLAttributes<HTMLHeadingElement> & {
974
+ children: Snippet;
975
+ }, {}, "">;
976
+ const DialogPortal: Component<{
977
+ disabled?: boolean;
978
+ target?: HTMLElement;
979
+ children: Snippet;
980
+ }, {}, "">;
981
+ const DialogFooter: Component<HTMLAttributes<HTMLDivElement> & {
982
+ ref?: HTMLElement | null;
983
+ } & {
984
+ showCloseButton?: boolean;
985
+ }, {}, "ref">;
986
+ const DialogHeader: Component<HTMLAttributes<HTMLDivElement> & {
987
+ ref?: HTMLElement | null;
988
+ }, {}, "ref">;
989
+ const DialogTrigger: Component<HTMLButtonAttributes & {
990
+ ref?: HTMLButtonElement | null;
991
+ children?: Snippet;
992
+ }, {}, "ref">;
993
+ const DialogOverlay: Component<HTMLAttributes<HTMLDivElement> & {
994
+ ref?: HTMLDivElement | null;
995
+ }, {}, "ref">;
996
+ const DialogContent: Component<HTMLAttributes<HTMLDivElement> & {
997
+ ref?: HTMLDivElement | null;
998
+ children: Snippet;
999
+ motion?: {
1000
+ variant?: "scale" | "sheet";
1001
+ durationMs?: number;
1002
+ easing?: ((t: number) => number);
1003
+ startScale?: number;
1004
+ startOpacity?: number;
1005
+ startYpx?: number;
1006
+ startXPercent?: number;
1007
+ startYPercent?: number;
1008
+ startInlinePercent?: number;
1009
+ };
1010
+ onCloseComplete?: (() => void);
1011
+ onPresent?: (() => void);
1012
+ role?: "alertdialog" | "dialog";
1013
+ } & {
1014
+ portalProps?: {
1015
+ disabled?: boolean;
1016
+ target?: HTMLElement;
1017
+ children: Snippet;
1018
+ };
1019
+ children: Snippet;
1020
+ showCloseButton?: boolean;
1021
+ }, {}, "ref">;
1022
+ const DialogDescription: Component<HTMLAttributes<HTMLParagraphElement> & {
1023
+ children: Snippet;
1024
+ }, {}, "">;
1025
+ const DialogClose: Component<Omit<HTMLButtonAttributes, "onclick"> & {
1026
+ onclick?: ((event: MouseEvent) => void);
1027
+ child?: Snippet<[
1028
+ {
1029
+ props: Record<string, unknown>;
1030
+ }
1031
+ ]>;
1032
+ children?: Snippet;
1033
+ dataSlot?: string;
1034
+ }, {}, "">;
1035
+ }
1036
+ type Json = ReadonlyArray<Json> | boolean | number | string | {
1037
+ readonly [key: string]: Json;
1038
+ } | null;
1039
+ type ClassArray = Array<ClassArray | bigint | boolean | number | string | {
1040
+ [key: string]: any;
1041
+ } | null | undefined>;