export declare const DRAIN_BATCH_MAX = 10; export declare const DRAIN_REQUEST_TIMEOUT_MS = 3000; export declare const DRAIN_BUDGET_MS = 10000; export declare const SPOOL_MAX_AGE_MS: number; export declare const SENDING_STALE_MS: number; export declare const SENDING_EXT = ".sending"; export declare const CLI_EVENTS_PATH = "/cli/events"; export interface DrainDeps { spoolDir: string; home: string; env: Record; now: () => number; fetchFn: typeof fetch; } export interface DrainResult { sent: number; kept: number; dropped: number; } export declare function drainOnce(deps: DrainDeps): Promise;