export default class TrustReadonlyMap {
    #entries;
    constructor(entries) {
        this.#entries = new Map(entries);
        Object.freeze(this);
    }
    get size() {
        return this.#entries.size;
    }
    get(key) {
        return this.#entries.get(key);
    }
    has(key) {
        return this.#entries.has(key);
    }
    keys() {
        return this.#entries.keys();
    }
    values() {
        return this.#entries.values();
    }
    entries() {
        return this.#entries.entries();
    }
    forEach(callback) {
        for (const [key, value] of this.#entries) {
            callback(value, key, this);
        }
    }
    [Symbol.iterator]() {
        return this.#entries[Symbol.iterator]();
    }
}
