/** * @copyright Sister Software * @license AGPL-3.0 * @author Teffen Ellis, et al. * @file The heap a build needs before a resident-record adapter may run. */ /** * The heap a build needs before a resident-record adapter may run, in bytes. * * At Node's 4 GB default both WOF adapters abort with SIGABRT, `wof-admin` at 4,085 MB after 722 seconds. * The floor sits under the measured 14,883 MiB peak by enough to admit a 16 GB cap * and refuse the 4 GB default. */ export declare const RESIDENT_ADAPTER_HEAP_FLOOR_BYTES: number; /** * Refuses a build whose heap cannot hold a resident-record adapter's dataset. * * The failure this replaces is a SIGABRT twelve minutes into an eight-hour build. * That abort reports no cause and loses the adapter phase. * A startup read of the limit costs one call. * * The `corpus build` command calls this rather than `buildCorpus`, because this package's * own tests run `wof-admin` against a five-kilobyte fixture at the default heap. * * @throws When a resident-record adapter is configured and the heap limit is under the floor. */ export declare function assertHeapForAdapters(adapterIDs: readonly string[], heapLimitBytes: number): void; //# sourceMappingURL=heap.d.ts.map