/** * The scanner fires onProgress once per file, so a large scan would otherwise * broadcast thousands of scan_progress WebSocket frames. This throttle collapses * them to at most one per whole-percent step, plus a guaranteed final frame when * the scan completes (scanned === total). Caps frames at ~101 regardless of the * file count, while always delivering the terminal 100% update. * * Returns a predicate: call it with each (scanned, total) tick; it returns true * when that tick should be broadcast. Stateful — create one per scan. */ export declare function createScanProgressThrottle(): (scanned: number, total: number) => boolean; //# sourceMappingURL=scanProgressThrottle.d.ts.map