import { IIndexSetCursor } from "../core/i_index_set_cursor.js"; import { ILocalIDSetWithCursor } from "../core/i_local_id_set.js"; import { ReadonlyUint32Array } from "../core/readonly_typed_array.js"; /** * A single set of indices */ export declare class SingleIndexSet implements ILocalIDSetWithCursor { private readonly start_; private readonly end_; private readonly elements_; /** * Construct this with a matching elements table. * * @param start_ * @param end_ * @param elements_ The elements in the index, matching the start->end indices * 2, * where there's 2 elements in the array for each item, * packed (first has the bottom 5 bits masked out, and is the top bits, the second * is a bit field representing the elements for the top bit range, in a * unioned-one-hot representation). */ constructor(start_: number, end_: number, elements_: Uint32Array); /** * The size of the set. * * @return {number} The size of the set. */ get size(): number; /** * Get the buffer elements from this (treat as immutable) * * @return {ReadonlyUint32Array} The buffer elements. */ get buffer(): ReadonlyUint32Array; /** * Does the set have a particular index for a particular type. * * @param localID The dense index in the set to check. * @return {boolean} True if it has the type. */ has(localID: number): boolean; /** * Get a cursor that lets you iterate over the items in this set. * * @return {IIndexSetCursor} The returned cursor. */ cursor(): IIndexSetCursor; /** * Create an index from a single local id. * * @param localId The local id. * @return {SingleIndexSet} The created multi-set index. */ static createFromSingleLocalId(localId: number): SingleIndexSet; /** * Create an index from an ascended sorting set of local IDs. * * @param localIds The local ids to create this * @return {SingleIndexSet} The created index sex. */ static createFromLocalIds(localIds: number[] | ReadonlyUint32Array): SingleIndexSet; } //# sourceMappingURL=single_index_set.d.ts.map