import type { DatabaseSync } from "node:sqlite";
type SqliteWalCheckpointMode = "PASSIVE" | "FULL" | "RESTART" | "TRUNCATE";
export type SqliteWalMaintenance = {
    checkpoint: () => boolean;
    close: () => boolean;
};
export type SqliteWalMaintenanceOptions = {
    autoCheckpointPages?: number;
    checkpointIntervalMs?: number;
    checkpointMode?: SqliteWalCheckpointMode;
    onCheckpointError?: (error: unknown) => void;
};
export declare function configureSqliteWalMaintenance(db: DatabaseSync, options?: SqliteWalMaintenanceOptions): SqliteWalMaintenance;
export {};
