import type { TableInfo } from "./getTablesInSchema";
export type Unlock = (status?: "error") => Promise<void>;
/**
 * Locks the tables for write and waits until incremental flow to the
 * destination tables exhausts.
 *
 * If succeeded, the function returns a callback which, when called, unlocks the
 * tables on the source. This callback must be called after deactivating the
 * shard on the source. (But even if it's not called, it'll likely be okay
 * still, because the process will end, PG will disconnect, and the tables will
 * be auto-unlocked.)
 */
export declare function waitUntilIncrementalCompletes({ fromDsn, schema, tables, }: {
    fromDsn: string;
    schema: string;
    tables: TableInfo[];
}, throwIfAborted: () => void): Promise<Unlock>;
//# sourceMappingURL=waitUntilIncrementalCompletes.d.ts.map