declare class FastBloomFilter { private static readonly _MAGIC; private readonly _bitCount; private readonly _byteCount; private readonly _hashCount; private readonly _encoder; private readonly _ex; private readonly _bitsetPtr; private _bufferPtr; private _bufferSize; private _bufferU8View; get bitCount(): number; get hashCount(): number; private constructor(); /** * Load the WASM module and return a ready-to-use Bloom filter. * * @param bitCount Desired number of bits. Rounded up to the nearest multiple of 32. * @param hashCount Number of hash rounds (k). More rounds reduce false positives. * @returns A promise that resolves to the created bloom filter. */ static create(bitCount: number, hashCount: number): Promise; /** * Create a bloom filter with the optimal parameters for the given expected items and false positive rate. * @param expectedItems Expected number of items to be inserted into the bloom filter. * @param falsePositiveRate Desired false positive rate. * @returns A promise that resolves to the created bloom filter. */ static createOptimal(expectedItems: number, falsePositiveRate: number): Promise; private static instantiateWasm; ensureCapacity(utf8Len: number): void; addString(text: string): void; hasString(text: string): boolean; add(buffer: Uint8Array): void; has(buffer: Uint8Array): boolean; export(): Uint8Array; static import(exportedBloomFilter: Uint8Array): Promise; dispose(): void; } export { FastBloomFilter as default };