export interface BitArray extends Iterable { readonly length: number; isFull(): boolean; isEmpty(): boolean; get(index: number): boolean; set(index: number, value: boolean): void; fill(value: boolean): void; and(other: BitArray): BitArray; or(other: BitArray): BitArray; xor(other: BitArray): BitArray; not(): BitArray; contains(other: BitArray): boolean; intersects(other: BitArray): boolean; slice(offset: number, length: number): BitArray; copy(): BitArray; toArray(): boolean[]; equals(other: BitArray): boolean; toString(): string; }