import type { KaijiBotConfig } from "../../config/config.js";
export declare const EMBEDDED_COMPACTION_TIMEOUT_MS = 900000;
export declare function resolveCompactionTimeoutMs(cfg?: KaijiBotConfig): number;
export declare function compactWithSafetyTimeout<T>(compact: () => Promise<T>, timeoutMs?: number, opts?: {
    abortSignal?: AbortSignal;
    onCancel?: () => void;
}): Promise<T>;
