export declare class Collection extends Map { limit: number | undefined; set(key: K, value: V): this; forceSet(key: K, value: V): this; array(): V[]; /** Retrieve the value of the first element in this collection */ first(): V | undefined; last(): V | undefined; random(): V | undefined; find(callback: (value: V, key: K) => boolean): V | undefined; filter(callback: (value: V, key: K) => boolean, returnArray?: true): V[]; filter(callback: (value: V, key: K) => boolean, returnArray: false): Collection; map(callback: (value: V, key: K) => T): T[]; some(callback: (value: V, key: K) => boolean): boolean; every(callback: (value: V, key: K) => boolean): boolean; reduce(callback: (accumulator: T, value: V, key: K) => T, initialValue?: T): T; /** * Adds a object to the collection. * @deprecated Recommend using Collection.set(). Keeping for the sake of Eris API. * @deprecated extra parameter. No longer used, keeping for sake of Eris API. */ add(obj: V & { id: K; }, extra?: unknown, replace?: boolean): V; remove(obj: { id: K; }): V | undefined; update(obj: V & { id: K; }, extra?: unknown, replace?: boolean): V; toRecord(): Record; } export default Collection; //# sourceMappingURL=Collection.d.ts.map