import { Component } from './Component'; import { Entity } from './Entity'; export interface ComponentMap { [component: string]: Component; } export declare class EntityHandle implements Entity { readonly id: string; readonly components: { [id: string]: Component; }; readonly bitmask: number; constructor(uuid?: string); getAll(): { [id: string]: Component; }; get(component: { new (...args: any[]): T; } | string): T; has(component: { new (...args: any[]): T; } | string): boolean; add(component: T): void; remove(component: { new (...args: any[]): T; } | string): boolean; dispose(): this; } export declare function injectEntity(entity: T): T & Entity;