import type { DB } from '../storage/db.js'; import type { Config } from '../config/config.js'; export interface DrainResult { drained: number; quarantined: number; pending: number; } /** Exported for tests — clears the in-memory poison counter between cases. */ export declare function resetSpoolDrainFailureCounts(): void; export declare function drainIngestSpool(db: DB, config: Config, dataDir: string, maxPerTick?: number): DrainResult;