effect-browser 0.3.0-beta.23 → 0.3.0-beta.25

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 (348) hide show
  1. package/README.md +437 -142
  2. package/dist/Action.d.mts +1 -1
  3. package/dist/Action.mjs +61 -9
  4. package/dist/Action.mjs.map +1 -1
  5. package/dist/Browser.d.mts +2 -2
  6. package/dist/Browser.mjs +2 -2
  7. package/dist/BrowserError.d.mts +2 -2
  8. package/dist/BrowserError.mjs +194 -41
  9. package/dist/BrowserError.mjs.map +1 -1
  10. package/dist/BrowserEvent.d.mts +2 -2
  11. package/dist/BrowserEvent.mjs +185 -35
  12. package/dist/BrowserEvent.mjs.map +1 -1
  13. package/dist/Cdp.d.mts +15 -0
  14. package/dist/Cdp.mjs +22 -0
  15. package/dist/Cdp.mjs.map +1 -0
  16. package/dist/Change.d.mts +2 -2
  17. package/dist/Change.mjs +40 -7
  18. package/dist/Change.mjs.map +1 -1
  19. package/dist/Frame.d.mts +2 -2
  20. package/dist/Frame.mjs +132 -14
  21. package/dist/Frame.mjs.map +1 -1
  22. package/dist/InputStyle.d.mts +153 -0
  23. package/dist/InputStyle.mjs +2 -0
  24. package/dist/Layout.d.mts +2 -0
  25. package/dist/Layout.mjs +123 -0
  26. package/dist/Layout.mjs.map +1 -0
  27. package/dist/Overlay.d.mts +2 -0
  28. package/dist/Overlay.mjs +58 -0
  29. package/dist/Overlay.mjs.map +1 -0
  30. package/dist/Page.d.mts +2 -2
  31. package/dist/Page.mjs +2 -2
  32. package/dist/PageTime.d.mts +2 -0
  33. package/dist/PageTime.mjs +17 -0
  34. package/dist/PageTime.mjs.map +1 -0
  35. package/dist/Pose.d.mts +2 -0
  36. package/dist/Pose.mjs +65 -0
  37. package/dist/Pose.mjs.map +1 -0
  38. package/dist/Site.d.mts +984 -0
  39. package/dist/Site.mjs +110 -0
  40. package/dist/Site.mjs.map +1 -0
  41. package/dist/Snapshot.d.mts +2 -2
  42. package/dist/Snapshot.mjs +87 -6
  43. package/dist/Snapshot.mjs.map +1 -1
  44. package/dist/Text.d.mts +2 -0
  45. package/dist/Text.mjs +45 -0
  46. package/dist/Text.mjs.map +1 -0
  47. package/dist/Window.d.mts +2 -2
  48. package/dist/Window.mjs +31 -6
  49. package/dist/Window.mjs.map +1 -1
  50. package/dist/ai/BrowserTools.d.mts +4987 -0
  51. package/dist/ai/BrowserTools.mjs +3 -0
  52. package/dist/ai/PageControl.d.mts +286 -0
  53. package/dist/ai/PageControl.mjs +426 -0
  54. package/dist/ai/PageControl.mjs.map +1 -0
  55. package/dist/ai/PromptCache.d.mts +16 -0
  56. package/dist/ai/PromptCache.mjs +72 -0
  57. package/dist/ai/PromptCache.mjs.map +1 -0
  58. package/dist/ai/Tabs.d.mts +2 -0
  59. package/dist/ai/Tabs.mjs +72 -0
  60. package/dist/ai/Tabs.mjs.map +1 -0
  61. package/dist/ai/ToolError.d.mts +34 -0
  62. package/dist/ai/ToolError.mjs +2 -0
  63. package/dist/ai/index.d.mts +6 -0
  64. package/dist/ai/index.mjs +6 -0
  65. package/dist/index.d.mts +7 -15
  66. package/dist/index.mjs +9 -8
  67. package/dist/{Action-24sLOubi.d.mts → internal/Action-CkanNTUw.d.mts} +64 -4
  68. package/dist/{Browser-wZhwZSlG.d.mts → internal/Browser-DD9Vm1c-.d.mts} +80 -10
  69. package/dist/{Browser-BKPAbyys.mjs → internal/Browser-vzD7i2oj.mjs} +658 -495
  70. package/dist/internal/Browser-vzD7i2oj.mjs.map +1 -0
  71. package/dist/{BrowserError-BlcmLVzn.d.mts → internal/BrowserError-CsuRYcDX.d.mts} +187 -28
  72. package/dist/{BrowserEvent-lLqJ3GJS.d.mts → internal/BrowserEvent-tGPYYf6R.d.mts} +197 -18
  73. package/dist/internal/BrowserTools-Yi3lOX4h.mjs +497 -0
  74. package/dist/internal/BrowserTools-Yi3lOX4h.mjs.map +1 -0
  75. package/dist/{Style-AO4V7Czt.mjs → internal/InputStyle-CPzxoN4g.mjs} +94 -16
  76. package/dist/internal/InputStyle-CPzxoN4g.mjs.map +1 -0
  77. package/dist/{moment/Moment.mjs → internal/Moment-CstaX1mR.mjs} +49 -16
  78. package/dist/internal/Moment-CstaX1mR.mjs.map +1 -0
  79. package/dist/{moment/Moment.d.mts → internal/Moment-DOcldBdf.d.mts} +54 -21
  80. package/dist/internal/Page-BfGxn7oN.d.mts +1553 -0
  81. package/dist/{Page-BF5izr8R.mjs → internal/Page-DqF-tuTx.mjs} +62 -72
  82. package/dist/internal/Page-DqF-tuTx.mjs.map +1 -0
  83. package/dist/internal/Release-CFONkPDP.d.mts +39 -0
  84. package/dist/internal/Stage-D5ymSXDT.mjs +298 -0
  85. package/dist/internal/Stage-D5ymSXDT.mjs.map +1 -0
  86. package/dist/internal/Stillness-DCPeAN1a.mjs +1124 -0
  87. package/dist/internal/Stillness-DCPeAN1a.mjs.map +1 -0
  88. package/dist/internal/Supervisor-BcY_QNIY.d.mts +108 -0
  89. package/dist/internal/Supervisor-BcglY23c.mjs +531 -0
  90. package/dist/internal/Supervisor-BcglY23c.mjs.map +1 -0
  91. package/dist/internal/Tabs-dXMscIUQ.d.mts +52 -0
  92. package/dist/internal/TestPage-CYiYbh63.d.mts +159 -0
  93. package/dist/internal/ToolError-DArsRS2m.mjs +117 -0
  94. package/dist/internal/ToolError-DArsRS2m.mjs.map +1 -0
  95. package/dist/{plan/index.d.mts → internal/Walk-BNXcfZ2z.d.mts} +59 -35
  96. package/dist/{plan/index.mjs → internal/Walk-C5ky7uSf.mjs} +83 -51
  97. package/dist/internal/Walk-C5ky7uSf.mjs.map +1 -0
  98. package/dist/{ActionPort.mjs → internal/action-port-B5EkeGOR.mjs} +6 -12
  99. package/dist/internal/action-port-B5EkeGOR.mjs.map +1 -0
  100. package/dist/internal/cdp/workerd.d.mts +13 -0
  101. package/dist/internal/cdp/workerd.mjs +19 -0
  102. package/dist/internal/cdp/workerd.mjs.map +1 -0
  103. package/dist/{Clock.mjs → internal/clock-BKSAEf00.mjs} +13 -13
  104. package/dist/internal/clock-BKSAEf00.mjs.map +1 -0
  105. package/dist/{connection-2KHI4_KN.d.mts → internal/connection-BaB0vp1o.d.mts} +6 -6
  106. package/dist/{connection-CK83pvqP.mjs → internal/connection-C2X4GmXM.mjs} +19 -15
  107. package/dist/internal/connection-C2X4GmXM.mjs.map +1 -0
  108. package/dist/internal/events-DzCrww-y.mjs +72 -0
  109. package/dist/internal/events-DzCrww-y.mjs.map +1 -0
  110. package/dist/internal/fold.inpage-CyVZQHZL.d.mts +49 -0
  111. package/dist/internal/fold.inpage-uhrT-dOB.mjs +49 -0
  112. package/dist/internal/fold.inpage-uhrT-dOB.mjs.map +1 -0
  113. package/dist/internal/functions-jBOs6GKv.mjs +27 -0
  114. package/dist/internal/functions-jBOs6GKv.mjs.map +1 -0
  115. package/dist/{Geometry-DJx9qrYy.d.mts → internal/geometry-Dhj_ztJs.d.mts} +3 -3
  116. package/dist/{Geometry.mjs → internal/geometry-Lxyflb9J.mjs} +3 -12
  117. package/dist/internal/geometry-Lxyflb9J.mjs.map +1 -0
  118. package/dist/{Matching.mjs → internal/matching-Cs-UeOY0.mjs} +24 -19
  119. package/dist/internal/matching-Cs-UeOY0.mjs.map +1 -0
  120. package/dist/internal/page-DFQb-YOK.mjs +436 -0
  121. package/dist/internal/page-DFQb-YOK.mjs.map +1 -0
  122. package/dist/internal/pose.inpage-CBFeWcVa.mjs +1996 -0
  123. package/dist/internal/pose.inpage-CBFeWcVa.mjs.map +1 -0
  124. package/dist/{Url.mjs → internal/url-DB0pQYk6.mjs} +3 -12
  125. package/dist/internal/url-DB0pQYk6.mjs.map +1 -0
  126. package/dist/policy/Policy.d.mts +60 -6
  127. package/dist/policy/Policy.mjs +52 -9
  128. package/dist/policy/Policy.mjs.map +1 -1
  129. package/dist/policy/index.d.mts +2 -0
  130. package/dist/policy/index.mjs +2 -0
  131. package/dist/presentation/Film.d.mts +332 -0
  132. package/dist/presentation/Film.mjs +298 -0
  133. package/dist/presentation/Film.mjs.map +1 -0
  134. package/dist/presentation/Motion.d.mts +5 -1
  135. package/dist/presentation/Motion.mjs +16 -2
  136. package/dist/presentation/Motion.mjs.map +1 -1
  137. package/dist/presentation/Presentation.d.mts +48 -6
  138. package/dist/presentation/Presentation.mjs +28 -9
  139. package/dist/presentation/Presentation.mjs.map +1 -1
  140. package/dist/presentation/Stage.d.mts +40 -6
  141. package/dist/presentation/Stage.mjs +1 -262
  142. package/dist/presentation/index.d.mts +5 -0
  143. package/dist/presentation/index.mjs +5 -0
  144. package/dist/supervisor/Release.d.mts +2 -0
  145. package/dist/supervisor/Release.mjs +40 -0
  146. package/dist/supervisor/Release.mjs.map +1 -0
  147. package/dist/supervisor/Supervisor.d.mts +2 -104
  148. package/dist/supervisor/Supervisor.mjs +2 -515
  149. package/dist/supervisor/index.d.mts +3 -0
  150. package/dist/supervisor/index.mjs +3 -0
  151. package/dist/testing/HttpCassette.d.mts +98 -0
  152. package/dist/testing/HttpCassette.mjs +146 -0
  153. package/dist/testing/HttpCassette.mjs.map +1 -0
  154. package/dist/testing/Story.d.mts +31 -0
  155. package/dist/testing/Story.mjs +76 -0
  156. package/dist/testing/Story.mjs.map +1 -0
  157. package/dist/testing/TestBrowser.d.mts +191 -0
  158. package/dist/testing/TestBrowser.mjs +105 -0
  159. package/dist/testing/TestBrowser.mjs.map +1 -0
  160. package/dist/testing/TestModel.d.mts +133 -0
  161. package/dist/testing/TestModel.mjs +209 -0
  162. package/dist/testing/TestModel.mjs.map +1 -0
  163. package/dist/testing/TestPage.d.mts +2 -0
  164. package/dist/testing/TestPage.mjs +47 -0
  165. package/dist/testing/TestPage.mjs.map +1 -0
  166. package/dist/testing/index.d.mts +6 -337
  167. package/dist/testing/index.mjs +6 -515
  168. package/dist/timeline/Moment.d.mts +3 -0
  169. package/dist/timeline/Moment.mjs +3 -0
  170. package/dist/timeline/Stillness.d.mts +34 -0
  171. package/dist/timeline/Stillness.mjs +2 -0
  172. package/dist/timeline/index.d.mts +3 -0
  173. package/dist/timeline/index.mjs +3 -0
  174. package/dist/walk/Walk.d.mts +2 -0
  175. package/dist/walk/Walk.mjs +2 -0
  176. package/dist/walk/index.d.mts +2 -0
  177. package/dist/walk/index.mjs +2 -0
  178. package/package.json +54 -133
  179. package/src/Action.ts +73 -8
  180. package/src/Browser.ts +85 -14
  181. package/src/BrowserError.ts +258 -63
  182. package/src/BrowserEvent.ts +264 -48
  183. package/src/Cdp.ts +42 -0
  184. package/src/Change.ts +75 -4
  185. package/src/Frame.ts +247 -14
  186. package/src/{Style.ts → InputStyle.ts} +130 -18
  187. package/src/Layout.ts +187 -0
  188. package/src/Overlay.ts +76 -0
  189. package/src/Page.ts +144 -275
  190. package/src/PageTime.ts +72 -0
  191. package/src/Pose.ts +81 -0
  192. package/src/Site.ts +136 -0
  193. package/src/Snapshot.ts +179 -3
  194. package/src/Text.ts +60 -0
  195. package/src/Window.ts +53 -3
  196. package/src/ai/BrowserTools.ts +778 -0
  197. package/src/ai/PageControl.ts +702 -0
  198. package/src/ai/PromptCache.ts +87 -0
  199. package/src/ai/Tabs.ts +84 -0
  200. package/src/ai/ToolError.ts +50 -0
  201. package/src/ai/index.ts +36 -0
  202. package/src/ai/internal/crops.ts +38 -0
  203. package/src/ai/internal/points.ts +57 -0
  204. package/src/ai/internal/receipts.ts +107 -0
  205. package/src/index.ts +87 -6
  206. package/src/{ActionPort.ts → internal/action-port.ts} +3 -3
  207. package/src/{providers → internal/cdp}/connection.ts +19 -12
  208. package/src/internal/cdp/workerd.ts +36 -0
  209. package/src/{Clock.ts → internal/clock.ts} +20 -0
  210. package/src/internal/input/actions.ts +1 -1
  211. package/src/internal/input/dispatch.ts +2 -2
  212. package/src/internal/input/guard.inpage.ts +1 -1
  213. package/src/internal/input/guard.ts +1 -1
  214. package/src/internal/input/perform.ts +35 -7
  215. package/src/internal/input/pointer.ts +9 -6
  216. package/src/internal/input/targets.inpage.ts +3 -3
  217. package/src/internal/input/targets.ts +1 -1
  218. package/src/{Matching.ts → internal/matching.ts} +28 -19
  219. package/src/internal/page/bridge.ts +67 -35
  220. package/src/internal/page/clock.inpage.ts +306 -0
  221. package/src/internal/page/compose.inpage.ts +101 -0
  222. package/src/internal/page/context.ts +4 -2
  223. package/src/internal/page/functions.ts +84 -0
  224. package/src/internal/page/navigation.ts +1 -1
  225. package/src/internal/page/openings.ts +2 -2
  226. package/src/internal/page/overlay.inpage.ts +96 -0
  227. package/src/internal/page/overlay.ts +89 -0
  228. package/src/internal/page/page.ts +39 -29
  229. package/src/internal/page/port.ts +14 -8
  230. package/src/internal/page/pose.inpage.ts +200 -0
  231. package/src/internal/page/pose.ts +80 -0
  232. package/src/internal/page/replies.ts +1 -1
  233. package/src/internal/page/requests.ts +1 -1
  234. package/src/internal/page/scripts.ts +1 -1
  235. package/src/internal/page/time.inpage.ts +49 -0
  236. package/src/internal/page/time.ts +122 -0
  237. package/src/internal/page/viewport.ts +3 -2
  238. package/src/internal/pictures/capture.ts +1 -4
  239. package/src/internal/pictures/dimensions.ts +1 -1
  240. package/src/internal/pictures/frame.ts +1 -1
  241. package/src/internal/pictures/pictures.ts +144 -91
  242. package/src/internal/reading/context.inpage.ts +2 -2
  243. package/src/internal/reading/expect.inpage.ts +1 -1
  244. package/src/internal/reading/layout.inpage.ts +193 -0
  245. package/src/internal/reading/layout.ts +101 -0
  246. package/src/internal/reading/names.inpage.ts +15 -0
  247. package/src/internal/reading/outline.inpage.ts +5 -21
  248. package/src/internal/reading/reading.ts +33 -21
  249. package/src/internal/reading/ready.inpage.ts +21 -26
  250. package/src/internal/reading/ready.ts +26 -5
  251. package/src/internal/reading/subjects.inpage.ts +3 -3
  252. package/src/internal/reading/text.inpage.ts +3 -16
  253. package/src/internal/reading/walk.inpage.ts +1 -1
  254. package/src/internal/timeline/changes.inpage.ts +7 -15
  255. package/src/internal/timeline/changes.ts +17 -5
  256. package/src/internal/timeline/record.inpage.ts +15 -6
  257. package/src/internal/timeline/sight.inpage.ts +2 -2
  258. package/src/internal/timeline/window.ts +3 -4
  259. package/src/policy/Policy.ts +70 -16
  260. package/src/policy/index.ts +12 -0
  261. package/src/presentation/Film.ts +451 -0
  262. package/src/presentation/Motion.ts +45 -3
  263. package/src/presentation/Presentation.ts +60 -14
  264. package/src/presentation/Stage.ts +73 -35
  265. package/src/presentation/index.ts +30 -0
  266. package/src/presentation/{feed.ts → internal/feed.ts} +1 -1
  267. package/src/supervisor/Release.ts +45 -0
  268. package/src/supervisor/Supervisor.ts +80 -5
  269. package/src/supervisor/index.ts +18 -0
  270. package/src/supervisor/{contract.ts → internal/contract.ts} +14 -10
  271. package/src/supervisor/{lifecycle.ts → internal/lifecycle.ts} +7 -7
  272. package/src/supervisor/{runtime.ts → internal/runtime.ts} +7 -7
  273. package/src/testing/HttpCassette.ts +260 -0
  274. package/src/testing/Story.ts +103 -0
  275. package/src/testing/TestBrowser.ts +14 -4
  276. package/src/testing/TestModel.ts +297 -0
  277. package/src/testing/TestPage.ts +92 -4
  278. package/src/testing/index.ts +35 -1
  279. package/src/testing/{evidence.ts → internal/evidence.ts} +19 -11
  280. package/src/testing/{model.ts → internal/model.ts} +14 -8
  281. package/src/testing/{page.ts → internal/page.ts} +55 -51
  282. package/src/{moment → timeline}/Moment.ts +79 -29
  283. package/src/{stillness → timeline}/Stillness.ts +89 -46
  284. package/src/timeline/index.ts +18 -0
  285. package/src/{stillness/Pixels.ts → timeline/internal/pixels.ts} +27 -1
  286. package/src/{moment → timeline/internal}/words.ts +2 -2
  287. package/src/walk/Walk.ts +165 -0
  288. package/src/walk/index.ts +12 -0
  289. package/src/{plan → walk/internal}/choose.ts +23 -14
  290. package/src/{plan → walk/internal}/data.ts +37 -14
  291. package/src/{plan → walk/internal}/execute.ts +79 -36
  292. package/src/{plan → walk/internal}/record.ts +6 -6
  293. package/src/{plan → walk/internal}/targets.ts +35 -25
  294. package/dist/ActionPort.d.mts +0 -15
  295. package/dist/ActionPort.mjs.map +0 -1
  296. package/dist/Browser-BKPAbyys.mjs.map +0 -1
  297. package/dist/Change-Ba7INmay.d.mts +0 -69
  298. package/dist/Clock.d.mts +0 -57
  299. package/dist/Clock.mjs.map +0 -1
  300. package/dist/Frame-UEH2hO5T.d.mts +0 -124
  301. package/dist/Geometry.d.mts +0 -2
  302. package/dist/Geometry.mjs.map +0 -1
  303. package/dist/Matching.d.mts +0 -37
  304. package/dist/Matching.mjs.map +0 -1
  305. package/dist/Page-BF5izr8R.mjs.map +0 -1
  306. package/dist/Page-CvsOEorc.d.mts +0 -566
  307. package/dist/Released-tURbFmal.d.mts +0 -15
  308. package/dist/Snapshot-CtBVOtuu.d.mts +0 -73
  309. package/dist/Stillness-CNlvayIo.mjs +0 -136
  310. package/dist/Stillness-CNlvayIo.mjs.map +0 -1
  311. package/dist/Style-AO4V7Czt.mjs.map +0 -1
  312. package/dist/Style.d.mts +0 -72
  313. package/dist/Style.mjs +0 -2
  314. package/dist/Url.d.mts +0 -26
  315. package/dist/Url.mjs.map +0 -1
  316. package/dist/Window-CMddGMt1.d.mts +0 -34
  317. package/dist/connection-CK83pvqP.mjs.map +0 -1
  318. package/dist/moment/Moment.mjs.map +0 -1
  319. package/dist/plan/index.mjs.map +0 -1
  320. package/dist/presentation/Stage.mjs.map +0 -1
  321. package/dist/presentation/feed.d.mts +0 -20
  322. package/dist/presentation/feed.mjs +0 -18
  323. package/dist/presentation/feed.mjs.map +0 -1
  324. package/dist/providers/Cdp.d.mts +0 -9
  325. package/dist/providers/Cdp.mjs +0 -15
  326. package/dist/providers/Cdp.mjs.map +0 -1
  327. package/dist/providers/Chromium.d.mts +0 -32
  328. package/dist/providers/Chromium.mjs +0 -55
  329. package/dist/providers/Chromium.mjs.map +0 -1
  330. package/dist/providers/Released.d.mts +0 -2
  331. package/dist/providers/Released.mjs +0 -12
  332. package/dist/providers/Released.mjs.map +0 -1
  333. package/dist/stillness/Stillness.d.mts +0 -12
  334. package/dist/stillness/Stillness.mjs +0 -2
  335. package/dist/supervisor/Supervisor.mjs.map +0 -1
  336. package/dist/testing/index.mjs.map +0 -1
  337. package/dist/workerd/Cdp.d.mts +0 -8
  338. package/dist/workerd/Cdp.mjs +0 -13
  339. package/dist/workerd/Cdp.mjs.map +0 -1
  340. package/src/plan/index.ts +0 -36
  341. package/src/providers/Cdp.ts +0 -16
  342. package/src/providers/Chromium.ts +0 -99
  343. package/src/providers/Released.ts +0 -13
  344. package/src/workerd/Cdp.ts +0 -11
  345. /package/dist/{rolldown-runtime-D7D4PA-g.mjs → internal/rolldown-runtime-D7D4PA-g.mjs} +0 -0
  346. /package/src/{Geometry.ts → internal/geometry.ts} +0 -0
  347. /package/src/{Url.ts → internal/url.ts} +0 -0
  348. /package/src/{stillness → timeline/internal}/utilsBundle.d.ts +0 -0
@@ -0,0 +1,1553 @@
1
+ import { a as PressOptions$1, o as ScrollOptions$1, r as ClickOptions$1, s as TypeOptions$1, t as Action } from "./Action-CkanNTUw.mjs";
2
+ import { m as PolicyDenied, t as BrowserError } from "./BrowserError-CsuRYcDX.mjs";
3
+ import { C as TextInserted, D as WheelScrolled, E as TrackPlanned, T as TrackPerformed, _ as PointerReleased, b as SessionEnding, d as Navigated, f as PageClosed, g as PointerPressed, h as PageUntracked, i as BrowserEvent, l as Disconnected, m as PageOpened, n as ActionAnnounced, o as CursorChanged, p as PageLoaded, r as Box, s as DialogShown, t as Action$1, u as KeyChanged, x as Subject, y as RequestRefused } from "./BrowserEvent-tGPYYf6R.mjs";
4
+ import { a as geometry_d_exports, r as Point$1 } from "./geometry-Dhj_ztJs.mjs";
5
+ import { Clock, Duration, Effect, Option, Schema, Scope, Stream } from "effect";
6
+ declare namespace Frame_d_exports {
7
+ export { BrowserPaint, Capture, CaptureStats, Frame, FrameOptions, Image, Paint, Region, ScreencastOptions, Screenshot, Zoom, capture, paint, read$4 as read, recent, sameCapture, zoom };
8
+ }
9
+ declare const Image_base: Schema.Class<Image, Schema.Struct<{
10
+ readonly data: Schema.Uint8Array;
11
+ readonly mediaType: Schema.Literals<readonly ["image/jpeg", "image/png"]>;
12
+ readonly width: Schema.Finite;
13
+ readonly height: Schema.Finite;
14
+ }>, {}>;
15
+ /**
16
+ * An encoded picture with its pixel dimensions. Crops also need their viewport origin.
17
+ *
18
+ * @stability stable
19
+ * @category schemas
20
+ * @since 0.3.0
21
+ */
22
+ declare class Image extends Image_base {}
23
+ declare const BrowserPaint_base: Schema.Class<BrowserPaint, Schema.TaggedStruct<"BrowserPaint", {
24
+ readonly timestamp: Schema.Finite;
25
+ readonly hostTime: Schema.Finite;
26
+ readonly uncertaintyMillis: Schema.Finite;
27
+ }>, {}>;
28
+ /**
29
+ * Native CDP paint time mapped to the owning host clock, with transport uncertainty retained.
30
+ *
31
+ * @stability stable
32
+ * @category schemas
33
+ * @since 0.3.0
34
+ */
35
+ declare class BrowserPaint extends BrowserPaint_base {}
36
+ declare const Screenshot_base: Schema.Class<Screenshot, Schema.TaggedStruct<"Screenshot", {
37
+ readonly hostTime: Schema.Finite;
38
+ readonly uncertaintyMillis: Schema.Finite;
39
+ }>, {}>;
40
+ /**
41
+ * A screenshot's host capture interval; it has no native browser paint timestamp.
42
+ *
43
+ * @stability stable
44
+ * @category schemas
45
+ * @since 0.3.0
46
+ */
47
+ declare class Screenshot extends Screenshot_base {}
48
+ declare const Frame_base: Schema.Class<Frame, Schema.Struct<{
49
+ readonly page: Schema.String;
50
+ /** The page's browser session: its provider's session id, as `Browser.Service.id` gives it. */
51
+ readonly session: Schema.String;
52
+ /** Owning Browser connection; document counters restart on adoption or reattachment. */
53
+ readonly connection: Schema.String;
54
+ /** Native capture identity. Screenshots have no capture generation or sequence. */
55
+ readonly capture: Schema.optionalKey<Schema.Struct<{
56
+ readonly generation: Schema.Int;
57
+ readonly sequence: Schema.Int;
58
+ }>>;
59
+ readonly data: Schema.Uint8Array;
60
+ /** The picture's type, when a new picture gave it; one without is a JPEG, as screencast frames are. */
61
+ readonly mediaType: Schema.optionalKey<Schema.Literals<readonly ["image/jpeg", "image/png"]>>;
62
+ readonly timing: Schema.Union<readonly [typeof BrowserPaint, typeof Screenshot]>;
63
+ readonly receivedAt: Schema.Finite;
64
+ readonly width: Schema.Finite;
65
+ readonly height: Schema.Finite;
66
+ /**
67
+ * The page's document committed before the frame arrived, as `Navigated` counts them. Just
68
+ * after a commit a browser can still show the old document's paint, so a frame may show the
69
+ * document before its own, never one after it.
70
+ */
71
+ readonly document: Schema.Int;
72
+ /** The page's address when the frame arrived. */
73
+ readonly url: Schema.String;
74
+ }>, {}>;
75
+ /**
76
+ * An image and its timing evidence. Paint time and screenshot capture time cannot be confused in
77
+ * serialized data. `receivedAt` records delivery on the owning host's monotonic clock; it does
78
+ * not make an old paint current.
79
+ *
80
+ * @stability stable
81
+ * @category schemas
82
+ * @since 0.3.0
83
+ */
84
+ declare class Frame extends Frame_base {
85
+ get timestamp(): number | undefined;
86
+ get hostTime(): number;
87
+ get image(): Image;
88
+ }
89
+ /**
90
+ * Equal capture lineage survives an image copy; untagged pictures retain object identity only.
91
+ *
92
+ * @stability stable
93
+ * @category predicates
94
+ * @since 0.3.0
95
+ */
96
+ declare const sameCapture: (frame: Frame, other: Frame | undefined) => boolean;
97
+ declare const CaptureStats_base: Schema.Class<CaptureStats, Schema.Struct<{
98
+ readonly received: Schema.Int;
99
+ readonly accepted: Schema.Int;
100
+ /**
101
+ * Frames Chromium finished encoding after a newer one, dropped rather than reordered. It encodes
102
+ * several at once, so a busy machine makes more of them; none was a paint readers missed.
103
+ */
104
+ readonly late: Schema.Int;
105
+ readonly missingTimestamp: Schema.Int;
106
+ /**
107
+ * Frames dropped for their size. Most are other captures' frames, which a clipped screenshot
108
+ * draws into a screencast. The rest are the page's own frames of a new size, dropped while still
109
+ * unconfirmed: when another size replaced it, when its capture stopped, or beyond the 16 held.
110
+ */
111
+ readonly foreignSize: Schema.Int;
112
+ /**
113
+ * Frames discarded while native capture is paused for a library picture and its restoration.
114
+ * A pause can produce no callbacks, so this count may remain zero even when pictures were taken.
115
+ */
116
+ readonly duringPictures: Schema.Int;
117
+ /**
118
+ * Frames a reader missed by falling behind. Each reader counts its own, so with several readers
119
+ * this can exceed the frames accepted.
120
+ */
121
+ readonly lost: Schema.Int;
122
+ /**
123
+ * Acknowledgements of frames sent and not yet answered, now, whatever the window. Chromium sends
124
+ * a frame only while few are unacknowledged, so a backlog means fewer frames.
125
+ */
126
+ readonly ackBacklog: Schema.Int;
127
+ /** Paint-time gaps between consecutive accepted frames. */
128
+ readonly gaps: Schema.Struct<{
129
+ readonly count: Schema.Int;
130
+ readonly totalMillis: Schema.Finite;
131
+ readonly minMillis: Schema.NullOr<Schema.Finite>;
132
+ readonly maxMillis: Schema.NullOr<Schema.Finite>;
133
+ readonly lastMillis: Schema.NullOr<Schema.Finite>;
134
+ }>;
135
+ }>, {}>;
136
+ /**
137
+ * A page's capture counts, over its life or a window of the latest minute: what Chromium sent,
138
+ * what readers got, and why the rest went no further. Frames that came late are counted apart from
139
+ * those a reader lost.
140
+ *
141
+ * @stability stable
142
+ * @category schemas
143
+ * @since 0.3.0
144
+ */
145
+ declare class CaptureStats extends CaptureStats_base {}
146
+ /**
147
+ * Settings for a page's one native capture. Readers that join a running capture share its
148
+ * settings: one without options accepts them, and one whose explicit options differ fails with
149
+ * `InvalidRequest`.
150
+ *
151
+ * @stability stable
152
+ * @category options
153
+ * @since 0.3.0
154
+ */
155
+ interface ScreencastOptions {
156
+ /** JPEG quality, 0 to 100. Defaults to 80. */
157
+ readonly quality?: number | undefined;
158
+ /** Frames are scaled down to fit this box. Defaults to the viewport in CSS pixels. */
159
+ readonly size?: {
160
+ readonly width: number;
161
+ readonly height: number;
162
+ } | undefined;
163
+ }
164
+ declare const Region_base: Schema.Class<Region, Schema.Struct<{
165
+ readonly x: Schema.Int;
166
+ readonly y: Schema.Int;
167
+ readonly width: Schema.Int;
168
+ readonly height: Schema.Int;
169
+ }>, {}>;
170
+ /**
171
+ * An integer rectangle in viewport CSS pixels.
172
+ *
173
+ * @stability stable
174
+ * @category schemas
175
+ * @since 0.3.0
176
+ */
177
+ declare class Region extends Region_base {}
178
+ declare const Zoom_base: Schema.Class<Zoom, Schema.Struct<{
179
+ readonly page: Schema.String;
180
+ readonly region: typeof Region;
181
+ readonly image: typeof Image;
182
+ }>, {}>;
183
+ /**
184
+ * A crop and its viewport origin: add that origin to a point read from the crop.
185
+ *
186
+ * @stability stable
187
+ * @category schemas
188
+ * @since 0.3.0
189
+ */
190
+ declare class Zoom extends Zoom_base {}
191
+ /**
192
+ * How current a picture must be, and how a new one is taken. The newest screencast frame serves
193
+ * when it qualifies, at no cost; otherwise a new screenshot is taken.
194
+ *
195
+ * @stability stable
196
+ * @category options
197
+ * @since 0.3.0
198
+ */
199
+ interface FrameOptions {
200
+ /**
201
+ * The oldest a reused frame may be, from its paint, at the earliest its timing allows, to now.
202
+ * Defaults to 250 milliseconds; 0 always takes a new screenshot.
203
+ */
204
+ readonly maxAge?: Duration.Input | undefined;
205
+ /**
206
+ * `"input"`: reuse only a frame painted after this page's latest input, including input of an
207
+ * interrupted action, and never while an action is changing the page. For a caller that has
208
+ * just acted on the page, so that it sees what its action did.
209
+ */
210
+ readonly after?: "input" | undefined;
211
+ /** JPEG quality of a new picture, 0 to 100. Defaults to 80. */
212
+ readonly quality?: number | undefined;
213
+ /** `"jpeg"`, the default, or `"png"`, which is always a new picture. */
214
+ readonly format?: "jpeg" | "png" | undefined;
215
+ /**
216
+ * `"css"`, the default, a picture pixel per CSS pixel; `"device"`, the screen's own pixels, as
217
+ * many to a CSS pixel as its device scale factor, which is always a new picture.
218
+ */
219
+ readonly scale?: "css" | "device" | undefined;
220
+ }
221
+ /**
222
+ * How a page paints for a scope; see `paint`.
223
+ *
224
+ * @stability stable
225
+ * @category models
226
+ * @since 0.3.0
227
+ */
228
+ interface Paint {
229
+ /** Device pixels to each CSS pixel, more than 0 and at most 4. The layout keeps its size. */
230
+ readonly scale?: number | undefined;
231
+ /** False hides the page's scrollbars from its next document on, and its layout takes their room. */
232
+ readonly scrollbars?: boolean | undefined;
233
+ }
234
+ /**
235
+ * Scoped access to one page's shared capture and its current-document evidence.
236
+ *
237
+ * @stability stable
238
+ * @category models
239
+ * @since 0.3.0
240
+ */
241
+ interface Capture {
242
+ /**
243
+ * Screencast frames for as long as the stream runs. Concurrent streams share one screencast and
244
+ * its settings; explicit options that differ from a running screencast's fail with
245
+ * InvalidRequest.
246
+ */
247
+ readonly stream: Stream.Stream<Frame, BrowserError>;
248
+ readonly current: Frame | undefined;
249
+ readonly isCurrent: (frame: Frame) => boolean;
250
+ readonly confirm: (frame: Frame) => Effect.Effect<boolean, BrowserError>;
251
+ readonly sync: Effect.Effect<void, BrowserError>;
252
+ /**
253
+ * What this page's captures received, delivered and dropped, over its life or the latest
254
+ * `window`, which reaches back at most a minute; a longer one is an `InvalidRequest`. It reads
255
+ * the page's counts, so it serves after the lease's scope has closed.
256
+ */
257
+ readonly stats: (options?: {
258
+ readonly window?: Duration.Input | undefined;
259
+ }) => Effect.Effect<CaptureStats, BrowserError>;
260
+ }
261
+ /**
262
+ * The viewport with its timing: the newest screencast frame if it qualifies, else a new
263
+ * screenshot timed by the host interval in which it was taken. A frame of a stated age that the
264
+ * screencast has costs nothing and waits for no action; one that must follow the latest input, or
265
+ * a new screenshot, waits for the action in flight.
266
+ *
267
+ * @stability stable
268
+ * @category constructors
269
+ * @since 0.3.0
270
+ */
271
+ declare const read$4: {
272
+ (options?: FrameOptions): (page: Page) => Effect.Effect<Frame, BrowserError>;
273
+ (page: Page, options?: FrameOptions): Effect.Effect<Frame, BrowserError>;
274
+ };
275
+ /**
276
+ * A crop in CSS pixels, unmagnified, with the origin that keeps later input in viewport pixels.
277
+ * A crop is always a new picture; with `scale: "device"` it has the screen's own pixels.
278
+ *
279
+ * @stability stable
280
+ * @category constructors
281
+ * @since 0.3.0
282
+ */
283
+ declare const zoom: {
284
+ (region: Region, options?: Pick<FrameOptions, "quality" | "format" | "scale">): (page: Page) => Effect.Effect<Zoom, BrowserError>;
285
+ (page: Page, region: Region, options?: Pick<FrameOptions, "quality" | "format" | "scale">): Effect.Effect<Zoom, BrowserError>;
286
+ };
287
+ /**
288
+ * A scoped lease on the page's capture, which starts at once, independently of its first frame.
289
+ *
290
+ * @stability stable
291
+ * @category constructors
292
+ * @since 0.3.0
293
+ */
294
+ declare const capture: {
295
+ (options?: ScreencastOptions): (page: Page) => Effect.Effect<Capture, BrowserError, Scope.Scope>;
296
+ (page: Page, options?: ScreencastOptions): Effect.Effect<Capture, BrowserError, Scope.Scope>;
297
+ };
298
+ /**
299
+ * The page's screencast frames painted within the browser's `frameHistory` of the newest, oldest first.
300
+ *
301
+ * @stability stable
302
+ * @category combinators
303
+ * @since 0.3.0
304
+ */
305
+ declare const recent: (page: Page) => Effect.Effect<ReadonlyArray<Frame>>;
306
+ /**
307
+ * Paint the page at `scale` device pixels to each CSS pixel, or without its scrollbars, for a
308
+ * scope: a frame with `scale: "device"` then has that many more pixels, while the layout, its
309
+ * boxes and input keep their CSS pixels. Scrollbars go from the next document on, and come back
310
+ * from the next after the scope, so paint, then load the page, then measure it. One at a time. A
311
+ * browser this library launched paints at the scale of its launch (Chromium's
312
+ * `deviceScaleFactor`), and refuses another.
313
+ *
314
+ * @stability stable
315
+ * @category combinators
316
+ * @since 0.3.0
317
+ */
318
+ declare const paint: {
319
+ (options: Paint): (page: Page) => Effect.Effect<void, BrowserError, Scope.Scope>;
320
+ (page: Page, options: Paint): Effect.Effect<void, BrowserError, Scope.Scope>;
321
+ };
322
+ declare namespace Change_d_exports {
323
+ export { Change, Changes, ChangesOptions, Kind, read$3 as read };
324
+ }
325
+ /**
326
+ * `text` changed; `appeared` and `disappeared`, whether added or removed or shown or hidden;
327
+ * `brief`, appeared and gone again by the window's end; `value`, a field's; `title`, the document's.
328
+ *
329
+ * @stability stable
330
+ * @category schemas
331
+ * @since 0.3.0
332
+ */
333
+ declare const Kind: Schema.Literals<readonly ["text", "appeared", "disappeared", "brief", "value", "title"]>;
334
+ /**
335
+ * @stability stable
336
+ * @category models
337
+ * @since 0.3.0
338
+ */
339
+ type Kind = typeof Kind.Type;
340
+ declare const Change_base: Schema.Class<Change, Schema.Struct<{
341
+ readonly kind: Schema.Literals<readonly ["text", "appeared", "disappeared", "brief", "value", "title"]>;
342
+ /**
343
+ * What changed, as the page names it now, or where it was for what went. Its own words are what
344
+ * changed, so its name is empty unless something else names it, as a field's label does.
345
+ */
346
+ readonly subject: typeof Subject;
347
+ /**
348
+ * Where it is as the changes are read, in viewport CSS pixels, unrounded; for what went, where
349
+ * what it sat in is. A caller can frame what an input did beside the input. Absent for the title
350
+ * and for what is drawn nowhere, as what was hidden is.
351
+ */
352
+ readonly box: Schema.optional<Schema.Struct<{
353
+ readonly x: Schema.Finite;
354
+ readonly y: Schema.Finite;
355
+ readonly width: Schema.Finite;
356
+ readonly height: Schema.Finite;
357
+ }>>;
358
+ /** When it first changed in the window, in host monotonic milliseconds on the browser's clock. */
359
+ readonly startedAt: Schema.Finite;
360
+ /** When it last changed in the window. */
361
+ readonly at: Schema.Finite;
362
+ /**
363
+ * What it showed at the window's start; absent for what appeared and where the record let that go.
364
+ * What disappeared says what it showed as it went. A field's value reads `••••` unless unmasked.
365
+ */
366
+ readonly before: Schema.optional<Schema.String>;
367
+ /** What it showed at the window's end; absent for what disappeared. What came and went says what it showed. */
368
+ readonly after: Schema.optional<Schema.String>;
369
+ /** How many times what it showed changed in the window. */
370
+ readonly count: Schema.Int;
371
+ /** For a number that changed more than once, its lowest and highest, as shown. */
372
+ readonly lowest: Schema.optional<Schema.String>;
373
+ readonly highest: Schema.optional<Schema.String>;
374
+ /** When it last changed before the window, as far back as the record keeps: in flux, not news. */
375
+ readonly earlier: Schema.optional<Schema.Finite>;
376
+ /**
377
+ * When the trusted input it followed reached the page, where it was that input's doing. It was not
378
+ * in flux: in the 10 s before the input it had not changed, and nothing had come into or left what
379
+ * it sits in, so a ticker's tick or a feed's line is not. Then it changed within 3 s inside what
380
+ * the input acted on or its row, form, dialog or controlled element; or, elsewhere, within 500 ms
381
+ * of an input on a page where nothing had changed in the 2 s before, as a menu a portal puts at
382
+ * the end of the page does. What holds the input's target, as a menu holds its item, does not
383
+ * count against it. The page's `Action` that sent it holds that time.
384
+ */
385
+ readonly cause: Schema.optional<Schema.Finite>;
386
+ }>, {}>;
387
+ /**
388
+ * @stability stable
389
+ * @category schemas
390
+ * @since 0.3.0
391
+ */
392
+ declare class Change extends Change_base {}
393
+ declare const Changes_base: Schema.Class<Changes, Schema.Struct<{
394
+ /** The page's document these changes belong to, as `Navigated` counts them. */
395
+ readonly document: Schema.Int;
396
+ /** Where the record is whole: before it, changes may be missing. */
397
+ readonly from: Schema.Finite;
398
+ /** Where the window ends: its `until`, or when the page was read. */
399
+ readonly until: Schema.Finite;
400
+ /**
401
+ * Where the window ends on the page's own clock. Give these changes as the next read's `since` and
402
+ * the two windows meet exactly, whatever the clock mapping does meanwhile.
403
+ */
404
+ readonly cursor: Schema.Finite;
405
+ /** Changes in the window the record let go, at least; 0 when it kept them all. */
406
+ readonly dropped: Schema.Int;
407
+ /** Oldest first, by when each began to change. */
408
+ readonly changes: Schema.$Array<typeof Change>;
409
+ }>, {}>;
410
+ /**
411
+ * @stability stable
412
+ * @category schemas
413
+ * @since 0.3.0
414
+ */
415
+ declare class Changes extends Changes_base {}
416
+ /**
417
+ * The window `read` reads, and whether to show what fields hold.
418
+ *
419
+ * @stability stable
420
+ * @category options
421
+ * @since 0.3.0
422
+ */
423
+ interface ChangesOptions {
424
+ /**
425
+ * Where the window starts: the changes a previous read returned, to continue exactly where they
426
+ * ended; a frame, at its paint; or host monotonic milliseconds, which mapped to the page's clock
427
+ * may miss or repeat changes near the start if the browser's clock mapping changed since. Defaults
428
+ * to the start of the record.
429
+ */
430
+ readonly since?: Changes | Frame | number | undefined;
431
+ /**
432
+ * Where it ends: a frame, at its paint, so a delayed frame's window holds nothing it does not
433
+ * show; or host monotonic milliseconds. Defaults to now, and is never later.
434
+ */
435
+ readonly until?: Frame | number | undefined;
436
+ /** Show what fields hold; a secret field still reads `••••`. Defaults to false. */
437
+ readonly unmask?: boolean | undefined;
438
+ }
439
+ /**
440
+ * What visibly changed over a window, in one call to the page. The first read starts the page's
441
+ * record, so it finds none; from then the page records, and from the start of each later
442
+ * document, until nobody has read it for two minutes.
443
+ *
444
+ * @stability stable
445
+ * @category constructors
446
+ * @since 0.3.0
447
+ */
448
+ declare const read$3: {
449
+ (options?: ChangesOptions): (page: Page) => Effect.Effect<Changes, BrowserError>;
450
+ (page: Page, options?: ChangesOptions): Effect.Effect<Changes, BrowserError>;
451
+ };
452
+ declare namespace Snapshot_d_exports {
453
+ export { Control, ElementState, FindQuery, Found, Snapshot, SnapshotOptions, UntilResult, UntilWant, find, read$2 as read, until };
454
+ }
455
+ declare const Control_base: Schema.Class<Control, Schema.Struct<{
456
+ readonly ref: Schema.String;
457
+ /** Its role, such as `button` or `textbox`, or `clickable` for an element without one. */
458
+ readonly kind: Schema.String;
459
+ /** Its accessible name. */
460
+ readonly name: Schema.String;
461
+ /** What it holds: a field's text, `••••` for a secret one, or a select's chosen labels. */
462
+ readonly value: Schema.String;
463
+ /** A select's option labels, at most 64. */
464
+ readonly options: Schema.optional<Schema.$Array<Schema.String>>;
465
+ /** How many options a select has, when it has options. */
466
+ readonly optionCount: Schema.optional<Schema.Int>;
467
+ readonly disabled: Schema.optional<Schema.Boolean>;
468
+ /** Whether it is checked, for what can be checked. */
469
+ readonly checked: Schema.optional<Schema.Boolean>;
470
+ /** True for a field that takes typed text. */
471
+ readonly editable: Schema.optional<Schema.Boolean>;
472
+ }>, {}>;
473
+ /**
474
+ * A control the outline shows, as a value: its ref, what it is and what it holds.
475
+ *
476
+ * @stability stable
477
+ * @category schemas
478
+ * @since 0.3.0
479
+ */
480
+ declare class Control extends Control_base {}
481
+ declare const Snapshot_base: Schema.Class<Snapshot, Schema.Struct<{
482
+ readonly url: Schema.String;
483
+ readonly title: Schema.String;
484
+ /** One line per control, heading or text block, indented by landmark. */
485
+ readonly text: Schema.String;
486
+ /** True when `text` was cut at `maxChars`. */
487
+ readonly truncated: Schema.Boolean;
488
+ /**
489
+ * Parts of the page left out because they lie above or below the viewport, each an element out
490
+ * of view with all it holds (viewport snapshots only).
491
+ */
492
+ readonly above: Schema.Finite;
493
+ readonly below: Schema.Finite;
494
+ readonly viewport: Schema.Struct<{
495
+ readonly width: Schema.Finite;
496
+ readonly height: Schema.Finite;
497
+ }>;
498
+ readonly scroll: Schema.Struct<{
499
+ readonly y: Schema.Finite;
500
+ readonly height: Schema.Finite;
501
+ }>;
502
+ /** The controls the outline shows, in its order. */
503
+ readonly controls: Schema.$Array<typeof Control>;
504
+ }>, {}>;
505
+ /**
506
+ * @stability stable
507
+ * @category schemas
508
+ * @since 0.3.0
509
+ */
510
+ declare class Snapshot extends Snapshot_base {
511
+ /** The snapshot as one block of text for a model: header, outline and what was left out. */
512
+ get rendered(): string;
513
+ }
514
+ /**
515
+ * @stability stable
516
+ * @category options
517
+ * @since 0.3.0
518
+ */
519
+ interface SnapshotOptions {
520
+ /** Read the whole page instead of the viewport. Defaults to false. */
521
+ readonly full?: boolean | undefined;
522
+ /** Keep only lines containing this text (case-insensitive). */
523
+ readonly query?: string | undefined;
524
+ /**
525
+ * Read only inside the elements this CSS selector matches, such as `form` or `#results`. A
526
+ * selector that matches nothing reads nothing; one that is not CSS is an `InvalidRequest`.
527
+ */
528
+ readonly within?: string | undefined;
529
+ /** Bound on the outline's length. Defaults to 12,000 characters. */
530
+ readonly maxChars?: number | undefined;
531
+ /**
532
+ * Give every control's box, as `WxH at (x,y)` in viewport CSS pixels, as a canvas's or a frame's
533
+ * always has. Defaults to false.
534
+ */
535
+ readonly boxes?: boolean | undefined;
536
+ }
537
+ /**
538
+ * What `find` looks for. Every rule given must hold; with none, it finds every element in scope
539
+ * that has a role or is a control.
540
+ *
541
+ * @stability stable
542
+ * @category models
543
+ * @since 0.3.0
544
+ */
545
+ interface FindQuery {
546
+ /** Narrow matching to this CSS selector. Invalid CSS fails InvalidRequest. */
547
+ readonly selector?: string | undefined;
548
+ /** Require a visible match, optionally enabled. */
549
+ readonly state?: "visible" | "enabled" | undefined;
550
+ /** An ARIA role, such as `"button"` or `"heading"`, ignoring case. */
551
+ readonly role?: string | undefined;
552
+ /**
553
+ * The accessible name: a string that reads the same once spaces are collapsed and case folded,
554
+ * or a pattern found in it.
555
+ */
556
+ readonly name?: string | RegExp | undefined;
557
+ /**
558
+ * Text it shows, ignoring case and spacing, or a pattern. Text inside a control or a heading is
559
+ * that control's or heading's, and only the smallest element showing it matches, not every
560
+ * element around it.
561
+ */
562
+ readonly text?: string | RegExp | undefined;
563
+ /** Whole words in its context (row, column, label or heading), ignoring case and spacing. */
564
+ readonly near?: string | undefined;
565
+ /** Only what a point action at this viewport point would reach: the control there, or else what is painted there. */
566
+ readonly at?: Point$1 | undefined;
567
+ /** The viewport (the default), or the whole document. */
568
+ readonly scope?: "viewport" | "document" | undefined;
569
+ }
570
+ /**
571
+ * An element's state as its markup gives it: `checked` for what can be checked, `expanded`,
572
+ * `selected` and `pressed` where the page says either way, and `level` for headings.
573
+ *
574
+ * @stability stable
575
+ * @category schemas
576
+ * @since 0.3.0
577
+ */
578
+ declare const ElementState: Schema.Struct<{
579
+ readonly disabled: Schema.Boolean;
580
+ readonly focused: Schema.Boolean;
581
+ readonly checked: Schema.optional<Schema.Boolean>;
582
+ readonly expanded: Schema.optional<Schema.Boolean>;
583
+ readonly selected: Schema.optional<Schema.Boolean>;
584
+ readonly pressed: Schema.optional<Schema.Boolean>;
585
+ readonly level: Schema.optional<Schema.Int>;
586
+ }>;
587
+ /**
588
+ * @stability stable
589
+ * @category models
590
+ * @since 0.3.0
591
+ */
592
+ type ElementState = typeof ElementState.Type;
593
+ declare const Found_base: Schema.Class<Found, Schema.Struct<{
594
+ readonly ref: Schema.String;
595
+ readonly subject: typeof Subject;
596
+ /** Its box, rounded. Reading the document, it may be out of view. */
597
+ readonly box: Schema.Struct<{
598
+ readonly x: Schema.Finite;
599
+ readonly y: Schema.Finite;
600
+ readonly width: Schema.Finite;
601
+ readonly height: Schema.Finite;
602
+ }>;
603
+ readonly inViewport: Schema.Boolean;
604
+ readonly state: Schema.Struct<{
605
+ readonly disabled: Schema.Boolean;
606
+ readonly focused: Schema.Boolean;
607
+ readonly checked: Schema.optional<Schema.Boolean>;
608
+ readonly expanded: Schema.optional<Schema.Boolean>;
609
+ readonly selected: Schema.optional<Schema.Boolean>;
610
+ readonly pressed: Schema.optional<Schema.Boolean>;
611
+ readonly level: Schema.optional<Schema.Int>;
612
+ }>;
613
+ }>, {}>;
614
+ /**
615
+ * An element `find` found: a ref for the actions, what it is, where it is and its state.
616
+ *
617
+ * @stability stable
618
+ * @category schemas
619
+ * @since 0.3.0
620
+ */
621
+ declare class Found extends Found_base {}
622
+ /**
623
+ * The page's outline: one line per control, heading or text block, with a ref for each control,
624
+ * in one call to the page.
625
+ *
626
+ * @stability stable
627
+ * @category constructors
628
+ * @since 0.3.0
629
+ */
630
+ declare const read$2: {
631
+ (options?: SnapshotOptions): (page: Page) => Effect.Effect<Snapshot, BrowserError>;
632
+ (page: Page, options?: SnapshotOptions): Effect.Effect<Snapshot, BrowserError>;
633
+ };
634
+ /**
635
+ * The elements that match a query, in tree order, with refs the actions take, in one call to the
636
+ * page. All that match are returned, so a caller tells them apart by their context; none is an
637
+ * empty result, not a failure.
638
+ *
639
+ * @stability stable
640
+ * @category combinators
641
+ * @since 0.3.0
642
+ */
643
+ declare const find: {
644
+ (query?: FindQuery): (page: Page) => Effect.Effect<ReadonlyArray<Found>, BrowserError>;
645
+ (page: Page, query?: FindQuery): Effect.Effect<ReadonlyArray<Found>, BrowserError>;
646
+ };
647
+ /**
648
+ * What a wait requires of the query's matches.
649
+ *
650
+ * @stability stable
651
+ * @category models
652
+ * @since 0.3.0
653
+ */
654
+ type UntilWant = "some" | "none" | {
655
+ readonly other: string;
656
+ };
657
+ /**
658
+ * @stability stable
659
+ * @category models
660
+ * @since 0.3.0
661
+ */
662
+ interface UntilResult {
663
+ readonly met: boolean;
664
+ readonly mark: string;
665
+ }
666
+ /**
667
+ * Wait, in one call to the page, until what `query` matches is as `want` says or `timeout` passes.
668
+ * Replaced documents share one deadline. Unmet is `met: false`; an empty mark means no stable
669
+ * document could be sampled.
670
+ *
671
+ * @stability stable
672
+ * @category combinators
673
+ * @since 0.3.0
674
+ */
675
+ declare const until: {
676
+ (query: FindQuery, want: UntilWant, timeout: Duration.Input): (page: Page) => Effect.Effect<UntilResult, BrowserError>;
677
+ (page: Page, query: FindQuery, want: UntilWant, timeout: Duration.Input): Effect.Effect<UntilResult, BrowserError>;
678
+ };
679
+ declare namespace Layout_d_exports {
680
+ export { Layout, Pick$1 as Pick, Picks, Place, Rehearsal, Word, measure, place, rehearse };
681
+ }
682
+ declare const Word_base: Schema.Class<Word, Schema.Struct<{
683
+ readonly text: Schema.String;
684
+ readonly box: Schema.Struct<{
685
+ readonly x: Schema.Finite;
686
+ readonly y: Schema.Finite;
687
+ readonly width: Schema.Finite;
688
+ readonly height: Schema.Finite;
689
+ }>;
690
+ readonly page: Schema.Struct<{
691
+ readonly x: Schema.Finite;
692
+ readonly y: Schema.Finite;
693
+ readonly width: Schema.Finite;
694
+ readonly height: Schema.Finite;
695
+ }>;
696
+ }>, {}>;
697
+ /**
698
+ * A match of a pick's `words`, by its box in the viewport and in the document.
699
+ *
700
+ * @stability stable
701
+ * @category schemas
702
+ * @since 0.3.0
703
+ */
704
+ declare class Word extends Word_base {}
705
+ declare const Place_base: Schema.Class<Place, Schema.Struct<{
706
+ /** The pick's own name. */
707
+ readonly id: Schema.String;
708
+ readonly ref: Schema.String;
709
+ readonly subject: typeof Subject;
710
+ /** Its box in viewport CSS pixels, unrounded, as an `at` point or a frame's pixels place it. */
711
+ readonly box: Schema.Struct<{
712
+ readonly x: Schema.Finite;
713
+ readonly y: Schema.Finite;
714
+ readonly width: Schema.Finite;
715
+ readonly height: Schema.Finite;
716
+ }>;
717
+ /** The same box in document CSS pixels: `box` moved by the scroll it was read at. */
718
+ readonly page: Schema.Struct<{
719
+ readonly x: Schema.Finite;
720
+ readonly y: Schema.Finite;
721
+ readonly width: Schema.Finite;
722
+ readonly height: Schema.Finite;
723
+ }>;
724
+ /** It keeps its place in the viewport as the page scrolls, so `page` holds only at this scroll. */
725
+ readonly fixed: Schema.Boolean;
726
+ /** The matches of the pick's `words`, when it gave them, in text order. */
727
+ readonly words: Schema.optional<Schema.$Array<typeof Word>>;
728
+ }>, {}>;
729
+ /**
730
+ * What one pick found.
731
+ *
732
+ * @stability stable
733
+ * @category schemas
734
+ * @since 0.3.0
735
+ */
736
+ declare class Place extends Place_base {}
737
+ declare const Layout_base: Schema.Class<Layout, Schema.Struct<{
738
+ readonly page: Schema.String;
739
+ /** The tracking connection that owns the document counter. */
740
+ readonly connection: Schema.String;
741
+ /** The document it read, as `Navigated` counts them. */
742
+ readonly document: Schema.Int;
743
+ readonly url: Schema.String;
744
+ /** Host monotonic milliseconds, when it was read. */
745
+ readonly at: Schema.Finite;
746
+ /** The viewport's size in CSS pixels. */
747
+ readonly viewport: Schema.Struct<{
748
+ readonly width: Schema.Finite;
749
+ readonly height: Schema.Finite;
750
+ }>;
751
+ /** How far the document was scrolled, in CSS pixels. */
752
+ readonly scroll: Schema.Struct<{
753
+ readonly x: Schema.Finite;
754
+ readonly y: Schema.Finite;
755
+ }>;
756
+ /** Device pixels to a CSS pixel: a `scale: "device"` picture's pixels per CSS pixel. */
757
+ readonly scale: Schema.Finite;
758
+ /** One for each pick that found something, in the order the picks were given. */
759
+ readonly places: Schema.$Array<typeof Place>;
760
+ /** The picks that found nothing. */
761
+ readonly missing: Schema.$Array<Schema.String>;
762
+ }>, {}>;
763
+ /**
764
+ * A page's picked places, and the viewport, scroll and scale they were read at.
765
+ *
766
+ * @stability stable
767
+ * @category schemas
768
+ * @since 0.3.0
769
+ */
770
+ declare class Layout extends Layout_base {}
771
+ /**
772
+ * A `Snapshot.find` query that names one thing. Its scope defaults to the whole document. Every
773
+ * element it finds is a candidate, and `choose` takes one: the first in tree order (the default),
774
+ * the last, or the smallest or largest by area. With a selector, the candidates are what it
775
+ * selects that shows and meets the other rules, a drawing's elements among them, which
776
+ * `Snapshot.find` leaves out.
777
+ *
778
+ * @stability stable
779
+ * @category models
780
+ * @since 0.3.0
781
+ */
782
+ interface Pick$1 extends FindQuery {
783
+ readonly choose?: "first" | "last" | "smallest" | "largest" | undefined;
784
+ /**
785
+ * Words to box inside it: text, found ignoring case, or a pattern; each match gets its own box,
786
+ * across the elements the text is split into. At most 200 for a pick.
787
+ */
788
+ readonly words?: string | RegExp | undefined;
789
+ }
790
+ /**
791
+ * Picks by the names their places will carry.
792
+ *
793
+ * @stability stable
794
+ * @category models
795
+ * @since 0.3.0
796
+ */
797
+ type Picks = Readonly<Record<string, Pick$1>>;
798
+ /**
799
+ * Where each pick is, in one call to the page: its box unrounded, in the viewport and in the
800
+ * document, the boxes of words in it, and the viewport, scroll and scale they were read at. A
801
+ * pick that finds nothing is listed as missing, not a failure.
802
+ *
803
+ * @stability stable
804
+ * @category constructors
805
+ * @since 0.3.0
806
+ */
807
+ declare const measure: {
808
+ (picks: Picks): (page: Page) => Effect.Effect<Layout, BrowserError>;
809
+ (page: Page, picks: Picks): Effect.Effect<Layout, BrowserError>;
810
+ };
811
+ /**
812
+ * The place a pick named, if it found one.
813
+ *
814
+ * @stability stable
815
+ * @category combinators
816
+ * @since 0.3.0
817
+ */
818
+ declare const place: {
819
+ (id: string): (layout: Layout) => Place | undefined;
820
+ (layout: Layout, id: string): Place | undefined;
821
+ };
822
+ /**
823
+ * What a rehearsal does, measures, and does to put the page back.
824
+ *
825
+ * @stability stable
826
+ * @category models
827
+ * @since 0.3.0
828
+ */
829
+ interface Rehearsal {
830
+ readonly act: ReadonlyArray<Action>;
831
+ readonly picks: Picks;
832
+ readonly undo: ReadonlyArray<Action>;
833
+ }
834
+ /**
835
+ * Measure what exists only after an interaction: perform `act`, wait for the page to be ready,
836
+ * read the layout, then perform `undo`, which runs whether or not acting and reading succeeded,
837
+ * and is not interrupted. A failure to act or read is the rehearsal's; otherwise one to undo is.
838
+ *
839
+ * @stability stable
840
+ * @category constructors
841
+ * @since 0.3.0
842
+ */
843
+ declare const rehearse: {
844
+ (rehearsal: Rehearsal): (page: Page) => Effect.Effect<Layout, BrowserError>;
845
+ (page: Page, rehearsal: Rehearsal): Effect.Effect<Layout, BrowserError>;
846
+ };
847
+ declare namespace Overlay_d_exports {
848
+ export { Content, Overlay, drawn, make$1 as make };
849
+ }
850
+ /**
851
+ * What the overlay shows. `Svg` is an SVG document sized to the viewport, whose own `viewBox` maps
852
+ * any design space onto it; its scripts and event handlers are dropped. `Empty` shows nothing.
853
+ *
854
+ * @stability stable
855
+ * @category schemas
856
+ * @since 0.3.0
857
+ */
858
+ declare const Content: Schema.TaggedUnion<{
859
+ readonly Empty: Schema.TaggedStruct<"Empty", {}>;
860
+ readonly Svg: Schema.TaggedStruct<"Svg", {
861
+ readonly markup: Schema.String;
862
+ }>;
863
+ }>;
864
+ /**
865
+ * @stability stable
866
+ * @category models
867
+ * @since 0.3.0
868
+ */
869
+ type Content = typeof Content.Type;
870
+ /**
871
+ * @stability stable
872
+ * @category models
873
+ * @since 0.3.0
874
+ */
875
+ interface Overlay {
876
+ /**
877
+ * Show `content` in place of what was shown, in one call to the page, after the actions asked
878
+ * before it. Says where the drawing's top-level parts are, in viewport CSS pixels.
879
+ */
880
+ readonly draw: (content: Content) => Effect.Effect<ReadonlyArray<Box>, BrowserError>;
881
+ }
882
+ /**
883
+ * A layer over the page to draw into, for the scope, that the library's readers never read.
884
+ * One at a time: a second while one is open fails `InvalidRequest`.
885
+ *
886
+ * @stability stable
887
+ * @category constructors
888
+ * @since 0.3.0
889
+ */
890
+ declare const make$1: (page: Page) => Effect.Effect<Overlay, BrowserError, Scope.Scope>;
891
+ /**
892
+ * Where the overlay's drawing was last drawn, in viewport CSS pixels, at no call to the page;
893
+ * none with nothing shown.
894
+ *
895
+ * @stability stable
896
+ * @category combinators
897
+ * @since 0.3.0
898
+ */
899
+ declare const drawn: (page: Page) => Effect.Effect<Option.Option<ReadonlyArray<Box>>>;
900
+ declare namespace Pose_d_exports {
901
+ export { Pose, Poses, make };
902
+ }
903
+ /**
904
+ * How an element is posed. A part left out changes nothing: no move, a scale of 1, no turn.
905
+ *
906
+ * @stability stable
907
+ * @category schemas
908
+ * @since 0.3.0
909
+ */
910
+ declare const Pose: Schema.Struct<{
911
+ /** The element, by a ref from the page's current document, such as a `Layout` place's. */
912
+ readonly ref: Schema.String;
913
+ readonly dx: Schema.optional<Schema.Finite>;
914
+ readonly dy: Schema.optional<Schema.Finite>;
915
+ readonly sx: Schema.optional<Schema.Finite>;
916
+ readonly sy: Schema.optional<Schema.Finite>;
917
+ /** Degrees, clockwise. */
918
+ readonly rotate: Schema.optional<Schema.Finite>;
919
+ /** The point it turns and scales about, in the viewport. */
920
+ readonly origin: Schema.optional<Schema.Struct<{
921
+ readonly x: Schema.Finite;
922
+ readonly y: Schema.Finite;
923
+ }>>;
924
+ }>;
925
+ /**
926
+ * @stability stable
927
+ * @category models
928
+ * @since 0.3.0
929
+ */
930
+ type Pose = typeof Pose.Type;
931
+ /**
932
+ * @stability stable
933
+ * @category models
934
+ * @since 0.3.0
935
+ */
936
+ interface Poses {
937
+ /**
938
+ * Pose these elements, in one call to the page, and take the pose off every other. A ref the
939
+ * document no longer has fails with `StaleRef`, and posing nothing.
940
+ */
941
+ readonly set: (poses: ReadonlyArray<Pose>) => Effect.Effect<void, BrowserError>;
942
+ }
943
+ /**
944
+ * Pose the page's own elements for the scope, moved, turned and scaled as a caller says, and put
945
+ * back when the scope closes. One lease at a time: a second while one is open fails
946
+ * `InvalidRequest`.
947
+ *
948
+ * @stability stable
949
+ * @category constructors
950
+ * @since 0.3.0
951
+ */
952
+ declare const make: (page: Page) => Effect.Effect<Poses, BrowserError, Scope.Scope>;
953
+ declare namespace PageTime_d_exports {
954
+ export { Held, Step, hold };
955
+ }
956
+ /**
957
+ * What else changes with page time in the same call to the page.
958
+ *
959
+ * @stability stable
960
+ * @category models
961
+ * @since 0.3.0
962
+ */
963
+ interface Step {
964
+ /** Scroll the document to this many CSS pixels down it first, at once. */
965
+ readonly scroll?: number | undefined;
966
+ /** Then pose these elements and take the pose off any other, as `Poses.set` does; the page's poses must be open. */
967
+ readonly poses?: ReadonlyArray<Pose> | undefined;
968
+ /** Then show this in the page's overlay, which must be open. */
969
+ readonly overlay?: Content | undefined;
970
+ }
971
+ /**
972
+ * @stability stable
973
+ * @category models
974
+ * @since 0.3.0
975
+ */
976
+ interface Held {
977
+ /**
978
+ * Move page time on by `by`, in one call to the page, after the actions asked before it. Says
979
+ * where the document is scrolled to after it.
980
+ */
981
+ readonly advance: (by: Duration.Input, step?: Step) => Effect.Effect<Point$1, BrowserError>;
982
+ /** How far this hold has moved page time, across the documents it held. */
983
+ readonly elapsed: Effect.Effect<Duration.Duration>;
984
+ }
985
+ /**
986
+ * Hold the page's own time for the scope, to step it on with `advance`; real time resumes when
987
+ * the scope closes. Needs the browser's `pageTime` option; one hold at a time.
988
+ *
989
+ * @stability stable
990
+ * @category combinators
991
+ * @since 0.3.0
992
+ */
993
+ declare const hold: (page: Page) => Effect.Effect<Held, BrowserError, Scope.Scope>;
994
+ declare namespace Text_d_exports {
995
+ export { Text, TextOptions, read$1 as read };
996
+ }
997
+ /**
998
+ * @stability stable
999
+ * @category options
1000
+ * @since 0.3.0
1001
+ */
1002
+ interface TextOptions {
1003
+ /** `"viewport"` (the default) reads what the viewport shows; a ref reads that element whole. */
1004
+ readonly scope?: string | undefined;
1005
+ /** Bound on the text's length, cut at a line. Defaults to 12,000 characters. */
1006
+ readonly maxChars?: number | undefined;
1007
+ /** Show what fields hold; a secret field still reads `••••`. Defaults to false. */
1008
+ readonly unmask?: boolean | undefined;
1009
+ }
1010
+ declare const Text_base: Schema.Class<Text, Schema.Struct<{
1011
+ readonly url: Schema.String;
1012
+ readonly title: Schema.String;
1013
+ readonly text: Schema.String;
1014
+ /** True when `text` was cut at `maxChars`. */
1015
+ readonly truncated: Schema.Boolean;
1016
+ /** Host monotonic milliseconds from the browser's captured Effect Clock. */
1017
+ readonly at: Schema.Finite;
1018
+ }>, {}>;
1019
+ /**
1020
+ * What a page showed as text: a line per block, with table cells apart by tabs.
1021
+ *
1022
+ * @stability stable
1023
+ * @category schemas
1024
+ * @since 0.3.0
1025
+ */
1026
+ declare class Text extends Text_base {}
1027
+ /**
1028
+ * The text the viewport shows, or one element whole, in one call to the page. Field values read
1029
+ * `••••` unless `unmask`, and a secret field's always do, as does one that was secret when the
1030
+ * library saw it.
1031
+ *
1032
+ * @stability stable
1033
+ * @category constructors
1034
+ * @since 0.3.0
1035
+ */
1036
+ declare const read$1: {
1037
+ (options?: TextOptions): (page: Page) => Effect.Effect<Text, BrowserError>;
1038
+ (page: Page, options?: TextOptions): Effect.Effect<Text, BrowserError>;
1039
+ };
1040
+ declare namespace Window_d_exports {
1041
+ export { Window, WindowOptions, read };
1042
+ }
1043
+ declare const Window_base: Schema.Class<Window, Schema.Struct<{
1044
+ readonly page: Schema.String;
1045
+ /** Where the window starts, in host monotonic milliseconds on the owning browser’s clock. */
1046
+ readonly since: Schema.Finite;
1047
+ /** Where it ends, never after it was taken. */
1048
+ readonly until: Schema.Finite;
1049
+ /** The page's events after `since`, up to `until`, oldest first, without the input presentation track. */
1050
+ readonly events: Schema.$Array<Schema.Union<readonly [typeof RequestRefused, typeof PageOpened, typeof PageClosed, typeof PageUntracked, typeof Navigated, typeof PageLoaded, typeof Action$1, typeof ActionAnnounced, typeof TrackPlanned, typeof TrackPerformed, typeof PointerPressed, typeof PointerReleased, typeof WheelScrolled, typeof KeyChanged, typeof TextInserted, typeof CursorChanged, typeof DialogShown, typeof Disconnected, typeof SessionEnding]>>;
1051
+ /**
1052
+ * What visibly changed after `since`, up to `until`; absent where `missing` says why. A page's
1053
+ * first window starts its record, so the record sees none of it.
1054
+ */
1055
+ readonly changes: Schema.optional<typeof Changes>;
1056
+ /** Screencast frames painted from `since` to `until`, oldest first, as far back as kept. */
1057
+ readonly frames: Schema.$Array<typeof Frame>;
1058
+ /**
1059
+ * Why each part that could not be read is missing: the read of its changes, by whatever
1060
+ * operation failed there, or a moment's picture (`frame`) or outline (`snapshot`).
1061
+ */
1062
+ readonly missing: Schema.$Array<typeof BrowserError>;
1063
+ }>, {}>;
1064
+ /**
1065
+ * A page's events, changes and frames over one window of its browser's host clock.
1066
+ *
1067
+ * @stability stable
1068
+ * @category schemas
1069
+ * @since 0.3.0
1070
+ */
1071
+ declare class Window extends Window_base {}
1072
+ /**
1073
+ * The window `read` reads, and whether to show what fields hold.
1074
+ *
1075
+ * @stability stable
1076
+ * @category options
1077
+ * @since 0.3.0
1078
+ */
1079
+ interface WindowOptions {
1080
+ /**
1081
+ * Where the window starts: a previous window, to continue exactly where it ended; a frame, at its
1082
+ * paint; host monotonic milliseconds; or a `Duration` back from `until`. A start after `until`
1083
+ * leaves the window empty there.
1084
+ */
1085
+ readonly since: Window | Frame | Duration.Duration | number;
1086
+ /**
1087
+ * Where it ends: a frame, at its paint, such as one a delayed consumer airs now; or host
1088
+ * monotonic milliseconds. Defaults to now, and is never later.
1089
+ */
1090
+ readonly until?: Frame | number | undefined;
1091
+ /** Show what fields hold in its changes; a secret field still reads `••••`. Defaults to false. */
1092
+ readonly unmask?: boolean | undefined;
1093
+ }
1094
+ /**
1095
+ * The page's events, changes and frames over a window: the frames and events it keeps, at no
1096
+ * call, and its changes, in one call, the first starting its record as `Change.read` does. A part
1097
+ * that cannot be read is missing, with why; the window fails only for bounds that are not finite.
1098
+ *
1099
+ * @stability stable
1100
+ * @category constructors
1101
+ * @since 0.3.0
1102
+ */
1103
+ declare const read: {
1104
+ (options: WindowOptions): (page: Page) => Effect.Effect<Window, BrowserError>;
1105
+ (page: Page, options: WindowOptions): Effect.Effect<Window, BrowserError>;
1106
+ };
1107
+ //#endregion
1108
+ //#region src/internal/page/functions.d.ts
1109
+ declare const key = "~effect-browser/Page";
1110
+ interface Functions {
1111
+ readonly snapshot: (options?: SnapshotOptions) => Effect.Effect<Snapshot, BrowserError>;
1112
+ readonly find: (query?: FindQuery) => Effect.Effect<ReadonlyArray<Found>, BrowserError>;
1113
+ readonly until: (query: FindQuery, want: UntilWant, millis: number) => Effect.Effect<UntilResult, BrowserError>;
1114
+ readonly text: (options?: TextOptions) => Effect.Effect<Text, BrowserError>;
1115
+ readonly layout: (picks: Picks) => Effect.Effect<Layout, BrowserError>;
1116
+ readonly changes: (options?: ChangesOptions) => Effect.Effect<Changes, BrowserError>;
1117
+ readonly window: (options: WindowOptions) => Effect.Effect<Window, BrowserError>;
1118
+ readonly overlay: Effect.Effect<Overlay, BrowserError, Scope.Scope>;
1119
+ readonly drawn: Effect.Effect<Option.Option<ReadonlyArray<Box>>>;
1120
+ readonly poses: Effect.Effect<Poses, BrowserError, Scope.Scope>;
1121
+ readonly hold: Effect.Effect<Held, BrowserError, Scope.Scope>;
1122
+ readonly frame: (options?: FrameOptions) => Effect.Effect<Frame, BrowserError>;
1123
+ readonly zoom: (region: Region, options?: Pick<FrameOptions, "quality" | "format" | "scale">) => Effect.Effect<Zoom, BrowserError>;
1124
+ readonly capture: (options?: ScreencastOptions) => Effect.Effect<Capture, BrowserError, Scope.Scope>;
1125
+ readonly recentFrames: Effect.Effect<ReadonlyArray<Frame>>;
1126
+ readonly paint: (options: Paint) => Effect.Effect<void, BrowserError, Scope.Scope>;
1127
+ }
1128
+ /** What a page carries under `key`: its functions, out of reach of any type outside this class. */
1129
+ declare class Implementation {
1130
+ #private;
1131
+ constructor(functions: Functions);
1132
+ static functionsOf(page: Page): Functions;
1133
+ }
1134
+ declare namespace Page_d_exports {
1135
+ export { ActOptions, ClickOptions, Fact, InputGuard, InputRequest, Page, Point, PressOptions, ReadyOptions, ResolvedTarget, ScriptOptions, ScrollOptions, State, Target, TypeOptions, correlate, failFast, isPage, redacted };
1136
+ }
1137
+ /**
1138
+ * @stability stable
1139
+ * @category models
1140
+ * @since 0.3.0
1141
+ */
1142
+ type Point = Point$1;
1143
+ /**
1144
+ * A ref from a snapshot, such as `"e12"`, or a viewport point.
1145
+ *
1146
+ * @stability stable
1147
+ * @category models
1148
+ * @since 0.3.0
1149
+ */
1150
+ type Target = string | Point;
1151
+ declare const ResolvedTarget_base: Schema.Class<ResolvedTarget, Schema.Struct<{
1152
+ readonly role: Schema.NullOr<Schema.String>;
1153
+ readonly name: Schema.String;
1154
+ readonly tag: Schema.String;
1155
+ readonly context: Schema.Struct<{
1156
+ readonly row: Schema.optional<Schema.String>;
1157
+ readonly column: Schema.optional<Schema.String>;
1158
+ readonly label: Schema.optional<Schema.String>;
1159
+ readonly heading: Schema.optional<Schema.String>;
1160
+ }>;
1161
+ readonly point: Schema.Struct<{
1162
+ readonly x: Schema.Finite;
1163
+ readonly y: Schema.Finite;
1164
+ }>;
1165
+ readonly element: Schema.String;
1166
+ /** For a point target, the box of what it found there. */
1167
+ readonly box: Schema.optional<Schema.Struct<{
1168
+ readonly x: Schema.Finite;
1169
+ readonly y: Schema.Finite;
1170
+ readonly width: Schema.Finite;
1171
+ readonly height: Schema.Finite;
1172
+ }>>;
1173
+ readonly cursor: Schema.String;
1174
+ readonly href: Schema.optional<Schema.String>;
1175
+ }>, {}>;
1176
+ /**
1177
+ * The target as it read before input. Point coordinates are never snapped to another position.
1178
+ *
1179
+ * @stability stable
1180
+ * @category schemas
1181
+ * @since 0.3.0
1182
+ */
1183
+ declare class ResolvedTarget extends ResolvedTarget_base {}
1184
+ /**
1185
+ * Action options share the execution codec.
1186
+ *
1187
+ * @stability stable
1188
+ * @category options
1189
+ * @since 0.3.0
1190
+ */
1191
+ type ClickOptions = typeof ClickOptions$1.Type;
1192
+ /**
1193
+ * @stability stable
1194
+ * @category options
1195
+ * @since 0.3.0
1196
+ */
1197
+ type TypeOptions = typeof TypeOptions$1.Type;
1198
+ /**
1199
+ * @stability stable
1200
+ * @category options
1201
+ * @since 0.3.0
1202
+ */
1203
+ type PressOptions = typeof PressOptions$1.Type;
1204
+ /**
1205
+ * @stability stable
1206
+ * @category options
1207
+ * @since 0.3.0
1208
+ */
1209
+ type ScrollOptions = typeof ScrollOptions$1.Type;
1210
+ /**
1211
+ * @stability stable
1212
+ * @category options
1213
+ * @since 0.3.0
1214
+ */
1215
+ interface ReadyOptions {
1216
+ /** How long recorded content must stay unchanged. Screen stillness is a separate feature. */
1217
+ readonly quiet?: Duration.Input | undefined;
1218
+ readonly timeout?: Duration.Input | undefined;
1219
+ }
1220
+ declare const State_base: Schema.Class<State, Schema.Struct<{
1221
+ readonly page: Schema.String;
1222
+ /** The tracking connection that owns this document counter. */
1223
+ readonly connection: Schema.String;
1224
+ /** When this was taken. */
1225
+ readonly at: Schema.Finite;
1226
+ /** Where the main frame last committed or moved, without userinfo or known secret parameters. */
1227
+ readonly url: Schema.String;
1228
+ /** The page's document, as `Navigated` counts them. */
1229
+ readonly document: Schema.Int;
1230
+ /** When the main frame committed it; absent for the one the browser began tracking it with. */
1231
+ readonly committedAt: Schema.optional<Schema.Finite>;
1232
+ /** How far that document has loaded, as the page's own session heard; absent until parsed. */
1233
+ readonly load: Schema.optional<typeof PageLoaded>;
1234
+ }>, {}>;
1235
+ /**
1236
+ * What the library knows of a page now, without asking it, each part with when it learned it, in
1237
+ * host monotonic milliseconds: a part's age is `at` less its time.
1238
+ *
1239
+ * @stability stable
1240
+ * @category schemas
1241
+ * @since 0.3.0
1242
+ */
1243
+ declare class State extends State_base {}
1244
+ /**
1245
+ * What the page's structure establishes about an input, or says it cannot establish:
1246
+ *
1247
+ * - `form-submit`: it submits a form, which sends the form's fields.
1248
+ * - `cross-origin`: it navigates or submits to another origin.
1249
+ * - `download`: it follows a download link.
1250
+ * - `upload`: it opens a file chooser.
1251
+ * - `secret`: it types, with `type`, into a field marked as a password, a one-time code or a
1252
+ * card's number, code or expiry, or submits a form holding a filled one.
1253
+ * - `scripted`: it activates something the browser gives no effect of its own, such as a
1254
+ * `type="button"` button, a `role="button"` element or a canvas, so only the page's script
1255
+ * decides what happens.
1256
+ * - `opaque`: nothing names what receives it: a canvas, a frame or an unnamed element.
1257
+ *
1258
+ * Facts never come from what an element's text says. What an input means, such as a payment
1259
+ * or a deletion, takes a judge that reads the evidence in the {@link InputRequest}.
1260
+ *
1261
+ * @stability stable
1262
+ * @category schemas
1263
+ * @since 0.3.0
1264
+ */
1265
+ declare const Fact: Schema.Literals<readonly ["form-submit", "cross-origin", "download", "upload", "secret", "scripted", "opaque"]>;
1266
+ /**
1267
+ * @stability stable
1268
+ * @category schemas
1269
+ * @since 0.3.0
1270
+ */
1271
+ type Fact = typeof Fact.Type;
1272
+ declare const InputRequest_base: Schema.Class<InputRequest, Schema.Struct<{
1273
+ readonly page: Schema.String;
1274
+ /**
1275
+ * The page's URL, without a fragment that only names a place on the page. This and the other
1276
+ * addresses keep no userinfo or known secret parameters.
1277
+ */
1278
+ readonly url: Schema.String;
1279
+ /** The page's title, at most 120 characters. */
1280
+ readonly title: Schema.String;
1281
+ readonly action: Schema.TaggedUnion<{
1282
+ readonly Act: Schema.TaggedStruct<"Act", {
1283
+ readonly document: Schema.Int;
1284
+ }>;
1285
+ readonly Back: Schema.TaggedStruct<"Back", {}>;
1286
+ readonly Click: Schema.TaggedStruct<"Click", {
1287
+ readonly target: Schema.Union<readonly [Schema.String, Schema.Struct<{
1288
+ readonly x: Schema.Finite;
1289
+ readonly y: Schema.Finite;
1290
+ }>]>;
1291
+ readonly options: Schema.optional<Schema.Struct<{
1292
+ readonly button: Schema.optional<Schema.Literals<readonly ["left", "right", "middle"]>>;
1293
+ readonly clickCount: Schema.optional<Schema.Finite>;
1294
+ readonly holdMillis: Schema.optional<Schema.Finite>;
1295
+ }>>;
1296
+ }>;
1297
+ readonly Drag: Schema.TaggedStruct<"Drag", {
1298
+ readonly from: Schema.Union<readonly [Schema.String, Schema.Struct<{
1299
+ readonly x: Schema.Finite;
1300
+ readonly y: Schema.Finite;
1301
+ }>]>;
1302
+ readonly to: Schema.Union<readonly [Schema.String, Schema.Struct<{
1303
+ readonly x: Schema.Finite;
1304
+ readonly y: Schema.Finite;
1305
+ }>]>;
1306
+ }>;
1307
+ readonly Goto: Schema.TaggedStruct<"Goto", {
1308
+ readonly url: Schema.String;
1309
+ }>;
1310
+ readonly Hover: Schema.TaggedStruct<"Hover", {
1311
+ readonly target: Schema.Union<readonly [Schema.String, Schema.Struct<{
1312
+ readonly x: Schema.Finite;
1313
+ readonly y: Schema.Finite;
1314
+ }>]>;
1315
+ }>;
1316
+ readonly Press: Schema.TaggedStruct<"Press", {
1317
+ readonly keys: Schema.String;
1318
+ readonly options: Schema.optional<Schema.Struct<{
1319
+ readonly on: Schema.optional<Schema.String>;
1320
+ readonly times: Schema.optional<Schema.Finite>;
1321
+ readonly holdMillis: Schema.optional<Schema.Finite>;
1322
+ }>>;
1323
+ }>;
1324
+ readonly Reload: Schema.TaggedStruct<"Reload", {}>;
1325
+ readonly Scroll: Schema.TaggedStruct<"Scroll", {
1326
+ readonly options: Schema.optional<Schema.Struct<{
1327
+ readonly at: Schema.optional<Schema.Union<readonly [Schema.String, Schema.Struct<{
1328
+ readonly x: Schema.Finite;
1329
+ readonly y: Schema.Finite;
1330
+ }>]>>;
1331
+ readonly dx: Schema.optional<Schema.Finite>;
1332
+ readonly dy: Schema.optional<Schema.Finite>;
1333
+ }>>;
1334
+ }>;
1335
+ readonly Select: Schema.TaggedStruct<"Select", {
1336
+ readonly ref: Schema.String;
1337
+ readonly values: Schema.$Array<Schema.String>;
1338
+ }>;
1339
+ readonly Type: Schema.TaggedStruct<"Type", {
1340
+ readonly text: Schema.String;
1341
+ readonly options: Schema.optional<Schema.Struct<{
1342
+ readonly into: Schema.optional<Schema.String>;
1343
+ readonly replace: Schema.optional<Schema.Boolean>;
1344
+ readonly submit: Schema.optional<Schema.Boolean>;
1345
+ readonly secret: Schema.optional<Schema.Boolean>;
1346
+ }>>;
1347
+ }>;
1348
+ }>;
1349
+ readonly target: Schema.optional<Schema.String>;
1350
+ readonly element: Schema.optional<Schema.String>;
1351
+ /** Literal pixel targets only; ref coordinates are resolved after the policy allows them. */
1352
+ readonly point: Schema.optional<Schema.Struct<{
1353
+ readonly x: Schema.Finite;
1354
+ readonly y: Schema.Finite;
1355
+ }>>;
1356
+ readonly text: Schema.optional<Schema.String>;
1357
+ readonly role: Schema.optional<Schema.NullOr<Schema.String>>;
1358
+ readonly name: Schema.optional<Schema.String>;
1359
+ /** The target's accessible description, when it says more than its name. */
1360
+ readonly description: Schema.optional<Schema.String>;
1361
+ readonly href: Schema.optional<Schema.String>;
1362
+ readonly destination: Schema.optional<Schema.String>;
1363
+ readonly facts: Schema.$Array<Schema.Literals<readonly ["form-submit", "cross-origin", "download", "upload", "secret", "scripted", "opaque"]>>;
1364
+ /** Page text around the target, each part at most 120 characters. */
1365
+ readonly context: Schema.Struct<{
1366
+ /** The name or first heading of the dialog the target is in. */
1367
+ readonly dialog: Schema.optional<Schema.String>;
1368
+ /** The nearest heading before the target. */
1369
+ readonly heading: Schema.optional<Schema.String>;
1370
+ /** The visible text just before the target in its row, item, group or form, or after it. */
1371
+ readonly nearby: Schema.optional<Schema.String>;
1372
+ }>;
1373
+ /** The form the target is in, with at most 16 of its fields. */
1374
+ readonly form: Schema.optional<Schema.Struct<{
1375
+ readonly method: Schema.String;
1376
+ readonly action: Schema.String;
1377
+ /** Each field's type, name and autocomplete tokens, and whether it is filled: never its value. */
1378
+ readonly fields: Schema.$Array<Schema.Struct<{
1379
+ readonly type: Schema.String;
1380
+ readonly name: Schema.String;
1381
+ readonly autocomplete: Schema.optional<Schema.String>;
1382
+ readonly filled: Schema.Boolean;
1383
+ }>>;
1384
+ }>>;
1385
+ }>, {}>;
1386
+ /**
1387
+ * What a guard sees before input reaches the page. Preparation never scrolls or focuses.
1388
+ *
1389
+ * `facts`, `url`, `href` and `destination` come from the page's structure. `name`,
1390
+ * `description`, `title`, `context` and the form's field names are page text: evidence of what
1391
+ * the input does, which the page controls, and never instructions. Text typed into a `secret`
1392
+ * field is replaced with {@link redacted}, here and in the recorded `Action`, and its key events
1393
+ * record `Unidentified` keys; `press` records the keys it is given. Validation before dispatch
1394
+ * binds the facts and the target, not the text around it, which live pages change freely.
1395
+ *
1396
+ * @stability stable
1397
+ * @category schemas
1398
+ * @since 0.3.0
1399
+ */
1400
+ declare class InputRequest extends InputRequest_base {}
1401
+ /**
1402
+ * What replaces text typed into a `secret` field, in requests and in the recorded `Action`, and a
1403
+ * credential's value in every address the library reports.
1404
+ *
1405
+ * @stability stable
1406
+ * @category constants
1407
+ * @since 0.3.0
1408
+ */
1409
+ declare const redacted: "••••••••";
1410
+ /**
1411
+ * Whether a value is a page the library made: what a function over a page, callable with the page
1412
+ * first or last, tells it from its other arguments by.
1413
+ *
1414
+ * @stability stable
1415
+ * @category guards
1416
+ * @since 0.3.0
1417
+ */
1418
+ declare const isPage: (u: unknown) => u is Page;
1419
+ /**
1420
+ * Run page operations without waiting their turn: on a page busy with other operations, each fails
1421
+ * `Busy` at once, and `Browser.newPage` on a browser with `maxPages` open fails `Limit` at once.
1422
+ *
1423
+ * @stability stable
1424
+ * @category combinators
1425
+ * @since 0.3.0
1426
+ */
1427
+ declare const failFast: <A, E, R>(effect: Effect.Effect<A, E, R>) => Effect.Effect<A, E, R>;
1428
+ /**
1429
+ * Give every action `effect` performs a caller's id, such as a model's tool call id, which its
1430
+ * recorded `Action` carries as `correlation`.
1431
+ *
1432
+ * @stability stable
1433
+ * @category combinators
1434
+ * @since 0.3.0
1435
+ */
1436
+ declare const correlate: {
1437
+ (id: string): <A, E, R>(effect: Effect.Effect<A, E, R>) => Effect.Effect<A, E, R>;
1438
+ <A, E, R>(effect: Effect.Effect<A, E, R>, id: string): Effect.Effect<A, E, R>;
1439
+ };
1440
+ /**
1441
+ * Succeed to allow, fail to deny, or await an external signal to hold the input.
1442
+ *
1443
+ * @stability stable
1444
+ * @category models
1445
+ * @since 0.3.0
1446
+ */
1447
+ type InputGuard = (request: InputRequest) => Effect.Effect<void, PolicyDenied>;
1448
+ /**
1449
+ * Script values cross the page boundary through the caller's Schema. A bundler may rewrite functions.
1450
+ *
1451
+ * @stability stable
1452
+ * @category options
1453
+ * @since 0.3.0
1454
+ */
1455
+ interface ScriptOptions<A, Arg> {
1456
+ readonly arg: Arg;
1457
+ readonly result: Schema.Codec<A, unknown>;
1458
+ }
1459
+ /**
1460
+ * @stability stable
1461
+ * @category options
1462
+ * @since 0.3.0
1463
+ */
1464
+ interface ActOptions<A, Arg> extends ScriptOptions<A, Arg> {
1465
+ readonly document: number;
1466
+ /** Supplying the read's connection also refuses a document counter from another connection. */
1467
+ readonly connection?: string | undefined;
1468
+ }
1469
+ /**
1470
+ * @stability stable
1471
+ * @category models
1472
+ * @since 0.3.0
1473
+ */
1474
+ interface Page {
1475
+ /** What the page does behind its types' modules' functions, such as `Snapshot.read`. */
1476
+ readonly [key]: Implementation;
1477
+ /** Decode and perform a data action through the same policy and lane as the named methods. */
1478
+ readonly perform: (action: Action) => Effect.Effect<ResolvedTarget | string | void, BrowserError>;
1479
+ /** Read declared side-effect-free code in the main world, retrying one replaced document. */
1480
+ readonly read: <A, Arg>(script: (arg: Arg) => unknown, options: ScriptOptions<A, Arg>) => Effect.Effect<{
1481
+ readonly value: A;
1482
+ readonly document: number;
1483
+ readonly connection: string;
1484
+ }, BrowserError>;
1485
+ /**
1486
+ * Run code as a guarded, recorded action bound to the caller's document.
1487
+ * A timeout or cancellation cannot stop JavaScript already running: later input waits for its
1488
+ * actual reply. Close the page and open a replacement if the script never settles.
1489
+ */
1490
+ readonly act: <A, Arg>(script: (arg: Arg) => unknown, options: ActOptions<A, Arg>) => Effect.Effect<A, BrowserError>;
1491
+ /**
1492
+ * The owning browser's host clock, which stamps the page's events and frames and times its
1493
+ * deadlines. It is not the page's own time, which `PageTime` holds.
1494
+ */
1495
+ readonly hostClock: Clock.Clock;
1496
+ /** Wait for admitted input and retain a bounded read turn through effect. */
1497
+ readonly afterInput: <A, E, R>(effect: Effect.Effect<A, E, R>) => Effect.Effect<A, E | BrowserError, R>;
1498
+ /** The page's CDP target id: the same page has it again after a reconnect to its browser. */
1499
+ readonly id: string;
1500
+ /** The page's address, without its userinfo or known secret parameters. */
1501
+ readonly url: Effect.Effect<string>;
1502
+ /**
1503
+ * The document's title as the page last set it, empty for an untitled page. The browser answers
1504
+ * it, in one call, so a page busy with a script cannot hold it up.
1505
+ */
1506
+ readonly title: Effect.Effect<string, BrowserError>;
1507
+ readonly goto: (url: string) => Effect.Effect<void, BrowserError>;
1508
+ /** The previous history entry, including one only a frame created; `NotFound` when none. */
1509
+ readonly back: Effect.Effect<void, BrowserError>;
1510
+ readonly reload: Effect.Effect<void, BrowserError>;
1511
+ /** Make this the visible tab. Background tabs paint rarely and send few screencast frames. */
1512
+ readonly bringToFront: Effect.Effect<void, BrowserError>;
1513
+ /** Close the tab, succeeding once it has closed, or at once when it already had. */
1514
+ readonly close: Effect.Effect<void, BrowserError>;
1515
+ /**
1516
+ * The viewport's size in CSS pixels, the space of points, crops and page scrolls. Over CDP the
1517
+ * page reports it, within the action timeout.
1518
+ */
1519
+ readonly viewport: Effect.Effect<{
1520
+ readonly width: number;
1521
+ readonly height: number;
1522
+ }, BrowserError>;
1523
+ /**
1524
+ * What the library knows of the page now, at no call and with no wait for its turn: where it is,
1525
+ * its document and how far it has loaded.
1526
+ */
1527
+ readonly state: Effect.Effect<State>;
1528
+ readonly click: (target: Target, options?: ClickOptions) => Effect.Effect<ResolvedTarget, BrowserError>;
1529
+ readonly hover: (target: Target) => Effect.Effect<void, BrowserError>;
1530
+ readonly drag: (from: Target, to: Target) => Effect.Effect<void, BrowserError>;
1531
+ /** Type into a text field, or to whatever has focus unless a typed key could activate it. */
1532
+ readonly type: (text: string, options?: TypeOptions) => Effect.Effect<void, BrowserError>;
1533
+ /** Keys such as `"Enter"`, `"Space"`, `"ArrowLeft"` or `"Control+A"`. */
1534
+ readonly press: (keys: string, options?: PressOptions) => Effect.Effect<void, BrowserError>;
1535
+ readonly scroll: (options?: ScrollOptions) => Effect.Effect<void, BrowserError>;
1536
+ /**
1537
+ * Choose options of a `<select>` by value or label; returns the chosen labels. A refusal, such
1538
+ * as no matching option, is undispatched.
1539
+ */
1540
+ readonly select: (ref: string, values: ReadonlyArray<string>) => Effect.Effect<string, BrowserError>;
1541
+ /**
1542
+ * Wait for document evidence, polling every 50 ms: parsed, painted, visible, fonts and visible
1543
+ * images loaded, and finite animations finished. Optional `quiet` requires recorded content
1544
+ * to stay unchanged. Screen or foreground stillness belongs to the Stillness feature.
1545
+ * Fails Timeout after timeout, 15 seconds by default.
1546
+ */
1547
+ readonly ready: (options?: ReadyOptions) => Effect.Effect<void, BrowserError>;
1548
+ /** This page's events among the browser's latest `eventHistory`, oldest first. */
1549
+ readonly recentEvents: Effect.Effect<ReadonlyArray<BrowserEvent>>;
1550
+ }
1551
+ //#endregion
1552
+ export { ElementState as $, PageTime_d_exports as A, read$4 as At, drawn as B, Window_d_exports as C, Paint as Ct, Text_d_exports as D, Zoom as Dt, TextOptions as E, Screenshot as Et, Poses as F, Picks as G, Layout as H, make as I, Word as J, Place as K, Content as L, hold as M, sameCapture as Mt, Pose as N, zoom as Nt, read$1 as O, capture as Ot, Pose_d_exports as P, Control as Q, Overlay as R, WindowOptions as S, Image as St, Text as T, ScreencastOptions as Tt, Layout_d_exports as U, make$1 as V, Pick$1 as W, place as X, measure as Y, rehearse as Z, correlate as _, Capture as _t, InputRequest as a, UntilResult as at, redacted as b, FrameOptions as bt, Point as c, read$2 as ct, ResolvedTarget as d, Change_d_exports as dt, FindQuery as et, ScriptOptions as f, Changes as ft, TypeOptions as g, BrowserPaint as gt, Target as h, read$3 as ht, InputGuard as i, Snapshot_d_exports as it, Step as j, recent as jt, Held as k, paint as kt, PressOptions as l, until as lt, State as m, Kind as mt, ClickOptions as n, Snapshot as nt, Page as o, UntilWant as ot, ScrollOptions as p, ChangesOptions as pt, Rehearsal as q, Fact as r, SnapshotOptions as rt, Page_d_exports as s, find as st, ActOptions as t, Found as tt, ReadyOptions as u, Change as ut, failFast as v, CaptureStats as vt, read as w, Region as wt, Window as x, Frame_d_exports as xt, isPage as y, Frame as yt, Overlay_d_exports as z };
1553
+ //# sourceMappingURL=Page-BfGxn7oN.d.mts.map