/** The keys of `system.import.*` that are numbers (typed in `getConfig.ts`). */ export type ImportNumberKey = 'maxFileSizeMb' | 'maxRows' | 'maxCellLength' | 'maxIssues' | 'retentionDays' | 'imageTimeoutSeconds' | 'imageConcurrency' | 'maxWorkersPerInstance' | 'workerMemoryMb' | 'lockTimeoutSeconds' | 'eventBacklogHigh' | 'eventBacklogLow' | 'eventBacklogMaxWaitMinutes'; /** The keys of `system.import.*` that are yes or no. */ export type ImportFlagKey = 'allowPrivateNetworks'; /** * `system.import.` (§ 8.7) with a default. A value that is not a positive * number is the default. */ export declare function importSetting(key: ImportNumberKey, fallback: number): number; /** A yes or no key, `false` unless it is set. */ export declare function importFlag(key: ImportFlagKey): boolean; /** How long a finished job is kept: `retentionDays`, 7 by default. */ export declare function retentionMs(): number; /** The most bytes an upload may have: `maxFileSizeMb`, 100 by default. */ export declare function maxFileBytes(): number; /** The limits the engine checks a file with. */ export declare function fileLimits(): { maxRows: number; maxCellLength: number; maxIssues: number; }; /** The most workers one instance runs at a time: `maxWorkersPerInstance`, 2 by default. */ export declare function maxWorkersPerInstance(): number; /** The images fetched at the same time: `imageConcurrency`, 4 by default, at least 1. */ export declare function imageConcurrency(): number; /** The memory ceiling of a worker, in MB: `workerMemoryMb`, 1,024 by default. */ export declare function workerMemoryMb(): number; /** * How long a statement of the worker may wait for a lock held by someone else * (`lock_timeout`, S6): `lockTimeoutSeconds`, 10 by default. A row that times out * is retried like any transient failure (D-20), and a job does not sit behind a * lock for ever with a beating heart. */ export declare function lockTimeoutMs(): number; /** * When the import slows down for the event queue (§ 8.5): pause above * `eventBacklogHigh` events (500), go on below `eventBacklogLow` (100), give up * after `eventBacklogMaxWaitMinutes` (30). A `low` above `high` would have the * import stop and start on every look, so it is held at `high`. */ export declare function backlogLimits(): { eventBacklogHigh: number; eventBacklogLow: number; eventBacklogMaxWaitMs: number; };