@jam-overture/loom 0.1.0 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (414) hide show
  1. package/README.md +3 -1
  2. package/dist/application/application.d.ts +109 -0
  3. package/dist/application/application.js +97 -0
  4. package/dist/application/memory.d.ts +20 -0
  5. package/dist/application/memory.js +79 -0
  6. package/dist/application/store.d.ts +101 -0
  7. package/dist/application/store.js +25 -0
  8. package/dist/audience/audience.d.ts +36 -0
  9. package/dist/audience/audience.js +41 -0
  10. package/dist/audience/compose.d.ts +112 -0
  11. package/dist/audience/compose.js +134 -0
  12. package/dist/audience/memory.d.ts +14 -0
  13. package/dist/audience/memory.js +71 -0
  14. package/dist/audience/overlay-store.d.ts +343 -0
  15. package/dist/audience/overlay-store.js +217 -0
  16. package/dist/audience/rule.d.ts +121 -0
  17. package/dist/audience/rule.js +78 -0
  18. package/dist/cli/index.d.ts +3 -4
  19. package/dist/cli/index.js +3 -4
  20. package/dist/cli/templates.js +19 -0
  21. package/dist/data/adapter.d.ts +9 -1
  22. package/dist/data/adapter.js +2 -0
  23. package/dist/data/plan.js +0 -0
  24. package/dist/data/resolution.d.ts +23 -1
  25. package/dist/data/resolve.d.ts +31 -4
  26. package/dist/data/resolve.js +11 -3
  27. package/dist/ids.d.ts +10 -0
  28. package/dist/ids.js +11 -1
  29. package/dist/index.d.ts +1 -0
  30. package/dist/index.js +1 -0
  31. package/dist/interpretation/anthropic.d.ts +1 -1
  32. package/dist/interpretation/anthropic.js +2 -22
  33. package/dist/interpretation/client.d.ts +1 -1
  34. package/dist/interpretation/materialize.js +67 -22
  35. package/dist/interpretation/openai-compatible.d.ts +36 -0
  36. package/dist/interpretation/openai-compatible.js +79 -0
  37. package/dist/interpretation/status.d.ts +19 -0
  38. package/dist/interpretation/status.js +26 -0
  39. package/dist/live/index.d.ts +73 -0
  40. package/dist/live/index.js +73 -0
  41. package/dist/live/pages.d.ts +187 -0
  42. package/dist/live/pages.js +161 -0
  43. package/dist/live/pull.d.ts +147 -0
  44. package/dist/live/pull.js +398 -0
  45. package/dist/live/pulling.d.ts +79 -0
  46. package/dist/live/pulling.js +117 -0
  47. package/dist/live/window.d.ts +129 -0
  48. package/dist/live/window.js +132 -0
  49. package/dist/patch.d.ts +54 -0
  50. package/dist/patch.js +44 -0
  51. package/dist/project/closing.d.ts +51 -0
  52. package/dist/project/closing.js +53 -0
  53. package/dist/project/memory.d.ts +20 -0
  54. package/dist/project/memory.js +97 -0
  55. package/dist/project/project.d.ts +90 -0
  56. package/dist/project/project.js +91 -0
  57. package/dist/project/store.d.ts +135 -0
  58. package/dist/project/store.js +41 -0
  59. package/dist/registered.d.ts +64 -0
  60. package/dist/registered.js +118 -0
  61. package/dist/render/addressed.d.ts +35 -0
  62. package/dist/render/addressed.js +79 -0
  63. package/dist/render/behaviour-adjust.d.ts +11 -19
  64. package/dist/render/behaviour-adjust.js +75 -21
  65. package/dist/render/behaviour-present.d.ts +8 -0
  66. package/dist/render/behaviour-present.js +57 -6
  67. package/dist/render/behaviour.d.ts +98 -17
  68. package/dist/render/behaviour.js +91 -26
  69. package/dist/render/control-name.d.ts +68 -0
  70. package/dist/render/control-name.js +37 -0
  71. package/dist/render/diagnostics.d.ts +72 -0
  72. package/dist/render/diagnostics.js +7 -0
  73. package/dist/render/document-theme.d.ts +70 -0
  74. package/dist/render/document-theme.js +139 -0
  75. package/dist/render/editable.d.ts +15 -1
  76. package/dist/render/editable.js +13 -1
  77. package/dist/render/expected.d.ts +98 -0
  78. package/dist/render/expected.js +88 -0
  79. package/dist/render/index.d.ts +4 -0
  80. package/dist/render/index.js +4 -0
  81. package/dist/render/reads.d.ts +11 -0
  82. package/dist/render/reads.js +12 -1
  83. package/dist/render/render.d.ts +11 -0
  84. package/dist/render/render.js +294 -53
  85. package/dist/render/request.d.ts +8 -1
  86. package/dist/render/request.js +1 -0
  87. package/dist/render/slots.d.ts +52 -0
  88. package/dist/render/slots.js +24 -0
  89. package/dist/render/theme.d.ts +54 -1
  90. package/dist/render/theme.js +23 -1
  91. package/dist/render/unshown.d.ts +152 -0
  92. package/dist/render/unshown.js +80 -0
  93. package/dist/runtime/analysis.d.ts +94 -9
  94. package/dist/runtime/analysis.js +54 -9
  95. package/dist/runtime/assessment.d.ts +36 -2
  96. package/dist/runtime/assessment.js +27 -2
  97. package/dist/runtime/auto-apply-ceiling.d.ts +54 -0
  98. package/dist/runtime/auto-apply-ceiling.js +66 -0
  99. package/dist/runtime/checks.d.ts +148 -0
  100. package/dist/runtime/checks.js +112 -0
  101. package/dist/runtime/disposition.d.ts +96 -0
  102. package/dist/runtime/disposition.js +46 -0
  103. package/dist/runtime/gate.js +91 -10
  104. package/dist/runtime/index.d.ts +4 -0
  105. package/dist/runtime/index.js +4 -0
  106. package/dist/runtime/irreversibility.d.ts +64 -0
  107. package/dist/runtime/irreversibility.js +45 -0
  108. package/dist/runtime/nesting.d.ts +13 -1
  109. package/dist/runtime/nesting.js +41 -24
  110. package/dist/runtime/pipeline.d.ts +43 -0
  111. package/dist/runtime/pipeline.js +10 -2
  112. package/dist/runtime/policy-change.d.ts +93 -0
  113. package/dist/runtime/policy-change.js +305 -0
  114. package/dist/runtime/policy-log.d.ts +406 -0
  115. package/dist/runtime/policy-log.js +285 -0
  116. package/dist/runtime/policy.d.ts +8 -6
  117. package/dist/runtime/policy.js +5 -2
  118. package/dist/runtime/repointing.js +0 -0
  119. package/dist/runtime/reversibility.d.ts +11 -9
  120. package/dist/runtime/stakes.d.ts +129 -1
  121. package/dist/runtime/stakes.js +240 -26
  122. package/dist/runtime/vocabulary.d.ts +164 -7
  123. package/dist/runtime/vocabulary.js +181 -8
  124. package/dist/sdk/audit.d.ts +174 -3
  125. package/dist/sdk/audit.js +176 -17
  126. package/dist/sdk/catalogue.d.ts +9 -1
  127. package/dist/sdk/conformance.d.ts +37 -3
  128. package/dist/sdk/conformance.js +25 -4
  129. package/dist/sdk/definition.d.ts +129 -5
  130. package/dist/sdk/definition.js +66 -0
  131. package/dist/sdk/registry.d.ts +45 -2
  132. package/dist/sdk/registry.js +102 -1
  133. package/dist/signals/acted.contract.d.ts +21 -0
  134. package/dist/signals/acted.contract.js +236 -0
  135. package/dist/signals/acted.d.ts +359 -0
  136. package/dist/signals/acted.js +135 -0
  137. package/dist/signals/action-change.d.ts +507 -0
  138. package/dist/signals/action-change.js +265 -0
  139. package/dist/signals/action.d.ts +331 -0
  140. package/dist/signals/action.js +182 -0
  141. package/dist/signals/agenda.d.ts +585 -0
  142. package/dist/signals/agenda.js +295 -0
  143. package/dist/signals/applied-window.contract.d.ts +23 -0
  144. package/dist/signals/applied-window.contract.js +160 -0
  145. package/dist/signals/arrivals.contract.d.ts +21 -0
  146. package/dist/signals/arrivals.contract.js +180 -0
  147. package/dist/signals/arrivals.d.ts +375 -0
  148. package/dist/signals/arrivals.js +254 -0
  149. package/dist/signals/arriving.d.ts +210 -0
  150. package/dist/signals/arriving.js +133 -0
  151. package/dist/signals/audiences.d.ts +528 -0
  152. package/dist/signals/audiences.js +255 -0
  153. package/dist/signals/broadcast.d.ts +33 -17
  154. package/dist/signals/broadcast.js +255 -32
  155. package/dist/signals/change.d.ts +378 -0
  156. package/dist/signals/change.js +327 -0
  157. package/dist/signals/collect.d.ts +169 -34
  158. package/dist/signals/collect.js +186 -38
  159. package/dist/signals/conversion.d.ts +348 -0
  160. package/dist/signals/conversion.js +235 -0
  161. package/dist/signals/copy-change.d.ts +553 -0
  162. package/dist/signals/copy-change.js +377 -0
  163. package/dist/signals/copy.d.ts +337 -0
  164. package/dist/signals/copy.js +211 -0
  165. package/dist/signals/correlated.contract.d.ts +24 -0
  166. package/dist/signals/correlated.contract.js +94 -0
  167. package/dist/signals/counters.d.ts +97 -0
  168. package/dist/signals/counters.js +160 -0
  169. package/dist/signals/deliver.d.ts +23 -4
  170. package/dist/signals/deliver.js +34 -6
  171. package/dist/signals/deployment-change.d.ts +395 -0
  172. package/dist/signals/deployment-change.js +309 -0
  173. package/dist/signals/deployment.d.ts +278 -0
  174. package/dist/signals/deployment.js +178 -0
  175. package/dist/signals/door.d.ts +114 -0
  176. package/dist/signals/door.js +77 -0
  177. package/dist/signals/expire.d.ts +192 -0
  178. package/dist/signals/expire.js +213 -0
  179. package/dist/signals/fold.d.ts +10 -0
  180. package/dist/signals/fold.js +5 -1
  181. package/dist/signals/form-action.d.ts +302 -0
  182. package/dist/signals/form-action.js +169 -0
  183. package/dist/signals/form-copy.d.ts +523 -0
  184. package/dist/signals/form-copy.js +346 -0
  185. package/dist/signals/forms.d.ts +247 -0
  186. package/dist/signals/forms.js +147 -0
  187. package/dist/signals/frontier.d.ts +268 -0
  188. package/dist/signals/frontier.js +145 -0
  189. package/dist/signals/funnel-change.d.ts +548 -0
  190. package/dist/signals/funnel-change.js +361 -0
  191. package/dist/signals/funnel-hours.contract.d.ts +21 -0
  192. package/dist/signals/funnel-hours.contract.js +221 -0
  193. package/dist/signals/funnel-hours.d.ts +293 -0
  194. package/dist/signals/funnel-hours.js +99 -0
  195. package/dist/signals/funnel.d.ts +592 -0
  196. package/dist/signals/funnel.js +231 -0
  197. package/dist/signals/health.d.ts +694 -0
  198. package/dist/signals/health.js +573 -0
  199. package/dist/signals/index.d.ts +60 -0
  200. package/dist/signals/index.js +60 -0
  201. package/dist/signals/ingest.d.ts +56 -1
  202. package/dist/signals/ingest.js +91 -1
  203. package/dist/signals/inside.d.ts +190 -0
  204. package/dist/signals/inside.js +263 -0
  205. package/dist/signals/join.d.ts +56 -0
  206. package/dist/signals/join.js +60 -0
  207. package/dist/signals/journal.d.ts +123 -9
  208. package/dist/signals/kept.contract.d.ts +22 -0
  209. package/dist/signals/kept.contract.js +111 -0
  210. package/dist/signals/kinds.d.ts +8 -6
  211. package/dist/signals/kinds.js +14 -6
  212. package/dist/signals/library-action.d.ts +430 -0
  213. package/dist/signals/library-action.js +336 -0
  214. package/dist/signals/library-agenda-change.d.ts +324 -0
  215. package/dist/signals/library-agenda-change.js +199 -0
  216. package/dist/signals/library-agenda.d.ts +258 -0
  217. package/dist/signals/library-agenda.js +167 -0
  218. package/dist/signals/library-change.d.ts +477 -0
  219. package/dist/signals/library-change.js +335 -0
  220. package/dist/signals/library-copy-change.d.ts +498 -0
  221. package/dist/signals/library-copy-change.js +476 -0
  222. package/dist/signals/library-pace.d.ts +319 -0
  223. package/dist/signals/library-pace.js +305 -0
  224. package/dist/signals/library-reach-change.d.ts +646 -0
  225. package/dist/signals/library-reach-change.js +542 -0
  226. package/dist/signals/library-reach.d.ts +377 -0
  227. package/dist/signals/library-reach.js +227 -0
  228. package/dist/signals/library-senders-change.d.ts +457 -0
  229. package/dist/signals/library-senders-change.js +367 -0
  230. package/dist/signals/library-senders-reach-change.d.ts +486 -0
  231. package/dist/signals/library-senders-reach-change.js +538 -0
  232. package/dist/signals/library-senders-reach.d.ts +340 -0
  233. package/dist/signals/library-senders-reach.js +252 -0
  234. package/dist/signals/library-senders.d.ts +271 -0
  235. package/dist/signals/library-senders.js +180 -0
  236. package/dist/signals/library-word-reach-change.d.ts +567 -0
  237. package/dist/signals/library-word-reach-change.js +564 -0
  238. package/dist/signals/library.d.ts +306 -0
  239. package/dist/signals/library.js +178 -0
  240. package/dist/signals/memory.d.ts +9 -0
  241. package/dist/signals/memory.js +246 -14
  242. package/dist/signals/migrate.d.ts +20 -4
  243. package/dist/signals/migrate.js +269 -8
  244. package/dist/signals/notice.d.ts +389 -0
  245. package/dist/signals/notice.js +250 -0
  246. package/dist/signals/pace-change.d.ts +501 -0
  247. package/dist/signals/pace-change.js +310 -0
  248. package/dist/signals/pace.d.ts +296 -0
  249. package/dist/signals/pace.js +291 -0
  250. package/dist/signals/page-views.d.ts +365 -0
  251. package/dist/signals/page-views.js +218 -0
  252. package/dist/signals/part-pace.d.ts +378 -0
  253. package/dist/signals/part-pace.js +333 -0
  254. package/dist/signals/parts.d.ts +354 -0
  255. package/dist/signals/parts.js +232 -0
  256. package/dist/signals/postgres.d.ts +16 -2
  257. package/dist/signals/postgres.js +753 -76
  258. package/dist/signals/progress.d.ts +212 -0
  259. package/dist/signals/progress.js +150 -0
  260. package/dist/signals/ratios.d.ts +108 -0
  261. package/dist/signals/ratios.js +40 -0
  262. package/dist/signals/reach.d.ts +309 -0
  263. package/dist/signals/reach.js +93 -0
  264. package/dist/signals/readable.d.ts +34 -0
  265. package/dist/signals/readable.js +34 -0
  266. package/dist/signals/readership.d.ts +381 -0
  267. package/dist/signals/readership.js +308 -0
  268. package/dist/signals/region-pages.d.ts +173 -0
  269. package/dist/signals/region-pages.js +62 -0
  270. package/dist/signals/region.d.ts +287 -0
  271. package/dist/signals/region.js +198 -0
  272. package/dist/signals/retention.d.ts +163 -0
  273. package/dist/signals/retention.js +75 -0
  274. package/dist/signals/rhythm.d.ts +302 -0
  275. package/dist/signals/rhythm.js +262 -0
  276. package/dist/signals/rollup.d.ts +194 -4
  277. package/dist/signals/rollup.js +0 -0
  278. package/dist/signals/schema.d.ts +1069 -1
  279. package/dist/signals/schema.js +393 -3
  280. package/dist/signals/signal.d.ts +237 -11
  281. package/dist/signals/signal.js +70 -10
  282. package/dist/signals/silence-census.d.ts +205 -0
  283. package/dist/signals/silence-census.js +87 -0
  284. package/dist/signals/silences.d.ts +1147 -0
  285. package/dist/signals/silences.js +996 -0
  286. package/dist/signals/subtrees.d.ts +123 -0
  287. package/dist/signals/subtrees.js +102 -0
  288. package/dist/signals/tally.d.ts +262 -12
  289. package/dist/signals/unread.d.ts +292 -0
  290. package/dist/signals/unread.js +137 -0
  291. package/dist/signals/window-agenda.d.ts +276 -0
  292. package/dist/signals/window-agenda.js +83 -0
  293. package/dist/signals/window-figures.d.ts +148 -0
  294. package/dist/signals/window-figures.js +42 -0
  295. package/dist/signals/window-funnels.d.ts +88 -0
  296. package/dist/signals/window-funnels.js +47 -0
  297. package/dist/signals/window.d.ts +866 -0
  298. package/dist/signals/window.js +693 -0
  299. package/dist/signals/words.d.ts +24 -0
  300. package/dist/signals/words.js +24 -0
  301. package/dist/store/cache.d.ts +101 -0
  302. package/dist/store/cache.js +149 -0
  303. package/dist/store/history.d.ts +82 -0
  304. package/dist/store/history.js +36 -0
  305. package/dist/store/index.d.ts +30 -0
  306. package/dist/store/index.js +30 -0
  307. package/dist/store/memory.d.ts +2 -1
  308. package/dist/store/memory.js +48 -12
  309. package/dist/store/migrate.d.ts +106 -0
  310. package/dist/store/migrate.js +323 -7
  311. package/dist/store/postgres-applications.d.ts +4 -0
  312. package/dist/store/postgres-applications.js +197 -0
  313. package/dist/store/postgres-audience.d.ts +14 -0
  314. package/dist/store/postgres-audience.js +272 -0
  315. package/dist/store/postgres-holds.d.ts +10 -1
  316. package/dist/store/postgres-holds.js +116 -101
  317. package/dist/store/postgres-policy-log.d.ts +14 -0
  318. package/dist/store/postgres-policy-log.js +240 -0
  319. package/dist/store/postgres-projects.d.ts +4 -0
  320. package/dist/store/postgres-projects.js +217 -0
  321. package/dist/store/postgres.d.ts +17 -1
  322. package/dist/store/postgres.js +60 -9
  323. package/dist/store/replay.d.ts +102 -1
  324. package/dist/store/replay.js +190 -19
  325. package/dist/store/reseed.d.ts +238 -0
  326. package/dist/store/reseed.js +308 -0
  327. package/dist/store/schema.d.ts +762 -2
  328. package/dist/store/schema.js +218 -5
  329. package/dist/store/source.d.ts +57 -1
  330. package/dist/store/source.js +65 -1
  331. package/dist/store/store.d.ts +29 -6
  332. package/dist/submit/resolve.d.ts +1 -1
  333. package/dist/submit/resolve.js +2 -1
  334. package/dist/telemetry/calibration.d.ts +25 -0
  335. package/dist/telemetry/calibration.js +27 -1
  336. package/dist/telemetry/event.d.ts +391 -33
  337. package/dist/telemetry/event.js +84 -20
  338. package/dist/telemetry/index.d.ts +2 -0
  339. package/dist/telemetry/index.js +2 -0
  340. package/dist/telemetry/journal.d.ts +104 -3
  341. package/dist/telemetry/journal.js +9 -0
  342. package/dist/telemetry/lookup.d.ts +27 -0
  343. package/dist/telemetry/lookup.js +18 -0
  344. package/dist/telemetry/memory.js +33 -1
  345. package/dist/telemetry/migrate.js +22 -1
  346. package/dist/telemetry/postgres.d.ts +10 -1
  347. package/dist/telemetry/postgres.js +188 -90
  348. package/dist/telemetry/remeasure.d.ts +78 -0
  349. package/dist/telemetry/remeasure.js +83 -0
  350. package/dist/telemetry/retention.d.ts +2 -2
  351. package/dist/telemetry/schema.d.ts +17 -0
  352. package/dist/telemetry/schema.js +27 -1
  353. package/dist/telemetry/sink.d.ts +2 -2
  354. package/dist/telemetry/window.d.ts +135 -0
  355. package/dist/telemetry/window.js +101 -0
  356. package/dist/testing/application-contract.d.ts +14 -0
  357. package/dist/testing/application-contract.js +270 -0
  358. package/dist/testing/audience-overlay-contract.d.ts +31 -0
  359. package/dist/testing/audience-overlay-contract.js +354 -0
  360. package/dist/testing/contracts.d.ts +13 -7
  361. package/dist/testing/contracts.js +13 -7
  362. package/dist/testing/definitions.d.ts +78 -0
  363. package/dist/testing/definitions.js +134 -9
  364. package/dist/testing/doubles.d.ts +103 -0
  365. package/dist/testing/doubles.js +143 -0
  366. package/dist/testing/index.d.ts +2 -2
  367. package/dist/testing/index.js +2 -2
  368. package/dist/testing/journal-contract.js +297 -6
  369. package/dist/testing/model-contract.d.ts +110 -0
  370. package/dist/testing/model-contract.js +150 -0
  371. package/dist/testing/policy-log-contract.d.ts +26 -0
  372. package/dist/testing/policy-log-contract.js +344 -0
  373. package/dist/testing/project-contract.d.ts +14 -0
  374. package/dist/testing/project-contract.js +266 -0
  375. package/dist/testing/reader-signal-contract.d.ts +27 -2
  376. package/dist/testing/reader-signal-contract.js +475 -5
  377. package/dist/testing/store-contract.d.ts +7 -1
  378. package/dist/testing/store-contract.js +84 -3
  379. package/dist/theme/apply.d.ts +20 -1
  380. package/dist/theme/apply.js +5 -3
  381. package/dist/theme/contrast.d.ts +19 -14
  382. package/dist/theme/contrast.js +181 -17
  383. package/dist/theme/derive.d.ts +22 -0
  384. package/dist/theme/derive.js +54 -1
  385. package/dist/theme/library.js +1 -1
  386. package/dist/theme/measure.d.ts +34 -0
  387. package/dist/theme/measure.js +30 -1
  388. package/dist/theme/palettes.js +7 -7
  389. package/dist/theme/ramp.d.ts +64 -0
  390. package/dist/theme/ramp.js +114 -0
  391. package/dist/theme/registry.d.ts +9 -0
  392. package/dist/theme/registry.js +11 -1
  393. package/dist/theme/separation.d.ts +97 -3
  394. package/dist/theme/separation.js +75 -0
  395. package/dist/tree/apply.js +13 -0
  396. package/dist/tree/compare.d.ts +9 -0
  397. package/dist/tree/compare.js +18 -0
  398. package/dist/tree/mutation.d.ts +18 -0
  399. package/dist/tree/mutation.js +24 -12
  400. package/dist/tree/navigation.d.ts +5 -0
  401. package/dist/tree/navigation.js +32 -10
  402. package/dist/tree/outline.d.ts +7 -0
  403. package/dist/tree/outline.js +9 -5
  404. package/dist/write/computed.d.ts +60 -0
  405. package/dist/write/computed.js +61 -0
  406. package/dist/write/held.d.ts +59 -0
  407. package/dist/write/index.d.ts +5 -2
  408. package/dist/write/index.js +5 -2
  409. package/dist/write/reseed.d.ts +151 -0
  410. package/dist/write/reseed.js +184 -0
  411. package/dist/write/revert.js +2 -16
  412. package/package.json +25 -3
  413. package/dist/runtime/inverse-interpreter.d.ts +0 -90
  414. package/dist/runtime/inverse-interpreter.js +0 -56
@@ -0,0 +1,548 @@
1
+ import type { TreeId } from "../ids.js";
2
+ import { type ComparedAudiences } from "./audiences.js";
3
+ import { type FunnelReach, type PairReach } from "./funnel.js";
4
+ import { type Ratio } from "./ratios.js";
5
+ import type { FunnelPair } from "./rollup.js";
6
+ /**
7
+ * What a change did to the funnel.
8
+ *
9
+ * Every reading in this subsystem that measures attention has had its
10
+ * comparison for a fortnight — where reading stops (§10), how much of a page
11
+ * gets read (§15), whether readers had time for it (§19), who the readers were
12
+ * (§20), what readers did inside a part (§22), and four of them at the scale of
13
+ * a library (§26, §27, §30, §31). **The funnel had none**, and it is the one
14
+ * counter here a deployment opens the portal for: *we shipped a change, did
15
+ * more readers buy?* is the whole commercial half of the premise, and until now
16
+ * the answer was two screens and a subtraction done by eye.
17
+ *
18
+ * `funnelChangeOf(was, now)` is that comparison, and it is one more figure
19
+ * taken out of what this subsystem already knows rather than collected:
20
+ * nothing is added to a payload, a browser, a column, a store or the vocabulary
21
+ * of kinds, the broadcaster is not touched, and both sides are readings a
22
+ * deployment already builds (0231).
23
+ *
24
+ * ## A conversion share factors, which is why this one gets a counterfactual
25
+ *
26
+ * [0251](../../decisions/0251-a-change-to-what-readers-did-is-a-ratio-of-two-shares-and-an-inside-a-change-gave-a-part-is-not-a-reader.md)
27
+ * refused a counterfactual for what readers *do*, and the reason was structural:
28
+ * `engaged ÷ reached` has readers on both sides of the division, so there is no
29
+ * reader-free term to hold still while the other moves.
30
+ *
31
+ * **A funnel does not have that problem, and the identity is exact.** Of the
32
+ * readers who arrived, the share that finished is the share that got to the
33
+ * first end multiplied by the share of *those* who finished:
34
+ *
35
+ * ```
36
+ * conversion.share = entry.share × rate
37
+ * converted = reached × converted
38
+ * ────────── ──────────── ─────────
39
+ * appearances appearances reached
40
+ * ```
41
+ *
42
+ * So the two things a change can move are separable, and they are the two
43
+ * things with **opposite remedies** that 0231 built three shares to tell apart:
44
+ * carrying readers to the ask, and closing them once they are there. The
45
+ * counterfactual is the same sufficiency rule 0244 and 0279 publish — the later
46
+ * window's reach at the earlier window's closing rate, and the other diagonal —
47
+ * so {@link ConversionCause} answers *your change did not sell more; it got more
48
+ * readers to the pricing band and the same share of them bought* without any
49
+ * number deciding what *enough* is.
50
+ *
51
+ * Both factors are shares whose numerator and denominator come from **one
52
+ * window**, so each window's straddle (0147) has very nearly divided out of
53
+ * each term before the two sides meet. That is the test 0251 set for a ratio
54
+ * across two windows, and no ratio of two windows' raw counts is published
55
+ * here, exactly as there.
56
+ *
57
+ * ## The one figure in this subsystem that leans down, subtracted from itself
58
+ *
59
+ * 0231 found that `rate` is the only figure here biased **downward**: a reader
60
+ * who met the first end in one window and converted in the next contributes
61
+ * `reached 1, converted 0` to the first and nothing to the second, so the
62
+ * conversion is lost rather than duplicated. It published `rateAtMost` as the
63
+ * ceiling that bound costs, and the gap between the two is the rollup window's
64
+ * length in the figure it damages.
65
+ *
66
+ * **Nobody had ever subtracted two of them.** A difference of two floors is not
67
+ * a floor, and this is the shape
68
+ * [0282](../../decisions/0282-a-word-nothing-can-be-said-about-is-in-no-mass-and-a-page-that-reports-no-reach-has-no-mean.md)
69
+ * had just been bitten by one reading across: a figure safe to publish as *at
70
+ * least* on one page is a movement nobody made when two of them are held
71
+ * against each other. Here it is worse than a loose bound, because the size of
72
+ * the bias is **set by the deployment's own rollup window** — a deployment that
73
+ * shortened `windowMs` between the two windows (0158) loses more conversions to
74
+ * the straddle in the later one and reads its funnel as having got worse, with
75
+ * no reader anywhere behaving differently.
76
+ *
77
+ * So the rate movement is published as a **bracket** and not only as a ratio:
78
+ * each side's true rate is somewhere in `[rate, rateAtMost]`, so the true ratio
79
+ * is somewhere in `[now.rate ÷ was.rateAtMost, now.rateAtMost ÷ was.rate]`, and
80
+ * {@link ComparedFunnel.rateMoved} says whether that bracket clears 1. A funnel
81
+ * whose rate appears to have halved and whose bracket contains 1 has told a
82
+ * deployment about its rollup window and nothing about its readers.
83
+ *
84
+ * It is the second time 0219's drift has turned an argument into a number, and
85
+ * the first time it has been spent on a *movement* rather than on a level.
86
+ *
87
+ * ## What survives a door that cannot say how many readers arrived
88
+ *
89
+ * A funnel reading is silent for the three states of the door (0229), and a
90
+ * comparison is silent for every reason either side is. **That withholds half
91
+ * of this reading and not all of it**, which is the division worth having:
92
+ *
93
+ * - **The shares of arrivals need the door on both sides.**
94
+ * {@link ComparedFunnel.conversionRatio}, {@link ComparedFunnel.entryRatio},
95
+ * the counterfactual and {@link ComparedFunnel.readersMoved} are withheld.
96
+ * - **The rate does not.** It is two counts off one row, so
97
+ * {@link ComparedFunnel.rateRatio} and the movement stand on a deployment
98
+ * whose page-view rows have expired, predate the column, or were not fetched
99
+ * — which is what a reading of an older deployment looks like. The
100
+ * **bracket** goes with the door, because the drift that builds it is a door
101
+ * figure.
102
+ *
103
+ * A silence here is therefore a reason some figures are absent and never a
104
+ * reason to refuse the row, and {@link FunnelChange.compared} is populated
105
+ * under every one of them.
106
+ *
107
+ * ## The question a change can break
108
+ *
109
+ * A funnel pair is the one thing read here that a **deployment wrote** rather
110
+ * than a tree or a vocabulary: *from this node to that one*. 0238 made an end
111
+ * the revision no longer has a standing rather than a silence, because a nought
112
+ * against a part the page does not have is indistinguishable from a funnel
113
+ * readers abandon.
114
+ *
115
+ * A comparison is where that standing becomes a sentence about a change.
116
+ * {@link QuestionMovement} says whether the change **broke** the question —
117
+ * both ends present in the earlier revision and one of them gone in the later —
118
+ * which is a thing to fix in the deployment's configuration rather than in the
119
+ * page, and the most useful row this reading has on the morning after a rename.
120
+ * It is a fact about the two trees and needs no reader at all, so it is
121
+ * answered under every silence here, exactly as a census of what a change added
122
+ * and removed is (0251).
123
+ *
124
+ * Pure, linear in the pairs of the two readings, and reaches no store, no clock
125
+ * and no DOM, so it adds nothing to the broadcaster's import graph.
126
+ */
127
+ /** Why a comparison of two windows' funnels left a figure out. */
128
+ export type FunnelChangeSilence =
129
+ /**
130
+ * The two readings are of different trees.
131
+ *
132
+ * Spelled as every other comparison here spells it, because a surface drawing
133
+ * five comparisons of one change should not meet five names for one state
134
+ * (0240).
135
+ */
136
+ "different-trees"
137
+ /**
138
+ * The two readings are of two audiences, and so of two populations.
139
+ *
140
+ * Spelled and refused as the other comparisons spell and refuse it (0240). A
141
+ * funnel question is asked of a page and a page served in two forms answers
142
+ * it twice, one row per audience (0284) — the same two ends and two different
143
+ * populations. So a pair of them is two answers to one question held against
144
+ * each other as though one of them had moved, and the arithmetic is right all
145
+ * the way through it.
146
+ *
147
+ * Refused only where both sides name an audience and the two differ; a pair
148
+ * spanning the migration that added the column is in
149
+ * {@link FunnelChange.audiences} instead.
150
+ */
151
+ | "different-audiences"
152
+ /**
153
+ * One of the two windows holds two forms of the page and named neither.
154
+ *
155
+ * Not the state above, and the pair is why this is its own member.
156
+ * `different-audiences` is two sides of two **known** populations, which is a
157
+ * comparison whose arithmetic is right and whose sentence is wrong. This is
158
+ * one side that is of no population at all: the reading it came from read
159
+ * neither form's pairs (0290), so there is nothing on that side to hold
160
+ * against anything.
161
+ *
162
+ * It is refused rather than reported as every question having been removed,
163
+ * which is what an empty side pairs as. The remedy is the caller's and it is
164
+ * `byAudience`: split the window and compare each form with itself.
165
+ */
166
+ | "audiences-mixed"
167
+ /**
168
+ * One of the two windows has no page-view row at the door.
169
+ *
170
+ * The door's first state (0229), said of the pair. The rates and the
171
+ * movements stand; every share of the arrivals is withheld, because the
172
+ * number to divide by is missing on one side.
173
+ */
174
+ | "unscaled"
175
+ /**
176
+ * One of the two windows has a row and nothing in it says a page view began.
177
+ *
178
+ * The state worth catching: senders that are not marking their openings leave
179
+ * every share here without a denominator while the counters look healthy.
180
+ */
181
+ | "unopened"
182
+ /**
183
+ * One of the two windows holds arrivals no rollup has folded yet.
184
+ *
185
+ * The first minutes of a deployment, and what a stalled collection looks like
186
+ * for ever; the fold's own timestamp is what tells the two apart (0274).
187
+ */
188
+ | "uncounted"
189
+ /**
190
+ * No pair is asked of both windows.
191
+ *
192
+ * The state `CopyChangeSilence.dissolved` reports of words and
193
+ * `KindReachChangeSilence.unpaired` of places, said of a question: the two
194
+ * windows have funnels and share none, so there is nothing to hold against
195
+ * anything. {@link FunnelChange.added} and {@link FunnelChange.removed}
196
+ * answer in full and are the whole of what can be said.
197
+ */
198
+ | "unasked";
199
+ /** The closed set, for a surface that has to account for every absent figure. */
200
+ export declare const FUNNEL_CHANGE_SILENCES: readonly FunnelChangeSilence[];
201
+ /** One line per silence, for a surface saying why a figure is not there. */
202
+ export declare const describeFunnelChangeSilence: (silence: FunnelChangeSilence) => string;
203
+ /**
204
+ * What happened to whether readers finish a funnel.
205
+ *
206
+ * Four verdicts out of *somebody converted* on either side, and a fifth for the
207
+ * pair one side cannot speak for — the shape a comparison of what readers did
208
+ * settled on (0251), for the same reason: a side that cannot say is not a third
209
+ * verdict, and collapsing every combination it appears in into one member is
210
+ * what keeps the other four claims.
211
+ *
212
+ * **No threshold anywhere.** The verdict turns on a conversion existing and not
213
+ * on how large the rate is or how far it moved, which is 0266's rule — a
214
+ * movement that needs a number to decide what counts is a number somebody has
215
+ * to defend.
216
+ */
217
+ export type FunnelMovement =
218
+ /**
219
+ * Readers reached the first end and none of them finished, and now some do —
220
+ * the sentence a change to an ask nobody answers is made for.
221
+ */
222
+ "taken-up"
223
+ /** Readers finished it and now they reach the first end and do not. */
224
+ | "abandoned"
225
+ /**
226
+ * Reached and unfinished before, reached and unfinished now — the asks a
227
+ * change did not fix.
228
+ *
229
+ * Kept apart from `held` because both are *the verdict did not move* and they
230
+ * are opposite findings about a page, which is how a pace comparison keeps
231
+ * `still-skimmed` from `held` (0244).
232
+ */
233
+ | "still-unconverted"
234
+ /** Readers finished it before and after. */
235
+ | "held"
236
+ /**
237
+ * One of the two windows cannot say whether readers finished it.
238
+ *
239
+ * Nothing reached the first end on that side, so there is no rate rather than
240
+ * a rate of nought, or an end of the pair is one that revision does not have
241
+ * (0238), so there is no question rather than an unanswered one.
242
+ * {@link ComparedFunnel.question} tells the two apart outright.
243
+ */
244
+ | "unknown";
245
+ /** The closed set, for a surface accounting for every pair it was handed. */
246
+ export declare const FUNNEL_MOVEMENTS: readonly FunnelMovement[];
247
+ /** One line per movement, for a surface putting a funnel in front of a person. */
248
+ export declare const describeFunnelMovement: (movement: FunnelMovement) => string;
249
+ /**
250
+ * What the change did to the question itself.
251
+ *
252
+ * A fact about the two **trees** and not about any window, which is what makes
253
+ * it the one answer here that survives every silence. A funnel pair is written
254
+ * by a deployment and points at node ids (0146); a change that renames, removes
255
+ * or re-roots a part it names leaves the pair asking about a page that no longer
256
+ * has it, and 0238 made that a standing rather than a nought.
257
+ */
258
+ export type QuestionMovement =
259
+ /** Both ends are in both revisions, so the two sides answer the same question. */
260
+ "asked"
261
+ /**
262
+ * The earlier revision had both ends and the later one is missing one.
263
+ *
264
+ * **The row to lead with when it is not nought.** The counters cannot move
265
+ * again and every figure on the later side is withheld, so a funnel that
266
+ * looks abandoned is a question to re-point rather than readers who stopped
267
+ * buying. The change broke it, and nothing about readers is wrong.
268
+ */
269
+ | "broken"
270
+ /** The earlier revision was missing an end and the later one has both: the change put it back. */
271
+ | "restored"
272
+ /** An end is missing from both revisions, so neither side was ever answering. */
273
+ | "stale";
274
+ /** The closed set, for a surface accounting for every compared pair. */
275
+ export declare const QUESTION_MOVEMENTS: readonly QuestionMovement[];
276
+ /** One line per movement, for a surface saying what a change did to a question. */
277
+ export declare const describeQuestionMovement: (movement: QuestionMovement) => string;
278
+ /**
279
+ * Which of the two things a funnel is made of moved the share of arrivals that
280
+ * finished.
281
+ *
282
+ * Answered by sufficiency rather than by magnitude — *would this movement have
283
+ * arrived anyway if only one of the two had moved* — which is the rule 0244 and
284
+ * 0279 publish. `null` on a pair whose conversion share did not move, because
285
+ * there is nothing to attribute.
286
+ */
287
+ export type ConversionCause =
288
+ /**
289
+ * Getting there alone was enough: the later window's reach at the earlier
290
+ * window's closing rate would have moved it the same way.
291
+ *
292
+ * The attribution worth leading with, and the one a conversion rate hides.
293
+ * *More readers finish because more readers arrive at the ask, and not
294
+ * because the ask got better.*
295
+ */
296
+ "entry"
297
+ /**
298
+ * Finishing alone was enough: the earlier window's reach at the later
299
+ * window's closing rate would have moved it the same way.
300
+ */
301
+ | "closing"
302
+ /**
303
+ * Either alone would have been enough, so the movement is over-determined.
304
+ *
305
+ * The two moved the same way, which is the ordinary shape of a change that
306
+ * worked.
307
+ */
308
+ | "either";
309
+ /**
310
+ * The closed set, and it is **one member shorter than every other
311
+ * counterfactual here**, which is a property of the arithmetic rather than a
312
+ * decision.
313
+ *
314
+ * 0244 and 0279 both publish a fourth answer — *neither alone was enough and
315
+ * the two together were* — and both need it, because the figure they split is a
316
+ * sum: traffic can move toward the places whose reading moved, and the
317
+ * interaction is then the whole of the movement.
318
+ *
319
+ * **A product has no such case.** The two counterfactuals of a product multiply
320
+ * to the product of the two levels: `(entryNow × rateWas) × (entryWas ×
321
+ * rateNow) = conversionWas × conversionNow`. So if the conversion share rose,
322
+ * the two counterfactuals multiply to more than `conversionWas` squared and at
323
+ * least one of them is above it; if it fell, at least one is below. Neither
324
+ * being enough is arithmetically unreachable, and publishing a member for it
325
+ * would be a state a surface had to handle and nothing could ever produce.
326
+ */
327
+ export declare const CONVERSION_CAUSES: readonly ConversionCause[];
328
+ /** One line per cause, for a surface saying what moved a conversion share. */
329
+ export declare const describeConversionCause: (cause: ConversionCause) => string;
330
+ /**
331
+ * One funnel question both windows were asked, as two windows answer it.
332
+ *
333
+ * Matched by the pair's two ends and their kinds, which is what a deployment
334
+ * wrote and therefore what identity means here: a pair is the same question in
335
+ * both windows when it names the same two nodes in the same two kinds, however
336
+ * either node moved in the tree.
337
+ */
338
+ export type ComparedFunnel = {
339
+ /** The pair as the later window holds it, which is the same question either way. */
340
+ readonly pair: FunnelPair;
341
+ /** The whole of what the earlier window said about it. */
342
+ readonly was: PairReach;
343
+ /** The whole of what the later window said about it. */
344
+ readonly now: PairReach;
345
+ readonly movement: FunnelMovement;
346
+ /** What the change did to whether the question names anything (0238). */
347
+ readonly question: QuestionMovement;
348
+ /**
349
+ * `now.rate ÷ was.rate` — of the readers who got to the first end, how much
350
+ * likelier they are to finish.
351
+ *
352
+ * Each side is two counts off one row, so each window's straddle has very
353
+ * nearly divided out before the two meet (0221, 0251). **It is still a ratio
354
+ * of two figures that lean down** by an amount the deployment's rollup window
355
+ * sets, which is what the bracket is for.
356
+ *
357
+ * `unmeasured` where either side has no rate, and `from-nothing` where the
358
+ * earlier one is nought: *nobody finished and now somebody does* is
359
+ * {@link movement}'s answer as well, and a quotient is a figure a surface
360
+ * divides and ranks by (0306).
361
+ */
362
+ readonly rateRatio: Ratio;
363
+ /**
364
+ * The least the true ratio could be: `now.rate ÷ was.rateAtMost`.
365
+ *
366
+ * `null` wherever {@link rateRatio} holds no quotient, and wherever either
367
+ * side's ceiling is withheld — the ceiling is built from the door's drift, so
368
+ * it goes when the door does.
369
+ *
370
+ * **A bound and not a figure of its own**, which is why it is a bare `null`
371
+ * where the ratio it brackets names its absence (0306): a bracket around a
372
+ * quotient that does not exist has nothing to say that the quotient has not
373
+ * said already, and a bracket missing where the quotient is there is the
374
+ * door's drift and nothing else.
375
+ */
376
+ readonly rateRatioAtLeast: number | null;
377
+ /** The most the true ratio could be: `now.rateAtMost ÷ was.rate`. `null` on the same terms. */
378
+ readonly rateRatioAtMost: number | null;
379
+ /**
380
+ * The bracket clears 1, so the rate moved by more than the straddle alone
381
+ * could account for.
382
+ *
383
+ * `false` is the figure to draw rather than suppress: *the rate fell by a
384
+ * third and the rollup window can explain all of it* is a sentence about the
385
+ * deployment's configuration, and it is the one a card showing a bare ratio
386
+ * prints as a collapse. `null` where there is no bracket.
387
+ */
388
+ readonly rateMoved: boolean | null;
389
+ /**
390
+ * `now.entry.share ÷ was.entry.share` — how much likelier an arrival is to
391
+ * get to the first end.
392
+ *
393
+ * `unmeasured` under any silence and where either side withheld the share,
394
+ * `from-nothing` where the earlier one is nought.
395
+ */
396
+ readonly entryRatio: Ratio;
397
+ /**
398
+ * `now.conversion.share ÷ was.conversion.share` — how much likelier an
399
+ * arrival is to finish, which is the figure a deployment means by *did the
400
+ * change work*.
401
+ *
402
+ * Absent on the same terms as {@link entryRatio}.
403
+ */
404
+ readonly conversionRatio: Ratio;
405
+ /**
406
+ * The later window's reach at the earlier window's closing rate, as a share
407
+ * of arrivals: the conversion share if only getting there had moved.
408
+ */
409
+ readonly ifOnlyEntryMoved: number | null;
410
+ /** The other diagonal: the conversion share if only the closing had moved. */
411
+ readonly ifOnlyClosingMoved: number | null;
412
+ /** Which side was enough on its own. `null` where the conversion share did not move. */
413
+ readonly cause: ConversionCause | null;
414
+ /**
415
+ * The movement in the conversion share, put on the later window's scale:
416
+ * `(now.conversion.share − was.conversion.share) × now.opened`.
417
+ *
418
+ * **A mass for ranking and not a count of people**, as every `…Moved` figure
419
+ * in this subsystem is (0280). A difference of two windows' conversion counts
420
+ * is refused here and nowhere published: both are generous by their own
421
+ * window's straddle, and the inflation does not divide out of a difference
422
+ * whose two terms are in different windows (0251).
423
+ *
424
+ * `null` under any silence and wherever either share is withheld.
425
+ */
426
+ readonly readersMoved: number | null;
427
+ };
428
+ /**
429
+ * What a change did to a page's funnels.
430
+ *
431
+ * The two {@link FunnelReach}es it is made of are returned, so nothing
432
+ * downstream derives them twice and every whole-page figure either side — the
433
+ * arrivals, the drift, the stale pairs — is one field away without a second
434
+ * join.
435
+ */
436
+ export type FunnelChange = {
437
+ /** The earlier reading's tree. The two agree unless `silence` is `different-trees`. */
438
+ readonly treeId: TreeId;
439
+ readonly revisions: {
440
+ readonly was: number;
441
+ readonly now: number;
442
+ };
443
+ /**
444
+ * The audience each side was of, where its reading named one.
445
+ *
446
+ * As `ReadingChange.audiences` carries it, and for the same reason: a `null`
447
+ * on either side is why an unprovable pair of populations is compared rather
448
+ * than refused.
449
+ */
450
+ readonly audiences: ComparedAudiences;
451
+ /** The two funnel readings this comparison is made of. */
452
+ readonly readings: {
453
+ readonly was: FunnelReach;
454
+ readonly now: FunnelReach;
455
+ };
456
+ /**
457
+ * Every question both windows were asked, ordered by the pair's two ends so a
458
+ * screen does not reorder on a refresh.
459
+ *
460
+ * Deliberately not ranked, as the readings it is made of are not: two pairs
461
+ * are two questions about different nodes, and the pair that moved the most
462
+ * readers is reliably whichever first end is shallowest in the page.
463
+ * {@link mostGained} and {@link mostLost} are the two a surface leads with.
464
+ */
465
+ readonly compared: readonly ComparedFunnel[];
466
+ /**
467
+ * Questions only the later window was asked, as it answered them.
468
+ *
469
+ * A deployment that added a pair, and the window before it was added has
470
+ * nothing to say — which is a fact about the configuration rather than about
471
+ * the change, and the reason this is a list and not a movement.
472
+ */
473
+ readonly added: readonly PairReach[];
474
+ /** Questions only the earlier window was asked, as it answered them. */
475
+ readonly removed: readonly PairReach[];
476
+ /** Compared pairs by what happened to the verdict. The five add to {@link compared}'s length. */
477
+ readonly movements: Readonly<Record<FunnelMovement, number>>;
478
+ /** Compared pairs by what the change did to the question. The four add to {@link compared}'s length. */
479
+ readonly questions: Readonly<Record<QuestionMovement, number>>;
480
+ /**
481
+ * The compared pair whose conversion share gained the most readers at the
482
+ * later window's scale, or `null` where none gained.
483
+ *
484
+ * Ranked by {@link ComparedFunnel.readersMoved} — by headcount rather than by
485
+ * share, which is the rule a fall between two siblings is ranked by (0221): a
486
+ * funnel two readers in three now finish is a better rate and a smaller win
487
+ * than one four hundred in a thousand do.
488
+ */
489
+ readonly mostGained: ComparedFunnel | null;
490
+ /** The compared pair that lost the most, by the same rule. `null` where none lost. */
491
+ readonly mostLost: ComparedFunnel | null;
492
+ /**
493
+ * Compared pairs whose rate ratio is given and whose bracket contains 1, so
494
+ * the straddle alone could account for the whole movement.
495
+ *
496
+ * The figure that says how much of this screen to believe: a reading where
497
+ * most of the pairs are in here is a reading of the deployment's rollup
498
+ * window.
499
+ */
500
+ readonly undecided: number;
501
+ /**
502
+ * Neither window had a page view that spanned a rollup boundary, so every
503
+ * rate on both sides is exact and every bracket is a point.
504
+ *
505
+ * False wherever either window's drift is unknown, which is every state of
506
+ * the door: there is nothing to measure the straddle with.
507
+ */
508
+ readonly exact: boolean;
509
+ /**
510
+ * Pairs naming a question already seen on that side, where every one after
511
+ * the first was ignored.
512
+ *
513
+ * A reading built by `funnelReachOf` holds one row per question, so this is a
514
+ * caller that concatenated two readings. Counting the second occurrence would
515
+ * put one window's funnel in a comparison twice, which is the error that is
516
+ * permanent once the counters hold it (0158) and the one this subsystem
517
+ * checks for by habit.
518
+ */
519
+ readonly duplicated: number;
520
+ /** Set where a figure is missing and why. `null` where nothing is. */
521
+ readonly silence: FunnelChangeSilence | null;
522
+ };
523
+ /**
524
+ * Which side was enough on its own, by the direction each counterfactual
525
+ * carries — the sufficiency rule the two earlier counterfactuals here publish
526
+ * (0244, 0279), asked of a product.
527
+ *
528
+ * Published rather than private so that the one answer a funnel cannot produce
529
+ * can be shown to be handled rather than argued away: handed four numbers that
530
+ * are not a funnel's two factors, where neither counterfactual carries the
531
+ * movement, it returns `null` rather than attributing the movement to a side
532
+ * that did not cause it.
533
+ *
534
+ * `null` where nothing moved, which is the rule both earlier counterfactuals
535
+ * state: a figure that did not move has nothing to attribute.
536
+ */
537
+ export declare const conversionCauseOf: (was: number, now: number, ifOnlyEntryMoved: number, ifOnlyClosingMoved: number) => ConversionCause | null;
538
+ /**
539
+ * Hold two windows of one page's funnels against each other.
540
+ *
541
+ * Both sides are readings `funnelReachOf` built, so the revision each belongs
542
+ * to, the rows it dropped and the arrivals it was read against travel with it
543
+ * and nothing is inferred here (0231).
544
+ *
545
+ * Linear in the pairs of the two readings, with one pass over each.
546
+ */
547
+ export declare const funnelChangeOf: (was: FunnelReach, now: FunnelReach) => FunnelChange;
548
+ //# sourceMappingURL=funnel-change.d.ts.map