/// /// /// import { UnexpectedDataError } from './util'; import { Writable } from 'stream'; import { Socket } from 'net'; export declare class Parser { readonly socket: Socket; private ended; constructor(socket: Socket); readBytes(howMany: number): Promise; end(): Promise; readAscii(howMany: number): Promise; readValue(): Promise; readError(): Promise; unexpected(data: string, expected: string): UnexpectedDataError; readByteFlow(howMany: number, targetStream: Writable): Promise; private readUntil; private readline; searchLine(regExp: RegExp, retry?: boolean): Promise; readAll(): Promise; }