/**
 * Returns true if this script runs inside a TMUX session.
 */
export declare function isInTmuxSession(): boolean;
/**
 * If there is already an active TMUX session, reattaches to it. We need to keep
 * the strong notion of singleton for all long-running microsharding actions, so
 * that e.g. if we run `pg-microsharding rebalance` in one terminal, and then
 * run it again in another terminal, the second run will attach to the first
 * one.
 */
export declare function tryReattachToTmuxSession(): Promise<void>;
/**
 * Opens M TMUX panes, in each run N commands sequentially (panes[M][N]). If a
 * single command fails, then fails the whole pane.
 *
 * In case we already run it from a TMUX session, just runs all the commands
 * sequentially.
 */
export declare function runInTmux(panes: Array<Array<{
    key: string;
    title: string;
    command: string[];
}>>): Promise<void>;
//# sourceMappingURL=runInTmux.d.ts.map