import type { Session, Snowflake } from './deps.js'; export declare class Collection extends Map { constructor(session: Session, entries?: Iterable); readonly session: Session; get(key: Snowflake): V | undefined; set(key: Snowflake, value: V): this; has(key: Snowflake): boolean; clear(): void; random(): V | undefined; random(amount: number): V[]; find(fn: (value: V, key: Snowflake, structCache: this) => boolean): V | undefined; filter(fn: (value: V, key: Snowflake, structCache: this) => boolean): Collection; forEach(fn: (value: V, key: Snowflake, structCache: this) => T): void; clone(): Collection; concat(structures: Collection[]): Collection; some(fn: (value: V, key: Snowflake, structCache: this) => boolean): boolean; every(fn: (value: V, key: Snowflake, structCache: this) => boolean): boolean; first(): V | undefined; first(amount: number): V[]; last(): V | undefined; last(amount: number): V[]; reverse(): this; map(fn: (value: V, key: Snowflake, collection: this) => T): T[]; reduce(fn: (acc: T, value: V, key: Snowflake, structCache: this) => T, initV?: T): T; get size(): number; get empty(): boolean; updateFields(key: Snowflake, obj: Partial): this | undefined; getOr(key: Snowflake, or: V): V | undefined; retrieve(key: Snowflake, fn: (value: V) => T): T | undefined; } export default Collection;