import { Migration } from '../types/migration';
export type History = {
    installed_rank: number;
    version: number;
    description: string;
    type: string;
    script: string;
    checksum: number;
    installed_by: string;
    installed_on: Date;
    execution_time: number;
    success: boolean;
};
export declare class HistoryTableService {
    private readonly historyTable?;
    private readonly historySchema?;
    constructor(historyTable?: string | undefined, historySchema?: string | undefined);
    getCreateHistoryTableSql(): string;
    getMigrationsHistorySql(): string;
    private getFullHistoryTableName;
    getNextInstalledRankSql(): string;
    getBeforeRunMigrationSql({ migration, installed_rank }: {
        migration: Migration;
        installed_rank: number;
    }): string;
    getAfterRunMigrationSql({ installed_rank, execution_time, success, }: {
        installed_rank: number;
        execution_time: number;
        success: boolean;
    }): string;
}
