import { ISyncReadable } from '../types.js'; /** a bit reader that reads bits from a byte-aligned stream */ export declare class BitReader implements ISyncReadable { #private; /** @param readable fuman readable stream */ constructor(readable: ISyncReadable); /** Whether the reader is currently aligned on a byte boundary */ get isAligned(): boolean; /** Skip any remaining bits in the current byte. No-op if already aligned */ align(): void; /** The current bit position within the last consumed byte */ get bitPosition(): number; readSync(bytes: number): Uint8Array; /** read a number of bits from the stream, and return them as a number */ readBits(size: number): number; /** read a number of bits from the stream, and return them as a bigint */ readBitsBig(size: number): bigint; /** skip a number of bits from the stream */ skipBits(size: number): void; }