import { DbServer } from './index.js';
type RangeDump = {
    file: string;
    hash: string;
    start: number;
    end: number;
};
export type Writelog = {
    ts: number;
    types: {
        [t: number]: {
            lastId: number;
            blockCapacity: number;
        };
    };
    hash: string;
    commonDump: string;
    rangeDumps: {
        [t: number]: RangeDump[];
    };
};
type SaveOpts = {
    forceFullDump?: boolean;
    skipDirtyCheck?: boolean;
    skipMigrationCheck?: boolean;
};
export declare function saveSync(db: DbServer, opts?: SaveOpts): void;
export declare function save(db: DbServer, opts?: SaveOpts): Promise<void>;
export {};
