///
import { EventEmitter } from 'events';
import { Readable } from 'stream';
import { Terminal } from '../terminal';
interface ReaderConfig {
replacers?: ((chunk: string) => string)[];
debug?: boolean;
}
declare class LineFeedEmitter extends EventEmitter {
}
export declare class Reader {
private stream;
screen: string;
terminal: Terminal;
debug: boolean;
lineFeedEmitter: LineFeedEmitter;
constructor(stream: Readable, config: ReaderConfig);
private startListening;
private updateScreen;
readScreen(): string;
/**
* Method to wait until a line is printed with a given string.
* @param matcher The string you're looking for, or a regex expression to match.
*/
until(matcher: string | RegExp | undefined): Promise;
/**
* Method to find a line in the screen that matches the matcher.
* Will search from bottom to top and return the first line that matches.
* @param matcher The screen you're looking for, or a regex expression to match.
*/
findByText(matcher: string | RegExp): Promise;
}
export {};