/** * Prevents user input. */ export function block(): void; /** * Returns the current input mode. * * @returns {string} */ export function getMode(): string; /** * Returns the isTextPrinted flag. */ export function getIsTextPrinted(): boolean; /** * Registers listeners and hooks * * @param {object} opt */ export function init(opt: object): void; /** * Returns the input block status * * @returns {boolean} True if blocked */ export function isBlocked(): boolean; /** * Set a new input mode. * * @param mode */ export function setMode(mode: any): void; /** * Makes a note that text has been printed on the screen since last check * * @param newState */ export function textWasPrinted(newState?: boolean): void; /** * Unblock the UI. */ export function unblock(): void; export namespace keypress { function addListener(listener: Function): Function; function init(): void; function isWaiting(): boolean; function removeListener(listener: Function): boolean; function send(e: any): void; function wait(): void; function waitPromise(): Promise; }