import { Client, QueryResult } from 'pg'; import { Mutation } from './mutation'; export interface HasHash { hash: string; } export interface MutationRow { identifier: string; hash: string; statements: string[]; undo: string[]; parents: string[]; date_applied: Date; keep?: boolean; } export declare class MutationRunner { client: Client; testing: boolean; constructor(client: Client); query(stmt: string, args?: any): Promise; /** * Fetch the hashes of the mutations we have in database. */ fetchRemoteMutations(): Promise; mkdct(reg: T[]): { [hash: string]: T; }; /** * Perform the mutations */ mutate(_mutations: Set): Promise; /** * * @param base_mutation */ test(mutations: Set): Promise; }