/*! * Copyright (c) Microsoft Corporation and contributors. All rights reserved. * Licensed under the MIT License. */ import type { FinalCompressedId } from "./identifiers.js"; import { type IdCluster } from "./sessions.js"; /** * All IDs that have been finalized (acked), grouped into clusters sorted by their base final IDs. * These clusters span the positive integer space and are not sparse, meaning a cluster's base final * ID will always be one greater than the last final ID in the previous cluster (or 0 if there is not one). */ export declare class FinalSpace { private readonly clusterList; get clusters(): readonly IdCluster[]; getLastCluster(): IdCluster | undefined; addCluster(newCluster: IdCluster): void; /** * Gets the upper bound (exclusive) of finalized IDs in final space, i.e. one greater than the last final ID in the last cluster. * Note: this does not include allocated but unfinalized space in clusters. */ getFinalizedIdLimit(): FinalCompressedId; /** * Gets the upper bound (exclusive) of allocated IDs in final space, i.e. one greater than the last final ID in the last cluster. * Note: this does includes all allocated IDs in clusters. */ getAllocatedIdLimit(): FinalCompressedId; equals(other: FinalSpace): boolean; } //# sourceMappingURL=finalSpace.d.ts.map