export interface Component { id?: string; remove?(): void; } export declare function injectComponent(component: T): T & Component;