import type { AnimationGraph, AssetRegistry, AssetRegistryResolver, AudioClipAsset, ParticleEffectAsset, RuntimeAssetRegistry, TilesetAsset, } from '@forgeax/engine-assets-runtime'; import { expectTypeOf, it } from 'vitest'; it('exports concrete loadByGuid payload types from the runtime entry point', () => { expectTypeOf().toHaveProperty('loadByGuid'); expectTypeOf().toEqualTypeOf<'animation-graph'>(); expectTypeOf().toEqualTypeOf<'tileset'>(); expectTypeOf().toMatchTypeOf<`audio/${string}`>(); expectTypeOf().toMatchTypeOf(); }); it('exports the five-action runtime registry and its resolver from the root entry point', () => { expectTypeOf().toHaveProperty('installDecoder'); expectTypeOf().toHaveProperty('load'); expectTypeOf().toHaveProperty('snapshot'); expectTypeOf().toHaveProperty('subscribe'); expectTypeOf().toHaveProperty('lookup'); expectTypeOf().toHaveProperty('guidOf'); });