@cyberart-io/engine 0.0.3 → 0.0.4

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
@@ -1119,4 +1119,369 @@ declare function isCueLifecycleType(value: unknown): value is CueLifecycleType;
1119
1119
  declare function applyCueEasing(t: number, easing: CueEasing): number;
1120
1120
  declare function createPresentationTimeline(options?: CreatePresentationTimelineOptions): PresentationTimeline;
1121
1121
 
1122
- export { ASSET_FAILED_EVENT, ASSET_FAILURE_CODES, ASSET_KINDS, ASSET_READY_EVENT, type AnimationCart, type AnimationTiming, type AppliedAction, 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 AudioLibraryId, type AudioLibrarySpec, CUE_CANCELLED_EVENT, CUE_COMPLETED_EVENT, CUE_LIFECYCLE_EVENTS, CUE_REPLACED_EVENT, CUE_STARTED_EVENT, CYBERART_CANVAS_ATTR, type CartHandle, type CartSnapshot, type CartStateBundle, type CartStateHotkeyOptions, type CartStateMessageHandler, type CartStatePersister, type Clock, type ClockSnapshot, type ContractDiagnostic, type ContractFieldType, type ContractRegistry, type CreateAssetPreloaderOptions, type CreatePresentationTimelineOptions, 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_MAX_HOPS, type DefineContractResult, type DeterministicRuntimeOptions, type DimensionContext, EVENT_ENVELOPE_VERSION, type EventContract, type EventContractManifest, type EventEnvelope, type EventInput, type EventKind, type EventRouter, type EventRouterOptions, type FixtureAssetCatalog, type FixtureAssetRecord, type FrameErrorInfo, HostChannel, type HostEvent, type HostEventListener, type HostedAssetResolverOptions, INVALID_PRESENTATION_MODEL_MESSAGE, type ImportCartStateExtras, IncompatibleCartStateError, type InferredPayload, KeyboardManager, type MountOptions, type MountPresentationAdapterOptions, type NormalizeContext, type NormalizeResult, PRESENTATION_ADAPTER_VERSION, PRESENTATION_MODEL_EVENT, PRESENTATION_PHASES, PRESENTATION_SUBSCRIBE_PATTERNS, PRESENTATION_UNSUPPORTED_EVENT, type PayloadFieldSpec, type PayloadSchema, type PayloadValidation, type PlayCueResult, type PointerClick, PointerManager, type PresentationAdapter, type PresentationAdapterTarget, type PresentationCartState, type PresentationModel, type PresentationPhase, type PresentationRegion, type PresentationTimeline, type PresentationView, type PublishExtras, REJECTED_EVENT_TYPE, Random, type RandomState, type RejectionPayload, type RejectionReason, type ReplayMetadata, type ResolvedAsset, SILENT_ASSET_FALLBACK_REF, type SchemaCompatibility, type ScriptedAction, type TokenData, type ValidateResult, type VirtualClock, applyCueEasing, assetStatusEvent, attachCartStatePersistence, attachPresentationAdapter, canonicalizeSeed, comparePayloadSchemas, createAssetFailure, createAssetPreloader, createContractRegistry, createEventRouter, createFixtureAssetResolver, createHostedAssetResolver, createPresentationModelEvent, createPresentationTimeline, createReferencePresentationCart, createRuntime, createVirtualClock, createWallClock, defineDiagnostic, defineIntent, defineStateEvent, deriveAttachOptions, describeReplayMismatch, familyPatternForType, inferEventKind, isAssetFailure, isAssetFailureCode, isAssetKind, isCueLifecycleType, isPresentationModel, isPresentationPhase, kindSegmentInType, matchEventPattern, mountPresentationAdapter, normalizeEvent, registerCartStateHotkeys, resolveRuntimeSeed, rewriteHostedAssetRef, verifyAttachOptions };
1122
+ /**
1123
+ * Copyright (c) 2026 Aaron Boyarsky
1124
+ * SPDX-License-Identifier: LicenseRef-CyberArt-Engine
1125
+ * See packages/engine/LICENSE
1126
+ *
1127
+ * Versioned, JSON-serializable capability manifest for a cart/module.
1128
+ * Definition, parse, and host validation all return structured diagnostics
1129
+ * instead of throwing.
1130
+ */
1131
+ declare const CAPABILITY_MANIFEST_VERSION: 1;
1132
+ declare const CAPABILITY_PHASES: readonly ["loading", "ready", "error", "unsupported"];
1133
+ type CapabilityPhase = (typeof CAPABILITY_PHASES)[number];
1134
+ declare const CAPABILITY_MANAGERS: readonly ["keyboard", "pointer", "audio", "assets", "hostChannel"];
1135
+ type CapabilityManager = (typeof CAPABILITY_MANAGERS)[number];
1136
+ declare const CAPABILITY_ASSET_KINDS: readonly ["image", "audio", "font", "spritesheet"];
1137
+ type CapabilityAssetKind = (typeof CAPABILITY_ASSET_KINDS)[number];
1138
+ declare const CAPABILITY_INTEGRATIONS: readonly ["tone", "midi"];
1139
+ type CapabilityIntegration = (typeof CAPABILITY_INTEGRATIONS)[number];
1140
+ type CapabilityDiagnostic = {
1141
+ code: string;
1142
+ detail: string;
1143
+ path?: string;
1144
+ };
1145
+ type CapabilityRuntime = {
1146
+ minContractVersion: number;
1147
+ features: string[];
1148
+ };
1149
+ type CapabilityAssetDeclarationSummary = {
1150
+ id: string;
1151
+ kind: CapabilityAssetKind;
1152
+ };
1153
+ type CapabilityAssetSummary = {
1154
+ kinds: CapabilityAssetKind[];
1155
+ declarations: CapabilityAssetDeclarationSummary[];
1156
+ };
1157
+ type CapabilityPermissions = {
1158
+ emit: string[];
1159
+ subscribe: string[];
1160
+ authoritative?: boolean;
1161
+ };
1162
+ type CapabilityManifest = {
1163
+ version: typeof CAPABILITY_MANIFEST_VERSION;
1164
+ id: string;
1165
+ runtime: CapabilityRuntime;
1166
+ phases: CapabilityPhase[];
1167
+ managers: CapabilityManager[];
1168
+ assets: CapabilityAssetSummary;
1169
+ acceptedEvents: string[];
1170
+ emittedEvents: string[];
1171
+ permissions: CapabilityPermissions;
1172
+ integrations: CapabilityIntegration[];
1173
+ };
1174
+ type CapabilityManifestInput = {
1175
+ version?: number;
1176
+ id: string;
1177
+ runtime: CapabilityRuntime;
1178
+ phases: CapabilityPhase[];
1179
+ managers: CapabilityManager[];
1180
+ assets: CapabilityAssetSummary;
1181
+ acceptedEvents: string[];
1182
+ emittedEvents: string[];
1183
+ permissions: CapabilityPermissions;
1184
+ integrations: CapabilityIntegration[];
1185
+ };
1186
+ type HostCapabilities = {
1187
+ contractVersion: number;
1188
+ features: string[];
1189
+ integrations: CapabilityIntegration[];
1190
+ managers?: CapabilityManager[];
1191
+ emit?: string[];
1192
+ subscribe?: string[];
1193
+ };
1194
+ type DefineCapabilityManifestResult = {
1195
+ ok: true;
1196
+ manifest: CapabilityManifest;
1197
+ } | {
1198
+ ok: false;
1199
+ errors: CapabilityDiagnostic[];
1200
+ };
1201
+ type ValidateCapabilityManifestResult = {
1202
+ ok: true;
1203
+ } | {
1204
+ ok: false;
1205
+ errors: CapabilityDiagnostic[];
1206
+ };
1207
+ declare function defineCapabilityManifest(input: unknown): DefineCapabilityManifestResult;
1208
+ declare function parseCapabilityManifest(json: string | unknown): DefineCapabilityManifestResult;
1209
+ declare function toJSON(manifest: CapabilityManifest): CapabilityManifest;
1210
+ declare function validateCapabilityManifest(manifest: CapabilityManifest, hostCapabilities: HostCapabilities): ValidateCapabilityManifestResult;
1211
+
1212
+ /**
1213
+ * Copyright (c) 2026 Aaron Boyarsky
1214
+ * SPDX-License-Identifier: LicenseRef-CyberArt-Engine
1215
+ * See packages/engine/LICENSE
1216
+ *
1217
+ * Shared normalized coordinate, anchor, and hit-region contract. Hosts and
1218
+ * adapters may adopt this later; pixel `PresentationRegion` is unchanged.
1219
+ *
1220
+ * Coordinate spaces:
1221
+ * - `normalized` — 0–1 of the **content** box (full intrinsic artwork, not letterbox).
1222
+ * - `asset` — intrinsic content pixels (`contentWidth` × `contentHeight`).
1223
+ * - `css` / `viewport` — layout pixels (`viewportWidth` × `viewportHeight`).
1224
+ * - `canvas` — drawing-buffer pixels (`css * devicePixelRatio`). Pointers match
1225
+ * `PointerManager` / harness `click` when the buffer is the drawing canvas.
1226
+ *
1227
+ * Pointer helpers default to **canvas** space. Pass `{ space: 'css' }` for
1228
+ * layout pixels. Round-trip: `ROUND_TRIP_TOLERANCE` (1e-6 normalized) or
1229
+ * `ROUND_TRIP_TOLERANCE_CANVAS_PX` (0.5 canvas px).
1230
+ */
1231
+ declare const GEOMETRY_CONTRACT_VERSION: 1;
1232
+ /** Maximum |Δ| in normalized units after canvas/css round-trip. */
1233
+ declare const ROUND_TRIP_TOLERANCE = 0.000001;
1234
+ /** Maximum |Δ| in canvas pixels after normalized round-trip. */
1235
+ declare const ROUND_TRIP_TOLERANCE_CANVAS_PX = 0.5;
1236
+ declare const COORDINATE_SPACES: readonly ["normalized", "asset", "canvas", "css", "viewport"];
1237
+ type CoordinateSpace = (typeof COORDINATE_SPACES)[number];
1238
+ type PointerSpace = 'canvas' | 'css';
1239
+ type PresentationFitMode = 'contain' | 'cover' | 'crop';
1240
+ declare const ANCHOR_ORIGINS: readonly ["center", "top-left", "top-right", "bottom-left", "bottom-right", "top", "bottom", "left", "right"];
1241
+ type AnchorOrigin = (typeof ANCHOR_ORIGINS)[number];
1242
+ type NormalizedPoint = {
1243
+ x: number;
1244
+ y: number;
1245
+ };
1246
+ type NormalizedRect = {
1247
+ x: number;
1248
+ y: number;
1249
+ width: number;
1250
+ height: number;
1251
+ };
1252
+ type NormalizedPolygon = readonly NormalizedPoint[];
1253
+ type PixelPoint = {
1254
+ x: number;
1255
+ y: number;
1256
+ };
1257
+ type PixelRect = {
1258
+ x: number;
1259
+ y: number;
1260
+ width: number;
1261
+ height: number;
1262
+ };
1263
+ type GeometryPadding = {
1264
+ top: number;
1265
+ right: number;
1266
+ bottom: number;
1267
+ left: number;
1268
+ };
1269
+ /** Insets from the content edges in normalized units (0–1). */
1270
+ type GeometrySafeArea = GeometryPadding;
1271
+ type GeometryAnchor = {
1272
+ id: string;
1273
+ point: NormalizedPoint;
1274
+ origin?: AnchorOrigin;
1275
+ };
1276
+ type GeometryHitbox = {
1277
+ id: string;
1278
+ rect?: NormalizedRect;
1279
+ polygon?: NormalizedPolygon;
1280
+ };
1281
+ type GeometryDocument = {
1282
+ version: typeof GEOMETRY_CONTRACT_VERSION;
1283
+ landmarks: GeometryAnchor[];
1284
+ regions: GeometryHitbox[];
1285
+ padding?: GeometryPadding;
1286
+ safeArea?: GeometrySafeArea;
1287
+ };
1288
+ type CreatePresentationLayoutInput = {
1289
+ contentWidth: number;
1290
+ contentHeight: number;
1291
+ viewportWidth: number;
1292
+ viewportHeight: number;
1293
+ mode: PresentationFitMode;
1294
+ /** Canvas buffer pixels per CSS pixel. Default 1. */
1295
+ devicePixelRatio?: number;
1296
+ };
1297
+ type PresentationLayout = {
1298
+ mode: PresentationFitMode;
1299
+ contentWidth: number;
1300
+ contentHeight: number;
1301
+ viewportWidth: number;
1302
+ viewportHeight: number;
1303
+ devicePixelRatio: number;
1304
+ /** Content → CSS pixels. */
1305
+ scale: number;
1306
+ /** Letterbox (positive) or crop (negative) offset of content origin in CSS. */
1307
+ offsetX: number;
1308
+ offsetY: number;
1309
+ canvasWidth: number;
1310
+ canvasHeight: number;
1311
+ /** Visible slice of the content box in normalized space. */
1312
+ visibleNormalizedRect: NormalizedRect;
1313
+ };
1314
+ type GeometryDiagnostic = {
1315
+ code: 'out-of-bounds' | 'overlap' | 'duplicate-id' | 'invalid-shape' | 'version-mismatch';
1316
+ id?: string;
1317
+ detail: string;
1318
+ with?: string;
1319
+ };
1320
+ type GeometryValidation = {
1321
+ ok: boolean;
1322
+ diagnostics: GeometryDiagnostic[];
1323
+ };
1324
+ type LandmarkRegisterResult = {
1325
+ ok: true;
1326
+ landmark: GeometryAnchor;
1327
+ } | {
1328
+ ok: false;
1329
+ error: 'duplicate-id';
1330
+ id: string;
1331
+ };
1332
+ type LandmarkRegistry = {
1333
+ register(landmark: GeometryAnchor): LandmarkRegisterResult;
1334
+ get(id: string): GeometryAnchor | undefined;
1335
+ list(): GeometryAnchor[];
1336
+ };
1337
+ type DebugDrawCall = {
1338
+ method: string;
1339
+ id?: string;
1340
+ args: unknown[];
1341
+ };
1342
+ type GeometryDebugContext = {
1343
+ fillStyle?: string;
1344
+ strokeStyle?: string;
1345
+ font?: string;
1346
+ fillRect?(x: number, y: number, w: number, h: number): void;
1347
+ strokeRect?(x: number, y: number, w: number, h: number): void;
1348
+ fillText?(text: string, x: number, y: number): void;
1349
+ beginPath?(): void;
1350
+ moveTo?(x: number, y: number): void;
1351
+ lineTo?(x: number, y: number): void;
1352
+ closePath?(): void;
1353
+ stroke?(): void;
1354
+ fill?(): void;
1355
+ };
1356
+ declare function pointFromOrigin(origin: AnchorOrigin): NormalizedPoint;
1357
+ declare function createPresentationLayout(input: CreatePresentationLayoutInput): PresentationLayout;
1358
+ declare function normalizedToAsset(point: NormalizedPoint, layout: PresentationLayout): PixelPoint;
1359
+ declare function assetToNormalized(point: PixelPoint, layout: PresentationLayout): NormalizedPoint;
1360
+ declare function normalizedToCss(point: NormalizedPoint, layout: PresentationLayout): PixelPoint;
1361
+ declare function cssToNormalized(point: PixelPoint, layout: PresentationLayout): NormalizedPoint;
1362
+ declare function cssToCanvas(point: PixelPoint, layout: PresentationLayout): PixelPoint;
1363
+ declare function canvasToCss(point: PixelPoint, layout: PresentationLayout): PixelPoint;
1364
+ declare function normalizedToCanvas(point: NormalizedPoint, layout: PresentationLayout): PixelPoint;
1365
+ declare function canvasToNormalized(point: PixelPoint, layout: PresentationLayout): NormalizedPoint;
1366
+ declare function rectToCss(rect: NormalizedRect, layout: PresentationLayout): PixelRect;
1367
+ declare function rectToCanvas(rect: NormalizedRect, layout: PresentationLayout): PixelRect;
1368
+ /**
1369
+ * Pointer is in **canvas** pixels unless `{ space: 'css' }` is passed.
1370
+ * Returns the first region whose rect or polygon contains the point, in
1371
+ * document order.
1372
+ */
1373
+ declare function pointerToRegion(pointer: PixelPoint, layout: PresentationLayout, doc: GeometryDocument, options?: {
1374
+ space?: PointerSpace;
1375
+ }): GeometryHitbox | undefined;
1376
+ /** Visible CSS (viewport) rectangle for a region; polygons use their AABB. */
1377
+ declare function regionToViewport(region: GeometryHitbox, layout: PresentationLayout): PixelRect | undefined;
1378
+ declare function createLandmarkRegistry(initial?: readonly GeometryAnchor[]): LandmarkRegistry;
1379
+ declare function validateGeometry(doc: GeometryDocument): GeometryValidation;
1380
+ /**
1381
+ * Draws labeled region rects and reports validation failures as extra labels.
1382
+ * Tests may pass a stub that records `fillRect` / `strokeRect` / `fillText`.
1383
+ */
1384
+ declare function drawGeometryDebug(ctx: GeometryDebugContext, layout: PresentationLayout, doc: GeometryDocument, diagnostics?: readonly GeometryDiagnostic[]): DebugDrawCall[];
1385
+ declare function serializeGeometry(doc: GeometryDocument): string;
1386
+ declare function parseGeometry(json: string): GeometryDocument;
1387
+
1388
+ /**
1389
+ * Copyright (c) 2026 Aaron Boyarsky
1390
+ * SPDX-License-Identifier: LicenseRef-CyberArt-Engine
1391
+ * See packages/engine/LICENSE
1392
+ *
1393
+ * First-class multi-cart runtime group. Creates production `createRuntime`
1394
+ * instances, attaches each mailbox to one shared `createEventRouter`, and
1395
+ * locksteps a deterministic clock. Carts never receive the router object.
1396
+ */
1397
+
1398
+ declare const DEFAULT_GROUP_WIDTH = 320;
1399
+ declare const DEFAULT_GROUP_HEIGHT = 180;
1400
+ type RuntimeGroupKind = 'render' | 'calculation';
1401
+ /**
1402
+ * Optional capability-shaped attach hints. Explicit participant `emit` /
1403
+ * `subscribe` / `authoritative` win. Do not import the capability manifest
1404
+ * module from this file.
1405
+ */
1406
+ type RuntimeGroupCapability = {
1407
+ emit?: string[];
1408
+ subscribe?: string[];
1409
+ authoritative?: boolean;
1410
+ };
1411
+ type RuntimeGroupFrameError = {
1412
+ error: unknown;
1413
+ info: FrameErrorInfo;
1414
+ };
1415
+ type RuntimeGroupParticipantConfig<T = unknown> = {
1416
+ id: string;
1417
+ cart: AnimationCart<T>;
1418
+ /** Rendered surface vs calculation cart (still a real `AnimationCart`). */
1419
+ kind?: RuntimeGroupKind;
1420
+ seed?: CreateRuntimeOptions['seed'];
1421
+ container?: HTMLElement;
1422
+ width?: number;
1423
+ height?: number;
1424
+ initialState?: Partial<T>;
1425
+ gameManager?: unknown;
1426
+ onEvent?: HostEventListener;
1427
+ emit?: string[];
1428
+ subscribe?: string[];
1429
+ authoritative?: boolean;
1430
+ capability?: RuntimeGroupCapability;
1431
+ };
1432
+ type CreateRuntimeGroupOptions = {
1433
+ participants: RuntimeGroupParticipantConfig[];
1434
+ /** Shared virtual-clock origin (ms). Default 0. */
1435
+ origin?: number;
1436
+ width?: number;
1437
+ height?: number;
1438
+ validate?: EventRouterOptions['validate'];
1439
+ createId?: () => string;
1440
+ now?: () => number;
1441
+ /** Extra router options. Group injects shared `createId` / `now` unless set here. */
1442
+ router?: EventRouterOptions;
1443
+ };
1444
+ type RuntimeGroupParticipantInspect = {
1445
+ state: unknown;
1446
+ events: HostEvent[];
1447
+ errors: RuntimeGroupFrameError[];
1448
+ kind: RuntimeGroupKind;
1449
+ clock: ClockSnapshot;
1450
+ };
1451
+ type RuntimeGroupDiagnostics = {
1452
+ paused: boolean;
1453
+ participantIds: string[];
1454
+ clocks: Record<string, ClockSnapshot>;
1455
+ rejections: unknown[];
1456
+ };
1457
+ type RuntimeGroupInspect = {
1458
+ participants: Record<string, RuntimeGroupParticipantInspect>;
1459
+ trace: EventEnvelope[];
1460
+ diagnostics: RuntimeGroupDiagnostics;
1461
+ };
1462
+ type RuntimeGroupParticipantHandle = {
1463
+ readonly id: string;
1464
+ readonly kind: RuntimeGroupKind;
1465
+ readonly runtime: CyberArtRuntime;
1466
+ readonly container: HTMLElement;
1467
+ readonly events: readonly HostEvent[];
1468
+ readonly errors: readonly RuntimeGroupFrameError[];
1469
+ get cart(): CartHandle;
1470
+ };
1471
+ type RuntimeGroup = {
1472
+ readonly router: EventRouter;
1473
+ readonly origin: number;
1474
+ readonly paused: boolean;
1475
+ participant(id: string): RuntimeGroupParticipantHandle;
1476
+ step(frames?: number): Promise<void>;
1477
+ pause(): void;
1478
+ resume(): void;
1479
+ reset(): void;
1480
+ dispatch(participantId: string, event: HostEvent): void;
1481
+ publish(event: EventInput, extras?: PublishExtras): EventEnvelope | undefined;
1482
+ inspect(): Promise<RuntimeGroupInspect>;
1483
+ destroy(): void;
1484
+ };
1485
+ declare function createRuntimeGroup(options: CreateRuntimeGroupOptions): RuntimeGroup;
1486
+
1487
+ export { ANCHOR_ORIGINS, ASSET_FAILED_EVENT, ASSET_FAILURE_CODES, ASSET_KINDS, ASSET_READY_EVENT, type AnchorOrigin, type AnimationCart, type AnimationTiming, type AppliedAction, 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 AudioLibraryId, type AudioLibrarySpec, CAPABILITY_ASSET_KINDS, CAPABILITY_INTEGRATIONS, CAPABILITY_MANAGERS, CAPABILITY_MANIFEST_VERSION, CAPABILITY_PHASES, 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 CapabilityDiagnostic, type CapabilityIntegration, type CapabilityManager, type CapabilityManifest, type CapabilityManifestInput, type CapabilityPermissions, type CapabilityPhase, type CapabilityRuntime, type CartHandle, type CartSnapshot, type CartStateBundle, type CartStateHotkeyOptions, type CartStateMessageHandler, type CartStatePersister, type Clock, type ClockSnapshot, type ContractDiagnostic, type ContractFieldType, type ContractRegistry, type CoordinateSpace, type CreateAssetPreloaderOptions, type CreatePresentationLayoutInput, type CreatePresentationTimelineOptions, 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_GROUP_HEIGHT, DEFAULT_GROUP_WIDTH, DEFAULT_MAX_HOPS, type DebugDrawCall, type DefineCapabilityManifestResult, type DefineContractResult, type DeterministicRuntimeOptions, type DimensionContext, EVENT_ENVELOPE_VERSION, type EventContract, type EventContractManifest, type EventEnvelope, type EventInput, type EventKind, type EventRouter, type EventRouterOptions, 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 HostCapabilities, HostChannel, type HostEvent, type HostEventListener, type HostedAssetResolverOptions, INVALID_PRESENTATION_MODEL_MESSAGE, type ImportCartStateExtras, IncompatibleCartStateError, type InferredPayload, KeyboardManager, type LandmarkRegisterResult, type LandmarkRegistry, 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 PayloadFieldSpec, type PayloadSchema, type PayloadValidation, type PixelPoint, type PixelRect, type PlayCueResult, 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, REJECTED_EVENT_TYPE, ROUND_TRIP_TOLERANCE, ROUND_TRIP_TOLERANCE_CANVAS_PX, Random, type RandomState, type RejectionPayload, type RejectionReason, type ReplayMetadata, type ResolvedAsset, type RuntimeGroup, type RuntimeGroupCapability, type RuntimeGroupDiagnostics, type RuntimeGroupFrameError, type RuntimeGroupInspect, type RuntimeGroupKind, type RuntimeGroupParticipantConfig, type RuntimeGroupParticipantHandle, type RuntimeGroupParticipantInspect, SILENT_ASSET_FALLBACK_REF, type SchemaCompatibility, type ScriptedAction, type TokenData, type ValidateCapabilityManifestResult, type ValidateResult, type VirtualClock, applyCueEasing, assetStatusEvent, assetToNormalized, attachCartStatePersistence, attachPresentationAdapter, canonicalizeSeed, canvasToCss, canvasToNormalized, toJSON as capabilityManifestToJSON, comparePayloadSchemas, createAssetFailure, createAssetPreloader, createContractRegistry, createEventRouter, createFixtureAssetResolver, createHostedAssetResolver, createLandmarkRegistry, createPresentationLayout, createPresentationModelEvent, createPresentationTimeline, createReferencePresentationCart, createRuntime, createRuntimeGroup, createVirtualClock, createWallClock, cssToCanvas, cssToNormalized, defineCapabilityManifest, defineDiagnostic, defineIntent, defineStateEvent, deriveAttachOptions, describeReplayMismatch, drawGeometryDebug, familyPatternForType, inferEventKind, isAssetFailure, isAssetFailureCode, isAssetKind, isCueLifecycleType, isPresentationModel, isPresentationPhase, kindSegmentInType, matchEventPattern, mountPresentationAdapter, normalizeEvent, normalizedToAsset, normalizedToCanvas, normalizedToCss, parseCapabilityManifest, parseGeometry, pointFromOrigin, pointerToRegion, rectToCanvas, rectToCss, regionToViewport, registerCartStateHotkeys, resolveRuntimeSeed, rewriteHostedAssetRef, serializeGeometry, validateCapabilityManifest, validateGeometry, verifyAttachOptions };