import { Entity } from './entity'; /** * Base Component Class. Inherit this to write your own */ export declare abstract class Component { /** * The Composable owning this Component. * Set during initialization, and cannot be changed later. */ protected entity: Entity; /** * Creates an instance of Component. * * @param {Entity} entity The Entity that will receive the Component */ constructor(entity: Entity); /** * The update() callback */ abstract update(delta: number): void; /** * Use this method to do any clearing work that could be required when * the Component is destroyed. */ abstract destroy(): void; }