import { ReconnectingWebSocket } from "@iam4x/reconnecting-websocket"; import type { BinanceWorker } from "./binance.worker"; import { type Account } from "../../types/lib.types"; export declare class BinanceWsPrivate { parent: BinanceWorker; account: Account; ws: ReconnectingWebSocket | null; interval: NodeJS.Timeout | null; listenKeyInterval: NodeJS.Timeout | null; isStopped: boolean; constructor({ parent, account, }: { parent: BinanceWorker; account: Account; }); listenWebsocket: () => Promise; onOpen: () => void; onMessage: (event: MessageEvent) => void; onClose: () => void; ping: () => void; handleAccountEvents: (json: Record) => void; handleOrderEvents: (json: Record) => void; send: (data: Record) => void; stop: () => void; }