import * as nmfl from 'no-more-for-loops'; export interface Cleanable { isToBeRemoved: boolean; clean(): void; } /** * (To be filled) */ export declare class CleanableArray extends nmfl.LoopableArray implements Cleanable { /** * True if the instance is to be removed. */ isToBeRemoved: boolean; /** * List of elements which has been removed recently. */ readonly recentRemovedElements: nmfl.LoopableArray; /** * * @param initialCapacity */ constructor(initialCapacity?: number); /** * Updates the variable 'isToBeRemoved'. * If it has cleanable child elements, calls clean() recursively and * removes the child elements which are to be removed. */ clean(): void; }