/** * Copyright * (c) 2022 Whales Corp. * (c) 2023 TrueCarry * All Rights Reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ /// /// import { TLFunction } from "ton-tl"; import { LiteEngine } from "./engine"; import EventEmitter from "events"; export declare class LiteSingleEngine extends EventEmitter implements LiteEngine { #private; readonly host: string; readonly publicKey: Buffer; constructor(args: { host: string; publicKey: Buffer; client?: 'tcp' | 'ws'; reconnectTimeout?: number; }); isClosed(): boolean; isReady(): boolean; query(f: TLFunction, req: REQ, queryArgs?: { timeout?: number; awaitSeqno?: number; }): Promise; close(): void; private connect; private onConencted; private onReady; private onData; private onClosed; }