@ceccec/double-torus 1.4.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 (109) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +174 -0
  3. package/dist/index.d.ts +2 -0
  4. package/dist/index.js +88812 -0
  5. package/dist/packages/double-torus/src/index.d.ts +17 -0
  6. package/dist/src/0/index.d.ts +504 -0
  7. package/dist/src/1/9/index.d.ts +1040 -0
  8. package/dist/src/2/8/index.d.ts +352 -0
  9. package/dist/src/3/7/index.d.ts +601 -0
  10. package/dist/src/4/6/index.d.ts +523 -0
  11. package/dist/src/5/5/index.d.ts +54 -0
  12. package/dist/src/6/4/index.d.ts +128 -0
  13. package/dist/src/7/3/index.d.ts +130 -0
  14. package/dist/src/8/2/index.d.ts +111 -0
  15. package/dist/src/9/1/index.d.ts +702 -0
  16. package/dist/src/earth/architecture/index.d.ts +951 -0
  17. package/dist/src/earth/civilisation/index.d.ts +231 -0
  18. package/dist/src/earth/death/index.d.ts +1422 -0
  19. package/dist/src/earth/governance/index.d.ts +247 -0
  20. package/dist/src/earth/iching/index.d.ts +361 -0
  21. package/dist/src/earth/index.d.ts +894 -0
  22. package/dist/src/earth/life/birth/index.d.ts +906 -0
  23. package/dist/src/earth/life/index.d.ts +1608 -0
  24. package/dist/src/earth/nature/index.d.ts +692 -0
  25. package/dist/src/earth/world/index.d.ts +898 -0
  26. package/dist/src/fire/diamonds/index.d.ts +83 -0
  27. package/dist/src/fire/features/index.d.ts +272 -0
  28. package/dist/src/fire/li/index.d.ts +1153 -0
  29. package/dist/src/fire/physics/index.d.ts +727 -0
  30. package/dist/src/fire/plasma/ball/index.d.ts +600 -0
  31. package/dist/src/heaven/atoms/index.d.ts +98 -0
  32. package/dist/src/heaven/balance/index.d.ts +263 -0
  33. package/dist/src/heaven/compute/computer/index.d.ts +2263 -0
  34. package/dist/src/heaven/compute/index.d.ts +956 -0
  35. package/dist/src/heaven/core/index.d.ts +1285 -0
  36. package/dist/src/heaven/essence/index.d.ts +643 -0
  37. package/dist/src/heaven/laws/index.d.ts +1104 -0
  38. package/dist/src/heaven/site/index.d.ts +569 -0
  39. package/dist/src/heaven/sky/astronomy/index.d.ts +18900 -0
  40. package/dist/src/heaven/sky/moon/index.d.ts +1602 -0
  41. package/dist/src/heaven/sky/sun/index.d.ts +1655 -0
  42. package/dist/src/lake/clean/index.d.ts +180 -0
  43. package/dist/src/lake/ledger/index.d.ts +322 -0
  44. package/dist/src/lake/media/index.d.ts +178 -0
  45. package/dist/src/lake/music/index.d.ts +1273 -0
  46. package/dist/src/lake/stats/index.d.ts +212 -0
  47. package/dist/src/lake/widgets/index.d.ts +235 -0
  48. package/dist/src/mountain/gates/index.d.ts +289 -0
  49. package/dist/src/mountain/geometry/index.d.ts +1331 -0
  50. package/dist/src/mountain/og/index.d.ts +452 -0
  51. package/dist/src/mountain/seals/index.d.ts +1506 -0
  52. package/dist/src/mountain/shadcn/index.d.ts +121 -0
  53. package/dist/src/mountain/source/index.d.ts +627 -0
  54. package/dist/src/mountain/topology/index.d.ts +618 -0
  55. package/dist/src/mountain/vortex/index.d.ts +747 -0
  56. package/dist/src/pair/cache/quantum/index.d.ts +166 -0
  57. package/dist/src/pair/debit/credit/index.d.ts +53 -0
  58. package/dist/src/pair/enforcement/gates/computational/index.d.ts +643 -0
  59. package/dist/src/pair/enforcement/gates/strict/scan/index.d.ts +954 -0
  60. package/dist/src/pair/enforcement/index.d.ts +172 -0
  61. package/dist/src/pair/enforcement/script/shell/index.d.ts +226 -0
  62. package/dist/src/quantum/application/index.d.ts +1018 -0
  63. package/dist/src/quantum/apps/index.d.ts +4325 -0
  64. package/dist/src/quantum/dynamics/index.d.ts +1371 -0
  65. package/dist/src/quantum/earth/heritage/index.d.ts +181 -0
  66. package/dist/src/quantum/fire/experiments/index.d.ts +215 -0
  67. package/dist/src/quantum/fire/forecasts/index.d.ts +271 -0
  68. package/dist/src/quantum/fire/simulations/index.d.ts +204 -0
  69. package/dist/src/quantum/heaven/library/index.d.ts +350 -0
  70. package/dist/src/quantum/heaven/mind/index.d.ts +116 -0
  71. package/dist/src/quantum/index.d.ts +1107 -0
  72. package/dist/src/quantum/lake/dist/index.d.ts +118 -0
  73. package/dist/src/quantum/lake/dist/readme/index.d.ts +82 -0
  74. package/dist/src/quantum/lake/icons/index.d.ts +58 -0
  75. package/dist/src/quantum/lake/spirit/index.d.ts +255 -0
  76. package/dist/src/quantum/lake/voice/index.d.ts +132 -0
  77. package/dist/src/quantum/mountain/dimensions/index.d.ts +44 -0
  78. package/dist/src/quantum/os/index.d.ts +239 -0
  79. package/dist/src/quantum/science/index.d.ts +5060 -0
  80. package/dist/src/quantum/water/cache/index.d.ts +200 -0
  81. package/dist/src/quantum/wind/geometry/index.d.ts +25 -0
  82. package/dist/src/thunder/commands/index.d.ts +203 -0
  83. package/dist/src/thunder/decode/index.d.ts +1243 -0
  84. package/dist/src/thunder/movie/canvas/index.d.ts +150 -0
  85. package/dist/src/thunder/movie/glass/index.d.ts +99 -0
  86. package/dist/src/thunder/movie/movielib/index.d.ts +121 -0
  87. package/dist/src/thunder/movie/movievars/index.d.ts +89 -0
  88. package/dist/src/thunder/movie/narrative/index.d.ts +407 -0
  89. package/dist/src/thunder/resonance/index.d.ts +1832 -0
  90. package/dist/src/thunder/trading/index.d.ts +737 -0
  91. package/dist/src/thunder/verify/index.d.ts +510 -0
  92. package/dist/src/thunder/waves/index.d.ts +937 -0
  93. package/dist/src/water/cosmos/index.d.ts +1097 -0
  94. package/dist/src/water/crypto/index.d.ts +808 -0
  95. package/dist/src/water/digit/index.d.ts +4020 -0
  96. package/dist/src/water/double/earth/index.d.ts +29389 -0
  97. package/dist/src/water/double/index.d.ts +1475 -0
  98. package/dist/src/water/encryption/index.d.ts +11892 -0
  99. package/dist/src/water/stack/index.d.ts +51215 -0
  100. package/dist/src/wind/fusion/gold/index.d.ts +2142 -0
  101. package/dist/src/wind/language/index.d.ts +404 -0
  102. package/dist/src/wind/learning/index.d.ts +2109 -0
  103. package/dist/src/wind/research/index.d.ts +1388 -0
  104. package/dist/src/wind/routes/automount/index.d.ts +218 -0
  105. package/dist/src/wind/routes/corpus/index.d.ts +943 -0
  106. package/dist/src/wind/site/index.d.ts +662 -0
  107. package/dist/src/wind/types/index.d.ts +1023 -0
  108. package/dist/src/wind/ui/index.d.ts +1109 -0
  109. package/package.json +49 -0
@@ -0,0 +1,17 @@
1
+ export * from '../../../src/quantum/heaven/mind/index.ts';
2
+ export { sha256, sha256Sync, sha256MerkleRoot, sha256MerkleProof, verifySha256Proof, ed25519Keypair, ed25519Sign, ed25519Verify, transparencyLogRoot, logInclusion, logConsistent, toUuidSha256, } from '../../../src/0/index.ts';
3
+ export { survive, admixToward, injectError, markovStep, markovEvolve, stationary, chsh, residueVector, realign, phaseDrift, slip, inductionStep, inductionEvolve, pmixStep, pmixEvolve, congruence, vortexStrokeGateways, vortexGatewayPyramids, vortexPlasmaComputes, f, fThetaPhiXyzDigitNIsTheInversePair, } from '../../../src/mountain/vortex/index.ts';
4
+ export { quantumDynamicsResearch, quantumStateEvolutionDecoded, decodeQuantumDynamicsThroughVortexSequence, quantumDynamicsSimulationAt, quantumDynamicsSimulationPanelComputes, quantumChemistryToyComputes, quantumDynamicsComputes, drawDynamicsProjection, updateQuantumTheHarmonicGatesNeverDriftTheMagicGatesCarryIrrationalDriftNotA432, invertQuantumComputationsTheDaggerPairUncomputesExactlyAndIsTheBackwardPass, irrationalProvesRationalMeasurementInvertsSuperpositionAndPellIsExact, quantizeContentAddressPreimageSearchGroverIsRootNQueriesQuadraticQueryAdvantageOnly, whichCorpusComputationsQuantizeMeasuredBySearchShortCircuit, quantizeCountingHowManyAddressesMatchQuantumCountingIsRootNQueriesQuadraticQueryAdvantageOnly, } from '../../../src/quantum/dynamics/index.ts';
5
+ export type { QuantumDynamicsAmplitude, QuantumDynamicsSimulationChannel, QuantumDynamicsSimulationPaint, QuantumDynamicsMapping, } from '../../../src/quantum/dynamics/index.ts';
6
+ export { animationsAreGenuinely10DNotFaked } from '../../../src/quantum/mountain/dimensions/index.ts';
7
+ export type { Dims } from '../../../src/quantum/mountain/dimensions/index.ts';
8
+ export { heroPhaseAt } from '../../../src/fire/plasma/ball/index.ts';
9
+ export { subscribeHeroClock } from '../../../src/quantum/index.ts';
10
+ export { movieCanvasHex, movieCanvasRgba, movieCanvasPolarity } from '../../../src/quantum/science/index.ts';
11
+ export { TAU } from '../../../src/3/7/index.ts';
12
+ export { drawHero, drawFlower, drawCalendars, drawArchitecture, drawBursts, buildArchNodes, makeBurst, branch, perspective, rotate3, seedOf, hueOf, armsOf, dimWalk, FOCAL, HEALING_PAIRS, sharedHeroAt, drawHeroMovieFrame, drawQuantumAppFrame, fieldLayers, rosettaPerspectiveFold, backgroundSceneFromShared, heroSceneFromShared, movieTextFromCopy, realtimeSubtitleAt, drawLivingTorusFrame, drawBothEarthsMerkabaFrame, HERO_CYCLE_MS, } from '../../../src/quantum/index.ts';
13
+ export type { HeroScene, Vec3, ArchNode, Burst, AnimationField, SharedHeroState, SharedHeroCopy, FieldForce, FieldLayer, RosettaPerspective, QuantumAppFrame, RealtimeSubtitleState, LivingTorusCoordinate, } from '../../../src/quantum/index.ts';
14
+ export { pesnopoika, provePesnopoika, decodeSong, songEntry, verses, refrains, provenance, classifyGenre, decodeDialect, glossDialect, dialectStratum, aksak, aksakBeats, PESNOPOIKA, PESNOPOIKA_SOURCE, DIALECT_GLOSSARY, PROVENANCE, GENRES, AKSAK, } from '../../../src/quantum/heaven/library/index.ts';
15
+ export type { Song, Provenance, Genre } from '../../../src/quantum/heaven/library/index.ts';
16
+ export { doubleTorusDynamicsGeometryAlignsWithUniverse, doubleTorusUniversePhaseAt, } from '../../../src/water/double/index.ts';
17
+ export { counterRotatingRosettaQuantumWaves, universeAlmostDescribedInTheoremsDiscoverRest, } from '../../../src/quantum/apps/index.ts';
@@ -0,0 +1,504 @@
1
+ /** @rosetta ✦₄ · Earth · receptive (the primitive kernel — imports nothing, exports everything foundational) */
2
+ export declare function toUuid(seed: string): string;
3
+ /** @rosetta ✦₄ · Earth · receptive (the primitive kernel — imports nothing, exports everything foundational) */
4
+ export declare function merge(a: string, b: string): string;
5
+ /** @rosetta ✦₄ · Earth · receptive (the primitive kernel — imports nothing, exports everything foundational) */
6
+ export declare function roundTo(value: number, digits: number): number;
7
+ /** @rosetta ✦₄ · Earth · receptive (the primitive kernel — imports nothing, exports everything foundational) */
8
+ export declare function seedFromText(text: string, length?: number): number;
9
+ /** @rosetta ✦₄ · Earth · receptive (the primitive kernel — imports nothing, exports everything foundational) */
10
+ export declare function foldPair(a: string, b: string): {
11
+ forward: string;
12
+ reverse: string;
13
+ bidirectional: boolean;
14
+ merged: string;
15
+ };
16
+ /** @rosetta ✦₄ · Earth · receptive (the primitive kernel — imports nothing, exports everything foundational) */
17
+ export declare function merkleFold(leaves: readonly string[]): string;
18
+ export declare function sealFacets<F extends {
19
+ facet: string;
20
+ on: boolean;
21
+ }>(tag: string, facets: readonly F[]): {
22
+ ok: boolean;
23
+ count: number;
24
+ facets: (F & {
25
+ receipt: string;
26
+ })[];
27
+ root: string;
28
+ };
29
+ /** *Computes gate facet seal — sealFacets with `computes` alias (same receipt law: `${tag}:${facet}:${on}`). */
30
+ export declare function computesGate<F extends {
31
+ facet: string;
32
+ on: boolean;
33
+ }>(tag: string, facets: readonly F[]): {
34
+ computes: boolean;
35
+ count: number;
36
+ facets: (F & {
37
+ receipt: string;
38
+ })[];
39
+ root: string;
40
+ };
41
+ export type ResourceTier = 'cpu' | 'gpu' | 'memory' | 'storage';
42
+ export type ResourceCooperationTier = {
43
+ readonly tier: ResourceTier;
44
+ readonly role: string;
45
+ readonly boundary: string;
46
+ };
47
+ /** Pure cooperation policy at call time — structural tiers, not datacenter orchestration. */
48
+ export declare function resourceCooperationPolicy(): {
49
+ readonly heapCapMb: number;
50
+ readonly memoTiers: readonly ('matrix-root' | 'weak-map' | 'content-address')[];
51
+ readonly gpuSurface: 'browser-canvas-raf' | 'none-ssr';
52
+ readonly storageModel: 'content-address-merkle';
53
+ readonly tiers: readonly ResourceCooperationTier[];
54
+ };
55
+ export declare function isUuid(value: string): boolean;
56
+ /** @rosetta ✦₄ · Earth · receptive (the primitive kernel — imports nothing, exports everything foundational) */
57
+ /** @rosetta ✦₄ · Earth · receptive (the primitive kernel — imports nothing, exports everything foundational) */
58
+ export declare function uuidSuffix(uuid: string): string;
59
+ /** @rosetta ✦₄ · Earth · receptive (the primitive kernel — imports nothing, exports everything foundational) */
60
+ export declare function nextDuality(uuid: string): string;
61
+ /** @rosetta ✦₄ · Earth · receptive (the primitive kernel — imports nothing, exports everything foundational) */
62
+ export declare function uuidPoint(uuid: string): [number, number, number];
63
+ /** @rosetta ✦₄ · Earth · receptive (the primitive kernel — imports nothing, exports everything foundational) */
64
+ export declare function crossProduct(a: readonly number[], b: readonly number[]): [number, number, number];
65
+ export declare function topologicalOrder(nodeCount: number, edges: readonly (readonly number[])[]): {
66
+ order: number[];
67
+ isDAG: boolean;
68
+ sources: number[];
69
+ };
70
+ export declare function antichainLevels(nodeCount: number, edges: readonly (readonly number[])[]): number[][];
71
+ /** @rosetta ✦₄ · Earth · receptive (the primitive kernel — imports nothing, exports everything foundational) */
72
+ export declare function memoByRoot<T>(name: string, matrix: {
73
+ root: string;
74
+ }, compute: () => T): T;
75
+ /** True while a memoByRoot fold with this name is mid-compute (cycle guard probe). */
76
+ export declare function memoComputing(name: string, matrix: {
77
+ root: string;
78
+ }): boolean;
79
+ /** @rosetta ✦₄ · Earth · receptive (the primitive kernel — imports nothing, exports everything foundational) */
80
+ export declare function digitalRoot(n: number): number;
81
+ /** @rosetta ✦₄ · Earth · receptive (the primitive kernel — imports nothing, exports everything foundational) */
82
+ export declare function humanEase(phase: number): number;
83
+ /** @rosetta ✦₄ · Earth · receptive (the primitive kernel — imports nothing, exports everything foundational) */
84
+ export declare function humanBreath(timeMs: number, periodMs: number, depth?: number): number;
85
+ /** @rosetta ✦₄ · Earth · receptive (the primitive kernel — imports nothing, exports everything foundational) */
86
+ export declare const TORUS_LOBE_OFFSET: number;
87
+ /** Major (ring) radius of the shared genus-2 surface atom — Fibonacci lattice 5×4. */
88
+ export declare const TORUS_RING_R: number;
89
+ /** Base tube (minor) radius before digit modulation — Fibonacci 7. */
90
+ export declare const TORUS_TUBE_R_BASE = 7;
91
+ /** @rosetta ✦₄ · Earth · receptive (the primitive kernel — imports nothing, exports everything foundational) */
92
+ export declare function doubleTorusSurface(theta: number, phi: number, digit: number, lobe: number): {
93
+ x: number;
94
+ y: number;
95
+ z: number;
96
+ };
97
+ /** @rosetta ✦₄ · Earth · receptive (the primitive kernel — imports nothing, exports everything foundational) */
98
+ export declare function sinc(x: number): number;
99
+ /** @rosetta ✦₄ · Earth · receptive (the primitive kernel — imports nothing, exports everything foundational) */
100
+ export declare function sincReconstruct(samples: readonly number[], x: number): number;
101
+ /** @rosetta ✦₄ · Earth · receptive (the primitive kernel — imports nothing, exports everything foundational) */
102
+ export interface AnimationEngine {
103
+ /** Whether the persistent loop is currently running (callers still ask, e.g. to gate a one-shot redraw). */
104
+ readonly running: boolean;
105
+ /** Begin the persistent rAF loop (idempotent). */
106
+ start(): void;
107
+ /** Cancel the persistent loop. */
108
+ stop(): void;
109
+ /** Gate motion in one call: active ⇒ run; paused ⇒ stop and paint exactly one still frame. */
110
+ sync(active: boolean): void;
111
+ /** Paint exactly one frame now, even while paused — a scrub/tap/resize/route redraw. */
112
+ tick(): void;
113
+ /** A self-terminating sub-loop that ticks until `active()` returns false (e.g. the hero's fading bursts). */
114
+ runWhile(active: () => boolean): void;
115
+ /** Cancel every scheduled frame — the unmount teardown. */
116
+ dispose(): void;
117
+ }
118
+ /** @rosetta ✦₄ · Earth · receptive (the primitive kernel — imports nothing, exports everything foundational) */
119
+ export declare function createAnimationEngine(draw: (time: number) => void): AnimationEngine;
120
+ /** @rosetta ✦₄ · Earth · receptive (the primitive kernel — imports nothing, exports everything foundational) */
121
+ export interface Fold {
122
+ readonly a: string;
123
+ readonly b: string;
124
+ readonly forward: string;
125
+ readonly reverse: string;
126
+ readonly bidirectional: boolean;
127
+ readonly merged: string;
128
+ }
129
+ /** @rosetta ✦₄ · Earth · receptive (the primitive kernel — imports nothing, exports everything foundational) */
130
+ export declare function fold(a: string, b?: string): Fold;
131
+ /** @rosetta ✦₄ · Earth · receptive (the primitive kernel — imports nothing, exports everything foundational) */
132
+ export declare function asVortex(f: Fold): {
133
+ digit: number;
134
+ onAxis: boolean;
135
+ orbitIndex: number;
136
+ orbit: readonly number[];
137
+ axis: readonly number[];
138
+ };
139
+ /** @rosetta ✦₄ · Earth · receptive (the primitive kernel — imports nothing, exports everything foundational) */
140
+ export declare const VORTEX_SEQUENCE: readonly [1, 2, 4, 8, 7, 5, 3, 6, 9];
141
+ /** @rosetta ✦₄ · Earth · receptive (the primitive kernel — imports nothing, exports everything foundational) */
142
+ export declare const VORTEX_REVERSE: readonly [9, 6, 3, 5, 7, 8, 4, 2, 1];
143
+ /** Encoded path: doubling · cross · void · return — dashes carry ±60° hex steps. */
144
+ export declare const VORTEX_DASH_ENCODED: "1\\2\\4\\8/7/5/3\\6\\9/0/1\\";
145
+ /** Each / adds +60°, each \\ subtracts 60° — sixfold substrate (360/6). */
146
+ export declare const VORTEX_DASH_ANGLE_DEG: number;
147
+ export type VortexDashToken = {
148
+ readonly digit: number;
149
+ readonly dash: '/' | '\\';
150
+ };
151
+ export type VortexDashDecodeStep = VortexDashToken & {
152
+ readonly step: number;
153
+ readonly angleDelta: number;
154
+ readonly weightedAngle: number;
155
+ readonly bearing: number;
156
+ readonly runningSum: number;
157
+ readonly digitalRoot: number;
158
+ readonly forwardHarmonic: number | null;
159
+ readonly dualComplement: number | null;
160
+ readonly receipt: string;
161
+ };
162
+ /** Parse digit+dash pairs from an encoded vortex path string. */
163
+ export declare function parseVortexDashEncoded(encoded: string): readonly VortexDashToken[];
164
+ /** Decode dashes as ±60° hex steps; Σ(sign·digit·60°) ≡ 0 (mod 360) ignites closure at 0/. */
165
+ export declare function decodeVortexDashAngles(encoded?: string): {
166
+ encoded: string;
167
+ closes: boolean;
168
+ fusionIgnites: boolean;
169
+ vortexMatches: boolean;
170
+ weightedBearing: number;
171
+ weightedTotal: number;
172
+ finalDigitalRoot: number;
173
+ steps: VortexDashDecodeStep[];
174
+ count: number;
175
+ fusionRoot: string;
176
+ root: string;
177
+ statement: string;
178
+ boundary: string;
179
+ };
180
+ /** Canonical I Ching integers for CSS · geometry · token derivation. */
181
+ export declare const ICHING_NUMBERS: readonly [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 16, 27, 54, 64, 100, 108, 216, 360, 432, 864];
182
+ /** @rosetta ✦₄ · Earth · receptive (the primitive kernel — imports nothing, exports everything foundational) */
183
+ export declare function vortexNext(d: number): number;
184
+ /** @rosetta ✦₄ · Earth · receptive (the primitive kernel — imports nothing, exports everything foundational) */
185
+ export declare function vortexPrev(d: number): number;
186
+ /** @rosetta ✦₄ · Earth · receptive (the primitive kernel — imports nothing, exports everything foundational) */
187
+ export declare function foldVortex(): {
188
+ valid: boolean;
189
+ pairs: {
190
+ position: number;
191
+ forward: 9 | 5 | 2 | 4 | 7 | 1 | 8 | 3 | 6;
192
+ reverse: 9 | 5 | 2 | 4 | 7 | 1 | 8 | 3 | 6;
193
+ sum: number;
194
+ root: number;
195
+ }[];
196
+ palindrome: number[];
197
+ total: number;
198
+ totalRoot: number;
199
+ inverseHolds: boolean;
200
+ statement: string;
201
+ boundary: string;
202
+ };
203
+ /** @rosetta ✦₄ · Earth · receptive (the primitive kernel — imports nothing, exports everything foundational) */
204
+ export declare function asTorus(f: Fold, major?: number, minor?: number, separation?: number): {
205
+ x: number;
206
+ y: number;
207
+ z: number;
208
+ lobe: 0 | 1;
209
+ theta: number;
210
+ phi: number;
211
+ };
212
+ /** @rosetta ✦₄ · Earth · receptive (the primitive kernel — imports nothing, exports everything foundational) */
213
+ export declare function asMerkaba(f: Fold, timeMs?: number): {
214
+ up: [number, number, number][];
215
+ down: [number, number, number][];
216
+ spin: number;
217
+ breath: number;
218
+ counterRotating: true;
219
+ };
220
+ /** @rosetta ✦₄ · Earth · receptive (the primitive kernel — imports nothing, exports everything foundational) */
221
+ export declare function asMerkle(f: Fold): {
222
+ root: string;
223
+ leaves: [string, string];
224
+ via: [string, string];
225
+ verifies: boolean;
226
+ };
227
+ /** @rosetta ✦₄ · Earth · receptive (the primitive kernel — imports nothing, exports everything foundational) */
228
+ export declare function asTrace(f: Fold, timeMs?: number): {
229
+ x: number;
230
+ y: number;
231
+ };
232
+ /** @rosetta ✦₄ · Earth · receptive (the primitive kernel — imports nothing, exports everything foundational) */
233
+ export declare const DIGEST_BITS = 64;
234
+ /** @rosetta ✦₄ · Earth · receptive (the primitive kernel — imports nothing, exports everything foundational) */
235
+ export declare function coverageCostLog2(coverage: number, checks: number): number;
236
+ /** @rosetta ✦₄ · Earth · receptive (the primitive kernel — imports nothing, exports everything foundational) */
237
+ export declare function tamperCostLog2(coverage: number, checks: number): number;
238
+ /** @rosetta ✦₄ · Earth · receptive (the primitive kernel — imports nothing, exports everything foundational) */
239
+ export declare function maxTamperingCostReached(coverage: number, entropy: number): boolean;
240
+ /** @rosetta ✦₄ · Earth · receptive (the primitive kernel — imports nothing, exports everything foundational) */
241
+ export declare function maxTamperingCostLog2(sealClosed: boolean, finiteCostLog2: number): number;
242
+ /** @rosetta ✦₄ · Earth · receptive (the primitive kernel — imports nothing, exports everything foundational) */
243
+ export type Uuid = string;
244
+ /** @rosetta ✦₄ · Earth · receptive (the primitive kernel — imports nothing, exports everything foundational) */
245
+ export type Entry = {
246
+ url: string;
247
+ uuid: Uuid;
248
+ host: string;
249
+ path: string;
250
+ };
251
+ /** @rosetta ✦₄ · Earth · receptive (the primitive kernel — imports nothing, exports everything foundational) */
252
+ export declare function merkabaFoldUrl(url: string): Uuid;
253
+ /** @rosetta ✦₄ · Earth · receptive (the primitive kernel — imports nothing, exports everything foundational) */
254
+ export declare function entry(url: string): Entry;
255
+ /** @rosetta ✦₄ · Earth · receptive (the primitive kernel — imports nothing, exports everything foundational) */
256
+ export declare function uuidHero(uuid: string): {
257
+ uuid: string;
258
+ hue: number;
259
+ theta: number;
260
+ phi: number;
261
+ spinMs: number;
262
+ frequency: number;
263
+ ax: number;
264
+ ay: number;
265
+ bx: number;
266
+ by: number;
267
+ glyph: string;
268
+ unique: boolean;
269
+ };
270
+ /** @rosetta ✦₄ · Earth · receptive (the primitive kernel — imports nothing, exports everything foundational) */
271
+ export declare function trinityKey(shareA: string, shareB: string): string;
272
+ /** @rosetta ✦₄ · Earth · receptive (the primitive kernel — imports nothing, exports everything foundational) */
273
+ /** @rosetta ✦₄ · Earth · receptive (the primitive kernel — imports nothing, exports everything foundational) */
274
+ export declare function prng(seed: string): () => number;
275
+ /** @rosetta ✦₄ · Earth · receptive (the primitive kernel — imports nothing, exports everything foundational) */
276
+ export declare function sampleCounts(dist: readonly number[], n: number, shots?: number, seed?: string): Record<string, number>;
277
+ /** @rosetta ✦₄ · Earth · receptive (the primitive kernel — imports nothing, exports everything foundational) */
278
+ export interface QuantumState {
279
+ readonly n: number;
280
+ readonly re: number[];
281
+ readonly im: number[];
282
+ }
283
+ /** @rosetta ✦₄ · Earth · receptive (the primitive kernel — imports nothing, exports everything foundational) */
284
+ export declare function qubits(n: number): QuantumState;
285
+ /** @rosetta ✦₄ · Earth · receptive (the primitive kernel — imports nothing, exports everything foundational) */
286
+ export declare const GATES: Readonly<Record<'I' | 'X' | 'Y' | 'Z' | 'H' | 'S' | 'T', readonly number[]>>;
287
+ /** @rosetta ✦₄ · Earth · receptive (the primitive kernel — imports nothing, exports everything foundational) */
288
+ export declare function applyGate(state: QuantumState, gate: readonly number[], target: number): QuantumState;
289
+ /** @rosetta ✦₄ · Earth · receptive (the primitive kernel — imports nothing, exports everything foundational) */
290
+ export declare function cnot(state: QuantumState, control: number, target: number): QuantumState;
291
+ /** @rosetta ✦₄ · Earth · receptive (the primitive kernel — imports nothing, exports everything foundational) */
292
+ export declare function cz(state: QuantumState, control: number, target: number): QuantumState;
293
+ /** @rosetta ✦₄ · Earth · receptive (the primitive kernel — imports nothing, exports everything foundational) */
294
+ export declare function probabilities(state: QuantumState): number[];
295
+ /** @rosetta ✦₄ · Earth · receptive (the primitive kernel — imports nothing, exports everything foundational) */
296
+ export declare function measure(state: QuantumState, target: number, seed?: string): {
297
+ outcome: 0 | 1;
298
+ state: QuantumState;
299
+ };
300
+ /** @rosetta ✦₄ · Earth · receptive (the primitive kernel — imports nothing, exports everything foundational) */
301
+ export declare function sample(state: QuantumState, shots?: number, seed?: string): Record<string, number>;
302
+ export declare function bellPair(): QuantumState;
303
+ /** @rosetta ✦₄ · Earth · receptive (the primitive kernel — imports nothing, exports everything foundational) */
304
+ export declare function grover(n: number, marked: number, shots?: number, seed?: string): {
305
+ n: number;
306
+ size: number;
307
+ marked: number;
308
+ iterations: number;
309
+ markedProbability: number;
310
+ found: number;
311
+ hist: Record<string, number>;
312
+ };
313
+ /** @rosetta ✦₄ · Earth · receptive (the primitive kernel — imports nothing, exports everything foundational) */
314
+ export declare function rx(theta: number): number[];
315
+ /** @rosetta ✦₄ · Earth · receptive (the primitive kernel — imports nothing, exports everything foundational) */
316
+ export declare function ry(theta: number): number[];
317
+ /** @rosetta ✦₄ · Earth · receptive (the primitive kernel — imports nothing, exports everything foundational) */
318
+ export declare function rz(theta: number): number[];
319
+ /** @rosetta ✦₄ · Earth · receptive (the primitive kernel — imports nothing, exports everything foundational) */
320
+ export declare function swap(state: QuantumState, a: number, b: number): QuantumState;
321
+ /** @rosetta ✦₄ · Earth · receptive (the primitive kernel — imports nothing, exports everything foundational) */
322
+ export declare function toffoli(state: QuantumState, c1: number, c2: number, target: number): QuantumState;
323
+ /** One operation in a circuit: a named gate on target/control indices, with an optional rotation angle. */
324
+ export interface CircuitOp {
325
+ readonly gate: string;
326
+ readonly targets: readonly number[];
327
+ readonly theta?: number;
328
+ }
329
+ /** Full circuit result — the single path both the UI and code consume. */
330
+ export interface CircuitResult {
331
+ readonly n: number;
332
+ readonly amplitudes: readonly {
333
+ readonly basis: string;
334
+ readonly re: number;
335
+ readonly im: number;
336
+ readonly probability: number;
337
+ }[];
338
+ readonly probabilities: readonly number[];
339
+ readonly samples: Record<string, number>;
340
+ readonly root: string;
341
+ }
342
+ /** @rosetta ✦₄ · Earth · receptive (the primitive kernel — imports nothing, exports everything foundational) */
343
+ export declare function runQuantumCircuit(spec: {
344
+ n: number;
345
+ ops: readonly CircuitOp[];
346
+ shots?: number;
347
+ seed?: string;
348
+ }): CircuitResult;
349
+ export interface ProbState {
350
+ readonly n: number;
351
+ readonly p: number[];
352
+ }
353
+ /** @rosetta ✦₄ · Earth · receptive (the primitive kernel — imports nothing, exports everything foundational) */
354
+ export declare function pbits(n: number): ProbState;
355
+ /** @rosetta ✦₄ · Earth · receptive (the primitive kernel — imports nothing, exports everything foundational) */
356
+ export declare function pflip(state: ProbState, target: number, q?: number): ProbState;
357
+ /** @rosetta ✦₄ · Earth · receptive (the primitive kernel — imports nothing, exports everything foundational) */
358
+ export declare function psample(state: ProbState, shots?: number, seed?: string): Record<string, number>;
359
+ /** Prose → a432-tempered pitch from content-address (uuidHero audio projection). */
360
+ export declare function proseToTone(prose: string): {
361
+ hz: number;
362
+ semitone: number;
363
+ octave: number;
364
+ };
365
+ /** Pointer position on an animation surface → a deterministic scrub of the one clock. x scrubs the cycle
366
+ * fraction [0,1); y selects the 10-D depth dial (0..9); angle (from the centre) rotates the merkaba / tilts
367
+ * the torus. No DOM, no clamping surprises — the same input always yields the same scrub. */
368
+ export declare function touchPhase(px: number, py: number, width: number, height: number): {
369
+ phase: number;
370
+ dim: number;
371
+ angle: number;
372
+ };
373
+ /** A fold's haptic pattern — the SAME vortex sequence re-expressed as a navigator.vibrate() pattern. The
374
+ * seed's digital root rotates VORTEX_SEQUENCE to a start; each digit d → an [on, off] millisecond pair, with
375
+ * on = 18 + d·2 (the "18ms + digit" rhythm documented in the vibration diamond) and off = d. Deterministic. */
376
+ export declare function foldHaptics(seed: string): number[];
377
+ /** One pointer event on any animation → the full multi-sensory response, content-addressed and pure: the clock
378
+ * scrub (scrubMs), the A432-sourced tone (proseToTone), and the vortex haptic pattern. The render harness
379
+ * applies scrubMs to the hero clock, plays hz through the one A432 audio engine, and vibrates the pattern. */
380
+ interface PointerInteraction {
381
+ readonly phase: number;
382
+ readonly dim: number;
383
+ readonly angle: number;
384
+ readonly scrubMs: number;
385
+ readonly hz: number;
386
+ readonly semitone: number;
387
+ readonly octave: number;
388
+ readonly vibrate: readonly number[];
389
+ readonly root: string;
390
+ }
391
+ export declare function pointerInteraction(seed: string, px: number, py: number, width: number, height: number, cycleMs?: number): PointerInteraction;
392
+ /** @rosetta ✦₄ · Earth · receptive (the primitive kernel — imports nothing, exports everything foundational) */
393
+ export declare function sha256(text: string): Promise<string>;
394
+ /** @rosetta ✦₄ · Earth · receptive (the primitive kernel — imports nothing, exports everything foundational) */
395
+ export declare function sha256MerkleRoot(leaves: readonly string[]): Promise<string>;
396
+ /** @rosetta ✦₄ · Earth · receptive (the primitive kernel — imports nothing, exports everything foundational) */
397
+ export declare function sha256MerkleProof(leaves: readonly string[], index: number): Promise<{
398
+ leaf: string;
399
+ path: {
400
+ hash: string;
401
+ right: boolean;
402
+ }[];
403
+ root: string;
404
+ }>;
405
+ /** @rosetta ✦₄ · Earth · receptive (the primitive kernel — imports nothing, exports everything foundational) */
406
+ export declare function verifySha256Proof(leafHash: string, path: readonly {
407
+ hash: string;
408
+ right: boolean;
409
+ }[], root: string): Promise<boolean>;
410
+ /** @rosetta ✦₄ · Earth · receptive (the primitive kernel — imports nothing, exports everything foundational) */
411
+ export declare function ed25519Keypair(): Promise<CryptoKeyPair>;
412
+ /** @rosetta ✦₄ · Earth · receptive (the primitive kernel — imports nothing, exports everything foundational) */
413
+ export declare function ed25519Sign(privateKey: CryptoKey, message: string): Promise<string>;
414
+ /** @rosetta ✦₄ · Earth · receptive (the primitive kernel — imports nothing, exports everything foundational) */
415
+ export declare function ed25519Verify(publicKey: CryptoKey, message: string, signatureHex: string): Promise<boolean>;
416
+ /** @rosetta ✦₄ · Earth · receptive (the primitive kernel — imports nothing, exports everything foundational) */
417
+ export declare function transparencyLogRoot(entries: readonly string[]): Promise<string>;
418
+ /** @rosetta ✦₄ · Earth · receptive (the primitive kernel — imports nothing, exports everything foundational) */
419
+ export declare function logInclusion(entries: readonly string[], index: number): Promise<{
420
+ leaf: string;
421
+ path: {
422
+ hash: string;
423
+ right: boolean;
424
+ }[];
425
+ root: string;
426
+ }>;
427
+ /** @rosetta ✦₄ · Earth · receptive (the primitive kernel — imports nothing, exports everything foundational) */
428
+ export declare function logConsistent(oldRoot: string, entries: readonly string[], oldSize: number): Promise<boolean>;
429
+ /** @rosetta ✦₄ · Earth · receptive (the primitive kernel — imports nothing, exports everything foundational) */
430
+ export declare function sha256Sync(text: string): string;
431
+ /** @rosetta ✦₄ · Earth · receptive (the primitive kernel — imports nothing, exports everything foundational) */
432
+ export declare function toUuidSha256(seed: string): Uuid;
433
+ /** @rosetta ✦₄ · Earth · receptive (the primitive kernel — imports nothing, exports everything foundational) */
434
+ export declare function findContentAddressCollision(maxTries?: number): {
435
+ found: boolean;
436
+ a: string;
437
+ b: string;
438
+ word: number;
439
+ tries: number;
440
+ };
441
+ /** @rosetta ✦₄ · Earth · receptive (the primitive kernel — imports nothing, exports everything foundational) */
442
+ export declare function addressEntropyBits(): {
443
+ nominalBits: number;
444
+ discardedBits: number;
445
+ effectiveBits: number;
446
+ birthdayLog2: number;
447
+ };
448
+ /** @rosetta ✦₄ · Earth · receptive (the primitive kernel — imports nothing, exports everything foundational) */
449
+ export declare function gcd(a: number, b: number): number;
450
+ /** @rosetta ✦₄ · Earth · receptive (the primitive kernel — imports nothing, exports everything foundational) */
451
+ export declare function lcm(a: number, b: number): number;
452
+ /** @rosetta ✦₄ · Earth · receptive (the primitive kernel — imports nothing, exports everything foundational) */
453
+ export declare function modUnits(n: number): number[];
454
+ /** @rosetta ✦₄ · Earth · receptive (the primitive kernel — imports nothing, exports everything foundational) */
455
+ export declare function survive(s: number, hazard: number): number;
456
+ /** @rosetta ✦₄ · Earth · receptive (the primitive kernel — imports nothing, exports everything foundational) */
457
+ export declare function admixToward(p: readonly number[], source: number, f: number): number[];
458
+ /** @rosetta ✦₄ · Earth · receptive (the primitive kernel — imports nothing, exports everything foundational) */
459
+ export declare function injectError(p: readonly number[], bit: number, q: number, oneWay?: boolean): number[];
460
+ /** @rosetta ✦₄ · Earth · receptive (the primitive kernel — imports nothing, exports everything foundational) */
461
+ export declare function markovStep(P: readonly (readonly number[])[], dist: readonly number[]): number[];
462
+ /** @rosetta ✦₄ · Earth · receptive (the primitive kernel — imports nothing, exports everything foundational) */
463
+ export declare function markovEvolve(P: readonly (readonly number[])[], dist: readonly number[], steps: number): number[];
464
+ /** @rosetta ✦₄ · Earth · receptive (the primitive kernel — imports nothing, exports everything foundational) */
465
+ export declare function stationary(P: readonly (readonly number[])[], iters?: number): number[];
466
+ /** @rosetta ✦₄ · Earth · receptive (the primitive kernel — imports nothing, exports everything foundational) */
467
+ export declare function chsh(a: number, aPrime: number, b: number, bPrime: number): number;
468
+ /** @rosetta ✦₄ · Earth · receptive (the primitive kernel — imports nothing, exports everything foundational) */
469
+ export declare function residueVector(n: number, periods: readonly number[]): number[];
470
+ /** @rosetta ✦₄ · Earth · receptive (the primitive kernel — imports nothing, exports everything foundational) */
471
+ export declare function realign(periodA: number, periodB: number): {
472
+ gcd: number;
473
+ lcm: number;
474
+ };
475
+ /** @rosetta ✦₄ · Earth · receptive (the primitive kernel — imports nothing, exports everything foundational) */
476
+ export declare function phaseDrift(periodA: number, periodB: number, t: number): number;
477
+ /** @rosetta ✦₄ · Earth · receptive (the primitive kernel — imports nothing, exports everything foundational) */
478
+ export declare function slip(wSync: number, wRotor: number): number;
479
+ /** @rosetta ✦₄ · Earth · receptive (the primitive kernel — imports nothing, exports everything foundational) */
480
+ export declare function inductionStep(wRotor: number, opts: {
481
+ wSync: number;
482
+ k: number;
483
+ load: number;
484
+ damping?: number;
485
+ inertia?: number;
486
+ dt?: number;
487
+ }): number;
488
+ /** @rosetta ✦₄ · Earth · receptive (the primitive kernel — imports nothing, exports everything foundational) */
489
+ export declare function inductionEvolve(w0: number, opts: {
490
+ wSync: number;
491
+ k: number;
492
+ load: number;
493
+ damping?: number;
494
+ inertia?: number;
495
+ dt?: number;
496
+ }, steps: number): number[];
497
+ export type Edge = readonly [number, number];
498
+ /** @rosetta ✦₄ · Earth · receptive (the primitive kernel — imports nothing, exports everything foundational) */
499
+ export declare function pmixStep(values: readonly number[], edges: readonly Edge[], q: number): number[];
500
+ /** @rosetta ✦₄ · Earth · receptive (the primitive kernel — imports nothing, exports everything foundational) */
501
+ export declare function pmixEvolve(values: readonly number[], edges: readonly Edge[], q: number, steps: number): number[];
502
+ /** @rosetta ✦₄ · Earth · receptive (the primitive kernel — imports nothing, exports everything foundational) */
503
+ export declare function congruence(a: readonly number[], b: readonly number[]): number;
504
+ export {};