/** * Process-wide performance profile. * * `WRONGSTACK_PERF_PROFILE` (alias `WSTACK_PERF_PROFILE`): * - `balanced` (default) — current throughput-oriented defaults * - `frugal` / `cimri` — lower CPU concurrency, leaner SQLite caches, * coarser UI stream paint. Correctness and APIs unchanged. */ export type PerfProfile = 'balanced' | 'frugal'; /** Resolve the active profile from the environment (evaluated each call). */ export declare function getPerfProfile(): PerfProfile; export declare function isFrugalPerf(): boolean; /** Parallel file-parse batch size for the codebase indexer. */ export declare function indexParallelBatchSize(availableCores: number): number; /** * SQLite page-cache / mmap sizes in KiB (negative PRAGMA = KiB units for cache). * Frugal keeps correctness; just spends less RSS. */ export declare function sqliteCachePragmas(): { cacheSizeKiB: number; mmapBytes: number; }; /** sage store defaults (slightly smaller than index). */ export declare function SageCachePragmas(): { cacheSizeKiB: number; mmapBytes: number; }; /** * TUI stream paint interval. Higher = fewer React dispatches (less CPU/heap * churn). Balanced keeps the historical ~10fps; frugal ~6–7fps. */ export declare function tuiStreamFlushMs(): number; //# sourceMappingURL=perf-profile.d.ts.map