/** * The load factor at which linear probing's expected probe count stays low enough to ignore. * * Above this the table refuses further keys rather than degrading, because a build whose * dedup slows by an order of magnitude partway through reports no cause. */ export declare const FINGERPRINT_MAX_LOAD = 0.7; /** * The largest slot count this accepts, as a base-2 logarithm. * * 2^30 slots hold 751,619,276 keys at the load limit and occupy 16 GiB. * Past that the backing `Uint32Array` exceeds what one allocation can hold on a 30.5 GB host, * A run that asks for it aborts on the allocation rather than on the key that overflowed. */ export declare const MAX_SLOTS_LOG2 = 30; /** * A fingerprint set sized once, holding 128-bit values outside the V8 heap. */ export declare class FingerprintSet { #private; /** * @param slotsLog2 Base-2 logarithm of the slot count, so the mask is exact. * 27 gives 134,217,728 slots in 2.0 GiB. */ constructor(slotsLog2: number); get size(): number; /** * The number of keys this table accepts before {@linkcode add} throws. */ get limit(): number; get slots(): number; /** * Bytes the table occupies outside the V8 heap. * They're absent from `--max-old-space-size`. */ get bytes(): number; /** * Add a key's fingerprint. * * @returns `true` when the key is new, `false` when this table already holds its fingerprint. * @throws When the table is at {@linkcode FINGERPRINT_MAX_LOAD}. * A silent degradation would make a build slow down partway through with no cause to read. */ add(key: string): boolean; } //# sourceMappingURL=fingerprints.d.ts.map