declare class Mask { private _mask; private _enabled; constructor(size?: number); enable(): void; get enabled(): boolean; get mask(): Uint32Array; get empty(): boolean; /** * Checks another mask to see it is fulfilled by the flags in this mask * @param otherMask Uint32Array to be compared with this mask * @returns True if the provided mask is satisfied by this mask */ fulfills: (otherMask: Mask) => boolean; /** * Checks another mask to see it contains all flags in this mask * @param otherMask Uint32Array to be compared with this mask * @returns True if the provided mask is satisfied by this mask */ fulfilledBy: (otherMask: Mask) => boolean; /** * @param checkingMask The mask that needs to be met to fulfill the condition * @param requiredMask The other mask that needs to match up with the first mask * @returns Whether the masks match or not */ private checkMask; /** * Flips all bits in the mask to 1 */ flipAllToOne: () => void; /** * Flip on a flag in this mask * @param bitPosition The bit flag to flip, typically a componentId. */ flipOn: (bitPosition: number) => void; /** * Flip off a flag on this mask * @param bitPosition The bit flag to flip, typically a componentId. */ flipOff: (bitPosition: number) => void; toString(): string; get maskString(): string; } export { Mask };