import { DriverCore } from './driverCore'; /** * Core abstract class of Driver. Responsible of handling base write operations and read operations. */ export declare class DriverCoreIO extends DriverCore { private lastWrite; protected getLastWrite(): number; static ERROR_ERROR_PUSHED_WAS_NEVER_TRUE: string; /** * Writes given text in the terminal * @param str writes given text. Notice that this won't submit ENTER. For that you need to append "\r" or use * [[enter]]s * @param waitAfterWrite number of milliseconds after which resolve write / enter promise. Default: 0 */ write(input?: string, waitAfterWrite?: number): Promise; protected writeToEnter(input?: string): string; /** * Will write given text and then press ENTER. Just like [[write]] but appending `'\r'` * @param input the string to enter * @param waitAfterWrite number of milliseconds after which resolve write / enter promise. Default: 0 */ enter(input?: string, waitAfterEnter?: number): Promise; /** * Get data from last time [[write]] was issued. Remember that other methods like [[enter]] could also end up * calling [[write]] * @param lastWrite Optional get data from given time */ getDataFromLastWrite(lastWrite?: number): string; /** * same as [[getDataFromLastWrite]] but applying [[strip]]. * @param lastWrite Optional get data from given time */ getStrippedDataFromLastWrite(lastWrite?: number): string; /** * Get data printed after given timestamp */ getDataFromTimestamp(timestamp: number): string; /** * get all the data collected from [[start]] */ getAllData(): Promise; private commandHistory; protected pushToCommandHistory(cmd: any): any; /** * get information about all commands run in this driver instance. Will only work when options.debug===true */ getCommandHistory(): Promise>; /** * strips ANSI codes from a string. From https://github.com/xpl/ansicolor/blob/master/ansicolor.js * @param {string} s a string containing ANSI escape codes. * @return {string} clean string. */ strip(s: string): string; }