import type { Models } from '../types/model';
export type SyncDatabaseServerVersionOptions = {
    models: Models;
    serverVersion?: string;
    /** Validate only — never write the fact (e.g. upgrade pre-check). */
    checkOnly?: boolean;
};
export declare class DatabaseIncompatibleError extends Error {
    readonly storedVersion: string;
    readonly serverVersion: string;
    constructor(storedVersion: string, serverVersion: string);
}
/**
 * Reconciles local_system_facts.currentVersion with the server version, refusing when the
 * database has been used with a newer version.
 */
export declare function syncDatabaseServerVersion({ models, serverVersion, checkOnly, }: SyncDatabaseServerVersionOptions): Promise<void>;
//# sourceMappingURL=databaseVersionCompatibility.d.ts.map