import { World } from "koota"; //#region src/ecs/world.d.ts /** * Get the global fallback world. * Created lazily on first access. Used by sprites that aren't * inside a SpriteGroup or Flatland context. */ declare function getGlobalWorld(): World; /** * Reset the global world (for testing). * @internal */ declare function resetGlobalWorld(): void; /** * Interface for Three.js objects that provide ECS world context to children. * Implemented by SpriteGroup and Flatland. */ interface WorldProvider { readonly world: World; } /** * Assign an ECS world to a child object. * Propagates world context down the Three.js scene graph. * * Throws if the child already has a different world assigned — * switching worlds after creation is not allowed. Destroy and * recreate the object instead. * * @param child - Three.js object to assign world to * @param world - ECS world to assign */ declare function assignWorld(child: { _flatlandWorld?: World | null; }, world: World): void; //#endregion export { WorldProvider, assignWorld, getGlobalWorld, resetGlobalWorld }; //# sourceMappingURL=world.d.ts.map