/*!
 * Copyright (c) Microsoft Corporation and contributors. All rights reserved.
 * Licensed under the MIT License.
 */
import { compareChangesetLocalIds, comparePartialRevisions, } from "../core/index.js";
import { createTupleComparator, newTupleBTree } from "../util/index.js";
/** Creates a new {@link ChangeAtomIdBTree} */
export function newChangeAtomIdBTree(entries) {
    return newTupleBTree(compareKeys, entries);
}
const compareKeys = createTupleComparator([comparePartialRevisions, compareChangesetLocalIds]);
export function getFromChangeAtomIdMap(map, id) {
    return map.get([id.revision, id.localId]);
}
export function setInChangeAtomIdMap(map, id, value) {
    map.set([id.revision, id.localId], value);
}
//# sourceMappingURL=changeAtomIdBTree.js.map