@cyberart-io/engine 0.0.6 → 0.0.8

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.
package/dist/index.d.ts CHANGED
@@ -329,11 +329,16 @@ type AnimationTiming = {
329
329
  deltaSinceLastUpdate: number;
330
330
  deltaSinceLastRender: number;
331
331
  };
332
+ type CartKind = 'render' | 'calculation';
332
333
  type AnimationCart<T = unknown, TFeatureState = undefined> = {
333
334
  getDefaultFeatureState?: (R: Random, dimensionContext: DimensionContext, rawParams: number[], keyboardManager: KeyboardManager, customState?: Partial<T>, pointerManager?: PointerManager, gameManager?: unknown, hostChannel?: HostChannel) => TFeatureState;
334
335
  getDefaultState: (R: Random, dimensionContext: DimensionContext, rawParams: number[], keyboardManager: KeyboardManager, customState?: Partial<T>, pointerManager?: PointerManager, gameManager?: unknown, featureState?: Readonly<TFeatureState>, hostChannel?: HostChannel) => T;
335
336
  update: (R: Random, framesElapsed: number, rawParams: number[], dimensionContext: DimensionContext, state: T, keyboardManager: KeyboardManager, pointerManager?: PointerManager, gameManager?: unknown, timing?: AnimationTiming, featureState?: Readonly<TFeatureState>, hostChannel?: HostChannel) => T;
336
- render: (R: Random, framesElapsed: number, rawParams: number[], dimensionContext: DimensionContext, state: T, drawingContext: CanvasRenderingContext2D, imageData: ImageData, pointerManager?: PointerManager, gameManager?: unknown, timing?: AnimationTiming, featureState?: Readonly<TFeatureState>, hostChannel?: HostChannel) => void;
337
+ /**
338
+ * Draw into the 2D context. Optional on calculation carts (`kind:
339
+ * 'calculation'`); the runtime does not call it and does not create a canvas.
340
+ */
341
+ render?: (R: Random, framesElapsed: number, rawParams: number[], dimensionContext: DimensionContext, state: T, drawingContext: CanvasRenderingContext2D, imageData: ImageData, pointerManager?: PointerManager, gameManager?: unknown, timing?: AnimationTiming, featureState?: Readonly<TFeatureState>, hostChannel?: HostChannel) => void;
337
342
  adjust?: Record<string, {
338
343
  type: 'switch';
339
344
  immediate?: boolean;
@@ -406,6 +411,80 @@ declare class IncompatibleCartStateError extends Error {
406
411
  constructor(message: string);
407
412
  }
408
413
 
414
+ /**
415
+ * Copyright (c) 2026 Aaron Boyarsky
416
+ * SPDX-License-Identifier: LicenseRef-CyberArt-Engine
417
+ * See packages/engine/LICENSE
418
+ *
419
+ * Host-controlled time, input, and asset completion for deterministic replays.
420
+ * Production kaleidoscope / Art Blocks playback does not enable this mode.
421
+ * Logical asset URLs are resolved by the host preloader (`assetResolver.ts`);
422
+ * this module only times `ASSET_READY_EVENT` / `ASSET_FAILED_EVENT` delivery.
423
+ */
424
+
425
+ declare const ASSET_READY_EVENT = "cyberart.asset.ready";
426
+ declare const ASSET_FAILED_EVENT = "cyberart.asset.failed";
427
+ type PointerKind = 'down' | 'move' | 'up';
428
+ type ScriptedAction = {
429
+ atFrame: number;
430
+ } & ({
431
+ type: 'pointer';
432
+ pointer: {
433
+ kind: PointerKind;
434
+ x: number;
435
+ y: number;
436
+ };
437
+ } | {
438
+ type: 'key';
439
+ key: string;
440
+ } | {
441
+ type: 'event';
442
+ event: HostEvent;
443
+ } | {
444
+ type: 'asset';
445
+ id: string;
446
+ status: 'ready' | 'failed';
447
+ /** Optional structured failure or resolved resource. Envelope is unchanged. */
448
+ detail?: unknown;
449
+ });
450
+ type DeterministicRuntimeOptions = {
451
+ /** Virtual clock origin in ms. Default 0. */
452
+ origin?: number;
453
+ /** Actions applied at the start of `atFrame`, before `update`. */
454
+ actions?: ScriptedAction[];
455
+ };
456
+ type ClockSnapshot = {
457
+ now: number;
458
+ framesElapsed: number;
459
+ frameRate: number;
460
+ };
461
+ type ReplayMetadata = {
462
+ seed: string;
463
+ clock: ClockSnapshot;
464
+ rng: RandomState;
465
+ actions: ScriptedAction[];
466
+ applied: AppliedAction[];
467
+ events: HostEvent[];
468
+ state: unknown;
469
+ };
470
+ type AppliedAction = {
471
+ frame: number;
472
+ action: ScriptedAction;
473
+ };
474
+ /**
475
+ * Compare two replay captures. Empty array means identical; otherwise each
476
+ * string names the first disagreement on that field.
477
+ */
478
+ declare function describeReplayMismatch(a: ReplayMetadata, b: ReplayMetadata): string[];
479
+
480
+ type FrameTimingSample = {
481
+ frame: number;
482
+ updateMs: number;
483
+ renderMs: number;
484
+ drawMs: number;
485
+ totalMs: number;
486
+ };
487
+
409
488
  /**
410
489
  * Copyright (c) 2026 Aaron Boyarsky
411
490
  * SPDX-License-Identifier: LicenseRef-CyberArt-Engine
@@ -553,72 +632,6 @@ declare function validateSnapshot(value: unknown): ValidateSnapshotResult;
553
632
  declare function snapshotErrorsToMessage(errors: SnapshotDiagnostic[]): string;
554
633
  declare function engineStateFromEnvelope(snapshot: SnapshotEnvelope): CartStateBundle;
555
634
 
556
- /**
557
- * Copyright (c) 2026 Aaron Boyarsky
558
- * SPDX-License-Identifier: LicenseRef-CyberArt-Engine
559
- * See packages/engine/LICENSE
560
- *
561
- * Host-controlled time, input, and asset completion for deterministic replays.
562
- * Production kaleidoscope / Art Blocks playback does not enable this mode.
563
- * Logical asset URLs are resolved by the host preloader (`assetResolver.ts`);
564
- * this module only times `ASSET_READY_EVENT` / `ASSET_FAILED_EVENT` delivery.
565
- */
566
-
567
- declare const ASSET_READY_EVENT = "cyberart.asset.ready";
568
- declare const ASSET_FAILED_EVENT = "cyberart.asset.failed";
569
- type PointerKind = 'down' | 'move' | 'up';
570
- type ScriptedAction = {
571
- atFrame: number;
572
- } & ({
573
- type: 'pointer';
574
- pointer: {
575
- kind: PointerKind;
576
- x: number;
577
- y: number;
578
- };
579
- } | {
580
- type: 'key';
581
- key: string;
582
- } | {
583
- type: 'event';
584
- event: HostEvent;
585
- } | {
586
- type: 'asset';
587
- id: string;
588
- status: 'ready' | 'failed';
589
- /** Optional structured failure or resolved resource. Envelope is unchanged. */
590
- detail?: unknown;
591
- });
592
- type DeterministicRuntimeOptions = {
593
- /** Virtual clock origin in ms. Default 0. */
594
- origin?: number;
595
- /** Actions applied at the start of `atFrame`, before `update`. */
596
- actions?: ScriptedAction[];
597
- };
598
- type ClockSnapshot = {
599
- now: number;
600
- framesElapsed: number;
601
- frameRate: number;
602
- };
603
- type ReplayMetadata = {
604
- seed: string;
605
- clock: ClockSnapshot;
606
- rng: RandomState;
607
- actions: ScriptedAction[];
608
- applied: AppliedAction[];
609
- events: HostEvent[];
610
- state: unknown;
611
- };
612
- type AppliedAction = {
613
- frame: number;
614
- action: ScriptedAction;
615
- };
616
- /**
617
- * Compare two replay captures. Empty array means identical; otherwise each
618
- * string names the first disagreement on that field.
619
- */
620
- declare function describeReplayMismatch(a: ReplayMetadata, b: ReplayMetadata): string[];
621
-
622
635
  declare const ASSET_KINDS: readonly ["image", "audio", "font", "spritesheet"];
623
636
  type AssetKind = (typeof ASSET_KINDS)[number];
624
637
  declare const ASSET_FAILURE_CODES: readonly ["timeout", "cors", "not-found", "invalid", "aborted", "resolver"];
@@ -855,6 +868,7 @@ type FrameErrorInfo = {
855
868
  consecutive: number;
856
869
  stopped: boolean;
857
870
  };
871
+
858
872
  type CreateRuntimeOptions = {
859
873
  /** Required mount point. The runtime creates or adopts a canvas inside this element. */
860
874
  container: HTMLElement;
@@ -899,6 +913,16 @@ type CreateRuntimeOptions = {
899
913
  * this id does not close Tone for remaining carts.
900
914
  */
901
915
  audioParticipantId?: string;
916
+ /**
917
+ * `'calculation'` skips canvas construction and paint. `getDefaultState`,
918
+ * `update`, and host-channel events still run. Default `'render'`.
919
+ */
920
+ kind?: CartKind;
921
+ /**
922
+ * Optional per-frame update/render/draw timings. Can also be assigned later
923
+ * via `runtime.onFrameTiming`. Unset = no `performance.now` in the draw loop.
924
+ */
925
+ onFrameTiming?: (sample: FrameTimingSample) => void;
902
926
  };
903
927
  type MountOptions<T = unknown> = {
904
928
  /** Boot overrides passed as `customState` into `getDefaultState`. Not a live-state replay. */
@@ -977,7 +1001,14 @@ type CyberArtRuntime = {
977
1001
  readonly assets: AssetPreloader | undefined;
978
1002
  /** Shared broker when `createRuntime({ audioBroker })` was set. */
979
1003
  readonly audioBroker: AudioBroker | undefined;
1004
+ /** `'render'` (default) or `'calculation'` (no canvas / paint). */
1005
+ readonly kind: CartKind;
980
1006
  onError?: (error: unknown, info: FrameErrorInfo) => void;
1007
+ /**
1008
+ * Optional per-frame update/render/draw timings. Unset = zero overhead in the
1009
+ * draw loop (single null check). Same pattern as `onError`.
1010
+ */
1011
+ onFrameTiming?: (sample: FrameTimingSample) => void;
981
1012
  };
982
1013
  declare function createRuntime(options: CreateRuntimeOptions): CyberArtRuntime;
983
1014
 
@@ -1561,6 +1592,8 @@ declare const CAPABILITY_BLEND_MODES: readonly ["source-over", "screen"];
1561
1592
  type CapabilityBlendMode = (typeof CAPABILITY_BLEND_MODES)[number];
1562
1593
  declare const CAPABILITY_CLEAR_POLICIES: readonly ["transparent", "opaque"];
1563
1594
  type CapabilityClearPolicy = (typeof CAPABILITY_CLEAR_POLICIES)[number];
1595
+ declare const CAPABILITY_CART_KINDS: readonly ["render", "calculation"];
1596
+ type CapabilityCartKind = (typeof CAPABILITY_CART_KINDS)[number];
1564
1597
  type CapabilityDiagnostic = {
1565
1598
  code: string;
1566
1599
  detail: string;
@@ -1615,6 +1648,8 @@ type CapabilityManifest = {
1615
1648
  surface?: CapabilitySurfaceRequirements;
1616
1649
  layers?: CapabilityLayerRequirements;
1617
1650
  modules?: CapabilityModuleRequirements;
1651
+ /** Omitted means `'render'`. `'calculation'` carts have no surface. */
1652
+ kind?: CapabilityCartKind;
1618
1653
  };
1619
1654
  type CapabilityManifestInput = {
1620
1655
  version?: number;
@@ -1630,6 +1665,7 @@ type CapabilityManifestInput = {
1630
1665
  surface?: CapabilitySurfaceRequirements;
1631
1666
  layers?: CapabilityLayerRequirements;
1632
1667
  modules?: CapabilityModuleRequirements;
1668
+ kind?: CapabilityCartKind;
1633
1669
  };
1634
1670
  type HostCapabilities = {
1635
1671
  contractVersion: number;
@@ -1643,6 +1679,8 @@ type HostCapabilities = {
1643
1679
  };
1644
1680
  layers?: CapabilityLayerRequirements;
1645
1681
  modules?: CapabilityModuleRequirements;
1682
+ /** Cart kinds this host can run. Omitted: kind is not checked. */
1683
+ kinds?: CapabilityCartKind[];
1646
1684
  };
1647
1685
  type DefineCapabilityManifestResult = {
1648
1686
  ok: true;
@@ -1850,7 +1888,7 @@ declare function parseGeometry(json: string): GeometryDocument;
1850
1888
 
1851
1889
  declare const DEFAULT_GROUP_WIDTH = 320;
1852
1890
  declare const DEFAULT_GROUP_HEIGHT = 180;
1853
- type RuntimeGroupKind = 'render' | 'calculation';
1891
+ type RuntimeGroupKind = CartKind;
1854
1892
  /**
1855
1893
  * Optional capability-shaped attach hints. Explicit participant `emit` /
1856
1894
  * `subscribe` / `authoritative` win. Do not import the capability manifest
@@ -1868,7 +1906,7 @@ type RuntimeGroupFrameError = {
1868
1906
  type RuntimeGroupParticipantConfig<T = unknown> = {
1869
1907
  id: string;
1870
1908
  cart: AnimationCart<T>;
1871
- /** Rendered surface vs calculation cart (still a real `AnimationCart`). */
1909
+ /** Rendered surface vs calculation cart (update + events, no canvas / paint). */
1872
1910
  kind?: RuntimeGroupKind;
1873
1911
  seed?: CreateRuntimeOptions['seed'];
1874
1912
  container?: HTMLElement;
@@ -2079,6 +2117,20 @@ type CompositorBlendMode = (typeof COMPOSITOR_BLEND_MODES)[number];
2079
2117
  declare const COMPOSITOR_CLEAR_POLICIES: readonly ["transparent", "opaque"];
2080
2118
  type CompositorClearPolicy = (typeof COMPOSITOR_CLEAR_POLICIES)[number];
2081
2119
  type CompositorPointerEvents = 'auto' | 'none';
2120
+ declare const COMPOSITOR_SOURCE_KINDS: readonly ["participant", "image", "canvas"];
2121
+ type CompositorSourceKind = (typeof COMPOSITOR_SOURCE_KINDS)[number];
2122
+ type CompositorParticipantSource = {
2123
+ kind: 'participant';
2124
+ };
2125
+ type CompositorImageSource = {
2126
+ kind: 'image';
2127
+ image: ImageData;
2128
+ };
2129
+ type CompositorCanvasSource = {
2130
+ kind: 'canvas';
2131
+ canvas: HTMLCanvasElement;
2132
+ };
2133
+ type CompositorLayerSource = CompositorParticipantSource | CompositorImageSource | CompositorCanvasSource;
2082
2134
  type CompositorClip = {
2083
2135
  x: number;
2084
2136
  y: number;
@@ -2094,6 +2146,11 @@ type CompositorLayerConfig = {
2094
2146
  clip?: CompositorClip;
2095
2147
  pointerEvents?: CompositorPointerEvents;
2096
2148
  clearPolicy?: CompositorClearPolicy;
2149
+ /**
2150
+ * Pixel source. Default `participant` reads the runtime-group canvas.
2151
+ * `image` / `canvas` swap atomically via `setLayer` / `addLayer`.
2152
+ */
2153
+ source?: CompositorLayerSource;
2097
2154
  };
2098
2155
  type CompositorLayerInspect = {
2099
2156
  id: string;
@@ -2104,6 +2161,7 @@ type CompositorLayerInspect = {
2104
2161
  clip: CompositorClip | null;
2105
2162
  pointerEvents: CompositorPointerEvents;
2106
2163
  clearPolicy: CompositorClearPolicy;
2164
+ sourceKind: CompositorSourceKind;
2107
2165
  };
2108
2166
  type CompositorHostOptions = {
2109
2167
  /** Back-layer pixels. Scaled nearest-neighbor to the compositor viewport. */
@@ -2162,6 +2220,7 @@ type Compositor = {
2162
2220
  */
2163
2221
  resize(width: number, height: number, dpr?: number): void;
2164
2222
  setLayer(id: string, patch: Partial<Omit<CompositorLayerConfig, 'id'>>): void;
2223
+ addLayer(config: CompositorLayerConfig): void;
2165
2224
  layer(id: string): CompositorLayerInspect;
2166
2225
  layers(): CompositorLayerInspect[];
2167
2226
  pointerTarget(x: number, y: number): string | undefined;
@@ -2171,6 +2230,171 @@ type Compositor = {
2171
2230
  };
2172
2231
  declare function createCompositor(options: CreateCompositorOptions): Compositor;
2173
2232
 
2233
+ declare const VISUAL_LAYER_SNAPSHOT_SCHEMA_VERSION: 1;
2234
+ declare const VISUAL_LAYER_KINDS: readonly ["layer", "mask", "sprite"];
2235
+ type VisualLayerKind = (typeof VISUAL_LAYER_KINDS)[number];
2236
+ declare const VISUAL_LAYER_TRANSITIONS: readonly ["show", "hide", "replace", "crossfade"];
2237
+ type VisualLayerTransitionKind = (typeof VISUAL_LAYER_TRANSITIONS)[number];
2238
+ declare const VISUAL_LAYER_INCOMING_SUFFIX: ":incoming";
2239
+ declare const VISUAL_LAYER_REVEALED_EVENT: "visual.layer.revealed";
2240
+ declare const VISUAL_LAYER_HIDDEN_EVENT: "visual.layer.hidden";
2241
+ declare const VISUAL_LAYER_TRANSITION_STARTED_EVENT: "visual.layer.transition-started";
2242
+ declare const VISUAL_LAYER_TRANSITION_COMPLETED_EVENT: "visual.layer.transition-completed";
2243
+ declare const VISUAL_LAYER_FAILED_EVENT: "visual.layer.failed";
2244
+ declare const VISUAL_LAYER_EVENTS: readonly ["visual.layer.revealed", "visual.layer.hidden", "visual.layer.transition-started", "visual.layer.transition-completed", "visual.layer.failed"];
2245
+ type VisualLayerEventType = (typeof VISUAL_LAYER_EVENTS)[number];
2246
+ declare const HOST_STATE_ACCEPTED_EVENT: "host.state.accepted";
2247
+ declare const VISUAL_LAYER_FAILURE_CODES: readonly ["asset-failed", "missing-source", "unknown-layer", "unknown-version", "invalid-snapshot"];
2248
+ type VisualLayerFailureCode = (typeof VISUAL_LAYER_FAILURE_CODES)[number];
2249
+ type VisualLayerAssetStatus = 'pending' | 'ready' | 'failed';
2250
+ type VisualLayerFallbackPolicy = 'keep-prior' | 'hide' | {
2251
+ version: string;
2252
+ };
2253
+ type VisualLayerVersionDeclaration = {
2254
+ id: string;
2255
+ assetId: string;
2256
+ provenance?: AssetProvenance;
2257
+ };
2258
+ type VisualLayerDeclaration = {
2259
+ id: string;
2260
+ kind: VisualLayerKind;
2261
+ versions: readonly VisualLayerVersionDeclaration[];
2262
+ initialVersion?: string;
2263
+ compositorLayerId?: string;
2264
+ incomingLayerId?: string;
2265
+ order?: number;
2266
+ blend?: CompositorBlendMode;
2267
+ clip?: CompositorClip;
2268
+ pointerEvents?: CompositorPointerEvents;
2269
+ clearPolicy?: CompositorClearPolicy;
2270
+ fallback?: VisualLayerFallbackPolicy;
2271
+ };
2272
+ type VisualLayerAcceptedBinding = {
2273
+ layerId: string;
2274
+ toVersion: string;
2275
+ kind?: VisualLayerTransitionKind;
2276
+ durationFrames?: number;
2277
+ delayFrames?: number;
2278
+ easing?: CueEasing;
2279
+ idempotencyKey?: string;
2280
+ };
2281
+ type VisualLayerCueSpec = CueSpec & {
2282
+ layerId: string;
2283
+ kind: VisualLayerTransitionKind;
2284
+ toVersion?: string;
2285
+ fromVersion?: string;
2286
+ };
2287
+ type VisualLayerTransitionInspect = {
2288
+ kind: VisualLayerTransitionKind;
2289
+ progress: number;
2290
+ fromVersion: string | null;
2291
+ toVersion: string | null;
2292
+ cueKey: string;
2293
+ startFrame: number;
2294
+ durationFrames: number;
2295
+ delayFrames: number;
2296
+ easing: CueEasing;
2297
+ };
2298
+ type VisualLayerInspect = {
2299
+ id: string;
2300
+ kind: VisualLayerKind;
2301
+ visible: boolean;
2302
+ activeVersion: string | null;
2303
+ pendingVersion: string | null;
2304
+ committedVersion: string | null;
2305
+ opacity: number;
2306
+ order: number;
2307
+ provenance: AssetProvenance | null;
2308
+ overrideVersion: string | null;
2309
+ transition: VisualLayerTransitionInspect | null;
2310
+ };
2311
+ type VisualLayerEvent = {
2312
+ type: VisualLayerEventType;
2313
+ atFrame: number;
2314
+ layerId: string;
2315
+ version?: string;
2316
+ kind?: VisualLayerTransitionKind;
2317
+ progress: number;
2318
+ code?: VisualLayerFailureCode;
2319
+ };
2320
+ type VisualLayerDiagnostic = {
2321
+ code: VisualLayerFailureCode;
2322
+ layerId: string;
2323
+ version?: string;
2324
+ assetId?: string;
2325
+ message: string;
2326
+ atFrame: number;
2327
+ failure?: AssetFailure;
2328
+ };
2329
+ type VisualLayerSnapshotRow = {
2330
+ id: string;
2331
+ kind: VisualLayerKind;
2332
+ visible: boolean;
2333
+ committedVersion: string | null;
2334
+ pendingVersion: string | null;
2335
+ activeVersion: string | null;
2336
+ opacity: number;
2337
+ order: number;
2338
+ overrideVersion: string | null;
2339
+ provenance: AssetProvenance | null;
2340
+ fallback: VisualLayerFallbackPolicy;
2341
+ transition: VisualLayerTransitionInspect | null;
2342
+ };
2343
+ type VisualLayerControllerSnapshot = {
2344
+ schemaVersion: typeof VISUAL_LAYER_SNAPSHOT_SCHEMA_VERSION;
2345
+ frame: number;
2346
+ sceneId: string | null;
2347
+ reducedMotion: boolean;
2348
+ layers: VisualLayerSnapshotRow[];
2349
+ assets: Record<string, VisualLayerAssetStatus>;
2350
+ events: VisualLayerEvent[];
2351
+ diagnostics: VisualLayerDiagnostic[];
2352
+ };
2353
+ type PlayVisualLayerResult = PlayCueResult;
2354
+ type RestoreVisualLayerResult = {
2355
+ ok: true;
2356
+ snapshot: VisualLayerControllerSnapshot;
2357
+ } | {
2358
+ ok: false;
2359
+ errors: VisualLayerDiagnostic[];
2360
+ };
2361
+ type CreateVisualLayerControllerOptions = {
2362
+ compositor: Compositor;
2363
+ layers: readonly VisualLayerDeclaration[];
2364
+ preloader?: AssetPreloader;
2365
+ originFrame?: number;
2366
+ reducedMotion?: boolean;
2367
+ sceneId?: string;
2368
+ fallback?: VisualLayerFallbackPolicy;
2369
+ onAccepted?: readonly VisualLayerAcceptedBinding[];
2370
+ dispatch?: (event: HostEvent) => void;
2371
+ };
2372
+ type VisualLayerController = {
2373
+ registerSource(assetId: string, source: ImageData | HTMLCanvasElement): void;
2374
+ handleHostEvent(event: HostEvent): void;
2375
+ override(layerId: string, version: string | null): void;
2376
+ play(spec: VisualLayerCueSpec): PlayVisualLayerResult;
2377
+ step(frames?: number): VisualLayerEvent[];
2378
+ snapshot(): VisualLayerControllerSnapshot;
2379
+ restore(input: unknown): RestoreVisualLayerResult;
2380
+ inspect(): VisualLayerInspect[];
2381
+ captureComposedFrame(): ComposedFrame;
2382
+ destroy(): void;
2383
+ readonly frame: number;
2384
+ readonly sceneId: string | null;
2385
+ readonly compositor: Compositor;
2386
+ };
2387
+ type VisualLayerCapture = {
2388
+ frame: ComposedFrame;
2389
+ layers: VisualLayerInspect[];
2390
+ };
2391
+ declare function isVisualLayerKind(value: unknown): value is VisualLayerKind;
2392
+ declare function isVisualLayerTransitionKind(value: unknown): value is VisualLayerTransitionKind;
2393
+ declare function isVisualLayerEventType(value: unknown): value is VisualLayerEventType;
2394
+ declare function visualIncomingLayerId(layerId: string): string;
2395
+ declare function captureVisualLayers(controller: VisualLayerController): VisualLayerCapture;
2396
+ declare function createVisualLayerController(options: CreateVisualLayerControllerOptions): VisualLayerController;
2397
+
2174
2398
  /**
2175
2399
  * Copyright (c) 2026 Aaron Boyarsky
2176
2400
  * SPDX-License-Identifier: LicenseRef-CyberArt-Engine
@@ -2619,4 +2843,4 @@ declare class MidiManager {
2619
2843
  private detachHardware;
2620
2844
  }
2621
2845
 
2622
- export { ANCHOR_ORIGINS, ASSET_FAILED_EVENT, ASSET_FAILURE_CODES, ASSET_KINDS, ASSET_READY_EVENT, AUDIO_CUE_EVENTS, AUDIO_CUE_FAILED_EVENT, AUDIO_CUE_SCHEDULED_EVENT, AUDIO_CUE_SKIPPED_EVENT, AUDIO_CUE_STARTED_EVENT, type ActiveAudioCue, type AnchorOrigin, type AnimationCart, type AnimationTiming, type AppliedAction, type ApplySnapshotMigrationsResult, type AssetCorsMode, type AssetDeclaration, type AssetFailure, type AssetFailureCode, type AssetItemStatus, type AssetKind, type AssetPreloadSnapshot, type AssetPreloader, type AssetProvenance, type AssetResolveRequest, type AssetResolver, type AssetRuntimeOptions, type AttachOptions, type AttachPresentationAdapterOptions, type AudioAssetStatus, type AudioBroker, type AudioBrokerInspect, type AudioBrokerListener, type AudioBrokerNotice, type AudioChannelInspect, type AudioCueEvent, type AudioCueEventType, type AudioCueFailReason, type AudioCueReason, type AudioCueSkipReason, type AudioCueSpec, type AudioCueTimeline, type AudioCueTimelineSnapshot, type AudioCueView, type AudioLibraryId, type AudioLibrarySpec, type AudioUnlockState, type AudioUnlockStatus, type BoundReplaySession, type BrowserA11ySnapshot, type BrowserCompositorConfig, type BrowserHarness, type BrowserHarnessAction, type BrowserHarnessInspect, type BrowserHarnessMountContext, type BrowserHarnessRuntimeContext, type BrowserHarnessScreenshot, type BrowserHostSession, type BrowserInputModality, type BrowserReproductionMetadata, type BrowserViewport, CAPABILITY_ASSET_KINDS, CAPABILITY_BLEND_MODES, CAPABILITY_CLEAR_POLICIES, CAPABILITY_INTEGRATIONS, CAPABILITY_MANAGERS, CAPABILITY_MANIFEST_VERSION, CAPABILITY_PHASES, COMPOSITOR_BLEND_MODES, COMPOSITOR_CLEAR_POLICIES, COORDINATE_SPACES, CUE_CANCELLED_EVENT, CUE_COMPLETED_EVENT, CUE_LIFECYCLE_EVENTS, CUE_REPLACED_EVENT, CUE_STARTED_EVENT, CYBERART_CANVAS_ATTR, type CapabilityAssetDeclarationSummary, type CapabilityAssetKind, type CapabilityAssetSummary, type CapabilityBlendMode, type CapabilityClearPolicy, type CapabilityDiagnostic, type CapabilityIntegration, type CapabilityLayerRequirements, type CapabilityManager, type CapabilityManifest, type CapabilityManifestInput, type CapabilityModuleRef, type CapabilityModuleRequirements, type CapabilityPermissions, type CapabilityPhase, type CapabilityRuntime, type CapabilitySurfaceRequirements, type CartHandle, type CartSnapshot, type CartStateBundle, type CartStateHotkeyOptions, type CartStateMessageHandler, type CartStatePersister, type CausationTreeNode, type Clock, type ClockSnapshot, type ComposedFrame, type Compositor, type CompositorBlendMode, type CompositorClearPolicy, type CompositorClip, type CompositorHostOptions, type CompositorInspect, type CompositorLayerConfig, type CompositorLayerInspect, type CompositorPointerEvents, type ContractDiagnostic, type ContractFieldType, type ContractRegistry, type CoordinateSpace, type CreateAssetPreloaderOptions, type CreateAudioBrokerOptions, type CreateAudioCueTimelineOptions, type CreateBrowserHarnessOptions, type CreateCompositorOptions, type CreateExecutableModuleHostOptions, type CreatePresentationLayoutInput, type CreatePresentationTimelineOptions, type CreateReplayInspectorOptions, type CreateRuntimeGroupOptions, type CreateRuntimeOptions, type CueDuplicatePolicy, type CueEasing, type CueLifecycleEvent, type CueLifecycleType, type CuePhase, type CueReducedMotionPolicy, type CueRepeatPolicy, type CueSpec, type CueTimelineSnapshot, type CueView, type CyberArtRuntime, DEFAULT_BROWSER_VIEWPORT, DEFAULT_DUCK_GAIN, DEFAULT_GROUP_HEIGHT, DEFAULT_GROUP_WIDTH, DEFAULT_MAX_HOPS, DEFAULT_MAX_INSPECTOR_RECORDS, type DebugDrawCall, type DefineCapabilityManifestResult, type DefineContractResult, type DefineSnapshotResult, type DeterministicRuntimeOptions, type DimensionContext, ENGINE_SNAPSHOT_RUNTIME, EVENT_ENVELOPE_VERSION, EXECUTABLE_MODULE_ERROR_CODES, type EventContract, type EventContractManifest, type EventEnvelope, type EventInput, type EventKind, type EventRouter, type EventRouterOptions, type ExecutableModuleCapabilities, type ExecutableModuleDiagnostic, type ExecutableModuleError, type ExecutableModuleErrorCode, type ExecutableModuleFactory, type ExecutableModuleHost, type ExecutableModuleHostInspect, type ExecutableModuleInstance, type ExecutableModuleInvokeContext, type ExecutableModuleInvokeResult, type ExecutableModuleLimits, type ExecutableModuleLoadResult, type ExecutableModuleRef, type ExecutableModuleRegistration, type ExportSnapshotOptions, type FixtureAssetCatalog, type FixtureAssetRecord, type FrameErrorInfo, GEOMETRY_CONTRACT_VERSION, type GeometryAnchor, type GeometryDebugContext, type GeometryDiagnostic, type GeometryDocument, type GeometryHitbox, type GeometryPadding, type GeometrySafeArea, type GeometryValidation, type HeadlessAudioAdapter, type HostCapabilities, HostChannel, type HostEvent, type HostEventListener, type HostedAssetResolverOptions, INVALID_PRESENTATION_MODEL_MESSAGE, type ImportCartStateExtras, IncompatibleCartStateError, type InferredPayload, type InspectorRecord, KeyboardManager, LEGACY_SNAPSHOT_SCHEMA_VERSION, type LandmarkRegisterResult, type LandmarkRegistry, type LegacySnapshot, MIDI_CHANNEL_MAX, MIDI_CHANNEL_MIN, MIDI_CONTROL_CHANGE, MIDI_DATA_MAX, MIDI_NOTE_OFF, MIDI_NOTE_ON, MIDI_PITCH_BEND, MIDI_PITCH_CENTER, MIDI_PITCH_MAX, type MidiAccessFailureReason, type MidiAccessLike, type MidiAccessResult, type MidiCcMessage, type MidiChannel, type MidiInjectInput, type MidiInputLike, MidiManager, type MidiManagerOptions, type MidiMessage, type MidiNoteMessage, type MidiOutputPort, type MidiPitchMessage, type MidiRawMessage, type MidiRequestAccess, type MidiSendFailureReason, type MidiSendResult, type MidiStatusByte, type MidiSubscribeKind, type MidiSubscribeListener, type MidiVoiceInput, type MountOptions, type MountPresentationAdapterOptions, type NormalizeContext, type NormalizeResult, type NormalizedPoint, type NormalizedPolygon, type NormalizedRect, PRESENTATION_ADAPTER_VERSION, PRESENTATION_MODEL_EVENT, PRESENTATION_PHASES, PRESENTATION_SUBSCRIBE_PATTERNS, PRESENTATION_UNSUPPORTED_EVENT, type ParseSnapshotResult, type PayloadFieldSpec, type PayloadSchema, type PayloadValidation, type PixelPoint, type PixelRect, type PlayAudioCueResult, type PlayCueResult, type PlaywrightCompatibleAdapter, type PlaywrightCompatibleViewport, type PointerClick, PointerManager, type PointerSpace, type PresentationAdapter, type PresentationAdapterTarget, type PresentationCartState, type PresentationFitMode, type PresentationLayout, type PresentationModel, type PresentationPhase, type PresentationRegion, type PresentationTimeline, type PresentationView, type PublishExtras, REDACTED_VALUE, REJECTED_EVENT_TYPE, REPLAY_INSPECTOR_SCHEMA_VERSION, ROUND_TRIP_TOLERANCE, ROUND_TRIP_TOLERANCE_CANVAS_PX, Random, type RandomState, type RejectionPayload, type RejectionReason, type ReplayCompareResult, type ReplayInspector, type ReplayInspectorExport, type ReplayInspectorReport, type ReplayMetadata, type ReplayParticipantSummary, type ReplayTapeAction, type ReplayTraceFilter, type ResolveImportableCartStateResult, type ResolvedAsset, type RouterDecision, type RouterDecisionOutcome, type RouterDecisionReason, type RouterParticipantInspect, type RuntimeGroup, type RuntimeGroupCapability, type RuntimeGroupDiagnostics, type RuntimeGroupFrameError, type RuntimeGroupInspect, type RuntimeGroupKind, type RuntimeGroupParticipantConfig, type RuntimeGroupParticipantHandle, type RuntimeGroupParticipantInspect, SILENT_ASSET_FALLBACK_REF, SNAPSHOT_SCHEMA_VERSION, type SchemaCompatibility, type ScriptedAction, type SnapshotAssetRef, type SnapshotCartRef, type SnapshotClock, type SnapshotDiagnostic, type SnapshotEnvelope, type SnapshotEnvelopeInput, type SnapshotIntegrity, type SnapshotMigration, type SnapshotMigrationRegistry, type SnapshotModuleRef, type SnapshotProvenance, type TokenData, UNVERSIONED_CART_VERSION, type ValidateCapabilityManifestResult, type ValidateResult, type ValidateSnapshotResult, type VersionedSnapshot, type VirtualClock, applyCueEasing, applySnapshotMigrations, assetStatusEvent, assetToNormalized, attachCartStatePersistence, attachPresentationAdapter, canonicalizeSeed, canvasToCss, canvasToNormalized, toJSON as capabilityManifestToJSON, cloneSnapshotJson, comparePayloadSchemas, compareReplayTraces, createAssetFailure, createAssetPreloader, createAudioBroker, createAudioCueTimeline, createBrowserHarness, createCompositor, createContractRegistry, createEngineSnapshotMigrations, createEventRouter, createExecutableModuleHost, createFixtureAssetResolver, createHeadlessAudioAdapter, createHostedAssetResolver, createLandmarkRegistry, createPlaywrightCompatibleAdapter, createPresentationLayout, createPresentationModelEvent, createPresentationTimeline, createReferencePresentationCart, createReplayInspector, createRuntime, createRuntimeGroup, createSnapshotMigrationRegistry, createVirtualClock, createWallClock, cssToCanvas, cssToNormalized, defaultSnapshotMigrationRegistry, defineCapabilityManifest, defineDiagnostic, defineIntent, defineSnapshot, defineStateEvent, deriveAttachOptions, describeReplayMismatch, detectSnapshotSchemaVersion, drawGeometryDebug, encodeMidiMessage, engineStateFromEnvelope, familyPatternForType, inferEventKind, isAssetFailure, isAssetFailureCode, isAssetKind, isAudioCueEventType, isCueLifecycleType, isLegacyCartStateBundle, isMidiChannel, isMidiData, isPresentationModel, isPresentationPhase, isSnapshotEnvelope, isVersionedSnapshot, kindSegmentInType, matchEventPattern, midiChannelFromStatus, midiStatus, mountPresentationAdapter, normalizeEvent, normalizedToAsset, normalizedToCanvas, normalizedToCss, parseCapabilityManifest, parseGeometry, parseMidiBytes, parseSnapshot, pointFromOrigin, pointerToRegion, rectToCanvas, rectToCss, regionToViewport, registerCartStateHotkeys, replayExportedTrace, resolveImportableCartState, resolveRuntimeSeed, restoreSnapshotFromUnknown, rewriteHostedAssetRef, scheduleAudioCue, serializeGeometry, snapshotErrorsToMessage, snapshotFromCartBundle, validateCapabilityManifest, validateGeometry, validateSnapshot, verifyAttachOptions };
2846
+ export { ANCHOR_ORIGINS, ASSET_FAILED_EVENT, ASSET_FAILURE_CODES, ASSET_KINDS, ASSET_READY_EVENT, AUDIO_CUE_EVENTS, AUDIO_CUE_FAILED_EVENT, AUDIO_CUE_SCHEDULED_EVENT, AUDIO_CUE_SKIPPED_EVENT, AUDIO_CUE_STARTED_EVENT, type ActiveAudioCue, type AnchorOrigin, type AnimationCart, type AnimationTiming, type AppliedAction, type ApplySnapshotMigrationsResult, type AssetCorsMode, type AssetDeclaration, type AssetFailure, type AssetFailureCode, type AssetItemStatus, type AssetKind, type AssetPreloadSnapshot, type AssetPreloader, type AssetProvenance, type AssetResolveRequest, type AssetResolver, type AssetRuntimeOptions, type AttachOptions, type AttachPresentationAdapterOptions, type AudioAssetStatus, type AudioBroker, type AudioBrokerInspect, type AudioBrokerListener, type AudioBrokerNotice, type AudioChannelInspect, type AudioCueEvent, type AudioCueEventType, type AudioCueFailReason, type AudioCueReason, type AudioCueSkipReason, type AudioCueSpec, type AudioCueTimeline, type AudioCueTimelineSnapshot, type AudioCueView, type AudioLibraryId, type AudioLibrarySpec, type AudioUnlockState, type AudioUnlockStatus, type BoundReplaySession, type BrowserA11ySnapshot, type BrowserCompositorConfig, type BrowserHarness, type BrowserHarnessAction, type BrowserHarnessInspect, type BrowserHarnessMountContext, type BrowserHarnessRuntimeContext, type BrowserHarnessScreenshot, type BrowserHostSession, type BrowserInputModality, type BrowserReproductionMetadata, type BrowserViewport, CAPABILITY_ASSET_KINDS, CAPABILITY_BLEND_MODES, CAPABILITY_CART_KINDS, CAPABILITY_CLEAR_POLICIES, CAPABILITY_INTEGRATIONS, CAPABILITY_MANAGERS, CAPABILITY_MANIFEST_VERSION, CAPABILITY_PHASES, COMPOSITOR_BLEND_MODES, COMPOSITOR_CLEAR_POLICIES, COMPOSITOR_SOURCE_KINDS, COORDINATE_SPACES, CUE_CANCELLED_EVENT, CUE_COMPLETED_EVENT, CUE_LIFECYCLE_EVENTS, CUE_REPLACED_EVENT, CUE_STARTED_EVENT, CYBERART_CANVAS_ATTR, type CapabilityAssetDeclarationSummary, type CapabilityAssetKind, type CapabilityAssetSummary, type CapabilityBlendMode, type CapabilityCartKind, type CapabilityClearPolicy, type CapabilityDiagnostic, type CapabilityIntegration, type CapabilityLayerRequirements, type CapabilityManager, type CapabilityManifest, type CapabilityManifestInput, type CapabilityModuleRef, type CapabilityModuleRequirements, type CapabilityPermissions, type CapabilityPhase, type CapabilityRuntime, type CapabilitySurfaceRequirements, type CartHandle, type CartKind, type CartSnapshot, type CartStateBundle, type CartStateHotkeyOptions, type CartStateMessageHandler, type CartStatePersister, type CausationTreeNode, type Clock, type ClockSnapshot, type ComposedFrame, type Compositor, type CompositorBlendMode, type CompositorCanvasSource, type CompositorClearPolicy, type CompositorClip, type CompositorHostOptions, type CompositorImageSource, type CompositorInspect, type CompositorLayerConfig, type CompositorLayerInspect, type CompositorLayerSource, type CompositorParticipantSource, type CompositorPointerEvents, type CompositorSourceKind, type ContractDiagnostic, type ContractFieldType, type ContractRegistry, type CoordinateSpace, type CreateAssetPreloaderOptions, type CreateAudioBrokerOptions, type CreateAudioCueTimelineOptions, type CreateBrowserHarnessOptions, type CreateCompositorOptions, type CreateExecutableModuleHostOptions, type CreatePresentationLayoutInput, type CreatePresentationTimelineOptions, type CreateReplayInspectorOptions, type CreateRuntimeGroupOptions, type CreateRuntimeOptions, type CreateVisualLayerControllerOptions, type CueDuplicatePolicy, type CueEasing, type CueLifecycleEvent, type CueLifecycleType, type CuePhase, type CueReducedMotionPolicy, type CueRepeatPolicy, type CueSpec, type CueTimelineSnapshot, type CueView, type CyberArtRuntime, DEFAULT_BROWSER_VIEWPORT, DEFAULT_DUCK_GAIN, DEFAULT_GROUP_HEIGHT, DEFAULT_GROUP_WIDTH, DEFAULT_MAX_HOPS, DEFAULT_MAX_INSPECTOR_RECORDS, type DebugDrawCall, type DefineCapabilityManifestResult, type DefineContractResult, type DefineSnapshotResult, type DeterministicRuntimeOptions, type DimensionContext, ENGINE_SNAPSHOT_RUNTIME, EVENT_ENVELOPE_VERSION, EXECUTABLE_MODULE_ERROR_CODES, type EventContract, type EventContractManifest, type EventEnvelope, type EventInput, type EventKind, type EventRouter, type EventRouterOptions, type ExecutableModuleCapabilities, type ExecutableModuleDiagnostic, type ExecutableModuleError, type ExecutableModuleErrorCode, type ExecutableModuleFactory, type ExecutableModuleHost, type ExecutableModuleHostInspect, type ExecutableModuleInstance, type ExecutableModuleInvokeContext, type ExecutableModuleInvokeResult, type ExecutableModuleLimits, type ExecutableModuleLoadResult, type ExecutableModuleRef, type ExecutableModuleRegistration, type ExportSnapshotOptions, type FixtureAssetCatalog, type FixtureAssetRecord, type FrameErrorInfo, type FrameTimingSample, GEOMETRY_CONTRACT_VERSION, type GeometryAnchor, type GeometryDebugContext, type GeometryDiagnostic, type GeometryDocument, type GeometryHitbox, type GeometryPadding, type GeometrySafeArea, type GeometryValidation, HOST_STATE_ACCEPTED_EVENT, type HeadlessAudioAdapter, type HostCapabilities, HostChannel, type HostEvent, type HostEventListener, type HostedAssetResolverOptions, INVALID_PRESENTATION_MODEL_MESSAGE, type ImportCartStateExtras, IncompatibleCartStateError, type InferredPayload, type InspectorRecord, KeyboardManager, LEGACY_SNAPSHOT_SCHEMA_VERSION, type LandmarkRegisterResult, type LandmarkRegistry, type LegacySnapshot, MIDI_CHANNEL_MAX, MIDI_CHANNEL_MIN, MIDI_CONTROL_CHANGE, MIDI_DATA_MAX, MIDI_NOTE_OFF, MIDI_NOTE_ON, MIDI_PITCH_BEND, MIDI_PITCH_CENTER, MIDI_PITCH_MAX, type MidiAccessFailureReason, type MidiAccessLike, type MidiAccessResult, type MidiCcMessage, type MidiChannel, type MidiInjectInput, type MidiInputLike, MidiManager, type MidiManagerOptions, type MidiMessage, type MidiNoteMessage, type MidiOutputPort, type MidiPitchMessage, type MidiRawMessage, type MidiRequestAccess, type MidiSendFailureReason, type MidiSendResult, type MidiStatusByte, type MidiSubscribeKind, type MidiSubscribeListener, type MidiVoiceInput, type MountOptions, type MountPresentationAdapterOptions, type NormalizeContext, type NormalizeResult, type NormalizedPoint, type NormalizedPolygon, type NormalizedRect, PRESENTATION_ADAPTER_VERSION, PRESENTATION_MODEL_EVENT, PRESENTATION_PHASES, PRESENTATION_SUBSCRIBE_PATTERNS, PRESENTATION_UNSUPPORTED_EVENT, type ParseSnapshotResult, type PayloadFieldSpec, type PayloadSchema, type PayloadValidation, type PixelPoint, type PixelRect, type PlayAudioCueResult, type PlayCueResult, type PlayVisualLayerResult, type PlaywrightCompatibleAdapter, type PlaywrightCompatibleViewport, type PointerClick, PointerManager, type PointerSpace, type PresentationAdapter, type PresentationAdapterTarget, type PresentationCartState, type PresentationFitMode, type PresentationLayout, type PresentationModel, type PresentationPhase, type PresentationRegion, type PresentationTimeline, type PresentationView, type PublishExtras, REDACTED_VALUE, REJECTED_EVENT_TYPE, REPLAY_INSPECTOR_SCHEMA_VERSION, ROUND_TRIP_TOLERANCE, ROUND_TRIP_TOLERANCE_CANVAS_PX, Random, type RandomState, type RejectionPayload, type RejectionReason, type ReplayCompareResult, type ReplayInspector, type ReplayInspectorExport, type ReplayInspectorReport, type ReplayMetadata, type ReplayParticipantSummary, type ReplayTapeAction, type ReplayTraceFilter, type ResolveImportableCartStateResult, type ResolvedAsset, type RestoreVisualLayerResult, type RouterDecision, type RouterDecisionOutcome, type RouterDecisionReason, type RouterParticipantInspect, type RuntimeGroup, type RuntimeGroupCapability, type RuntimeGroupDiagnostics, type RuntimeGroupFrameError, type RuntimeGroupInspect, type RuntimeGroupKind, type RuntimeGroupParticipantConfig, type RuntimeGroupParticipantHandle, type RuntimeGroupParticipantInspect, SILENT_ASSET_FALLBACK_REF, SNAPSHOT_SCHEMA_VERSION, type SchemaCompatibility, type ScriptedAction, type SnapshotAssetRef, type SnapshotCartRef, type SnapshotClock, type SnapshotDiagnostic, type SnapshotEnvelope, type SnapshotEnvelopeInput, type SnapshotIntegrity, type SnapshotMigration, type SnapshotMigrationRegistry, type SnapshotModuleRef, type SnapshotProvenance, type TokenData, UNVERSIONED_CART_VERSION, VISUAL_LAYER_EVENTS, VISUAL_LAYER_FAILED_EVENT, VISUAL_LAYER_FAILURE_CODES, VISUAL_LAYER_HIDDEN_EVENT, VISUAL_LAYER_INCOMING_SUFFIX, VISUAL_LAYER_KINDS, VISUAL_LAYER_REVEALED_EVENT, VISUAL_LAYER_SNAPSHOT_SCHEMA_VERSION, VISUAL_LAYER_TRANSITIONS, VISUAL_LAYER_TRANSITION_COMPLETED_EVENT, VISUAL_LAYER_TRANSITION_STARTED_EVENT, type ValidateCapabilityManifestResult, type ValidateResult, type ValidateSnapshotResult, type VersionedSnapshot, type VirtualClock, type VisualLayerAcceptedBinding, type VisualLayerAssetStatus, type VisualLayerCapture, type VisualLayerController, type VisualLayerControllerSnapshot, type VisualLayerCueSpec, type VisualLayerDeclaration, type VisualLayerDiagnostic, type VisualLayerEvent, type VisualLayerEventType, type VisualLayerFailureCode, type VisualLayerFallbackPolicy, type VisualLayerInspect, type VisualLayerKind, type VisualLayerSnapshotRow, type VisualLayerTransitionInspect, type VisualLayerTransitionKind, type VisualLayerVersionDeclaration, applyCueEasing, applySnapshotMigrations, assetStatusEvent, assetToNormalized, attachCartStatePersistence, attachPresentationAdapter, canonicalizeSeed, canvasToCss, canvasToNormalized, toJSON as capabilityManifestToJSON, captureVisualLayers, cloneSnapshotJson, comparePayloadSchemas, compareReplayTraces, createAssetFailure, createAssetPreloader, createAudioBroker, createAudioCueTimeline, createBrowserHarness, createCompositor, createContractRegistry, createEngineSnapshotMigrations, createEventRouter, createExecutableModuleHost, createFixtureAssetResolver, createHeadlessAudioAdapter, createHostedAssetResolver, createLandmarkRegistry, createPlaywrightCompatibleAdapter, createPresentationLayout, createPresentationModelEvent, createPresentationTimeline, createReferencePresentationCart, createReplayInspector, createRuntime, createRuntimeGroup, createSnapshotMigrationRegistry, createVirtualClock, createVisualLayerController, createWallClock, cssToCanvas, cssToNormalized, defaultSnapshotMigrationRegistry, defineCapabilityManifest, defineDiagnostic, defineIntent, defineSnapshot, defineStateEvent, deriveAttachOptions, describeReplayMismatch, detectSnapshotSchemaVersion, drawGeometryDebug, encodeMidiMessage, engineStateFromEnvelope, familyPatternForType, inferEventKind, isAssetFailure, isAssetFailureCode, isAssetKind, isAudioCueEventType, isCueLifecycleType, isLegacyCartStateBundle, isMidiChannel, isMidiData, isPresentationModel, isPresentationPhase, isSnapshotEnvelope, isVersionedSnapshot, isVisualLayerEventType, isVisualLayerKind, isVisualLayerTransitionKind, kindSegmentInType, matchEventPattern, midiChannelFromStatus, midiStatus, mountPresentationAdapter, normalizeEvent, normalizedToAsset, normalizedToCanvas, normalizedToCss, parseCapabilityManifest, parseGeometry, parseMidiBytes, parseSnapshot, pointFromOrigin, pointerToRegion, rectToCanvas, rectToCss, regionToViewport, registerCartStateHotkeys, replayExportedTrace, resolveImportableCartState, resolveRuntimeSeed, restoreSnapshotFromUnknown, rewriteHostedAssetRef, scheduleAudioCue, serializeGeometry, snapshotErrorsToMessage, snapshotFromCartBundle, validateCapabilityManifest, validateGeometry, validateSnapshot, verifyAttachOptions, visualIncomingLayerId };