import type { EntityManagerSnapshot } from "./Serialization.js"; export type EntityId = number & { readonly __brand: "EntityId"; }; export declare function pack(index: number, gen: number): EntityId; export declare function getIndex(id: EntityId): number; export declare function getGen(id: EntityId): number; export declare class EntityManager { private nextIndex; private freeList; private activeEntities; private activeEntitiesCache; createEntity(): EntityId; destroyEntity(entityId: EntityId): boolean; isEntityValid(entityId: EntityId): boolean; getEntityCount(): number; getAllActiveEntities(): readonly EntityId[]; serialize(): EntityManagerSnapshot; deserialize(snapshot: EntityManagerSnapshot): void; } //# sourceMappingURL=Entity.d.ts.map