///
import { Repl, ReplEventHandler } from "../../repl";
import { FileStore } from "../../file-store";
import { Command } from "./command";
import Readline from "readline";
export declare class ReadlineRepl extends Repl {
dir: string;
handler: ReplEventHandler;
allStmts: Array;
successfulStmts: Array;
commands: Array;
files: FileStore;
readline: Readline.Interface;
constructor(opts: {
dir: string;
handler: ReplEventHandler;
files: FileStore;
readline: Readline.Interface;
});
static create(opts: {
dir: string;
handler: ReplEventHandler;
files: FileStore;
}): Promise;
prompt(): void;
private createPrompt;
run(): Promise;
private lines;
private lock;
private handleLine;
private listenHistory;
private listenSigint;
private processLines;
private nextTextOrReportError;
}