import Mixin from "@ember/object/mixin"; // eslint-disable-next-line @definitelytyped/no-self-import import Enumerable from "@ember/array/-private/enumerable"; /** * This mixin defines the API for modifying generic enumerables. These methods * can be applied to an object regardless of whether it is ordered or * unordered. */ interface MutableEnumerable extends Enumerable { /** * __Required.__ You must implement this method to apply this mixin. */ addObject(object: T): T; /** * Adds each object in the passed enumerable to the receiver. */ addObjects(objects: Enumerable): this; /** * __Required.__ You must implement this method to apply this mixin. */ removeObject(object: T): T; /** * Removes each object in the passed enumerable from the receiver. */ removeObjects(objects: Enumerable): this; } declare const MutableEnumerable: Mixin>; export default MutableEnumerable;