export type Word = string; export type Sentence = Word[]; export type ReplyAttributes = { [key: string]: string; }; export type Reply = { command: string; attributes: ReplyAttributes; }; export declare class MikroTikApi { private socket; private buffer; private resolveRead; private rejectRead; private debug; constructor(options?: { debug?: boolean; }); connect(host: string, port?: number, secure?: boolean): Promise; private processBuffer; private readSentenceFromBuffer; private decodeLength; private encodeLength; writeSentence(words: Sentence): Promise; readSentence(): Promise; talk(words: Sentence): Promise; login(username: string, password: string): Promise; close(): void; }