UNPKG

670 BTypeScriptView Raw
1import { encodePacket } from "./encodePacket.js";
2import { decodePacket } from "./decodePacket.js";
3import { Packet, PacketType, RawData, BinaryType } from "./commons.js";
4declare const encodePayload: (packets: Packet[], callback: (encodedPayload: string) => void) => void;
5declare const decodePayload: (encodedPayload: string, binaryType?: BinaryType) => Packet[];
6export declare function createPacketEncoderStream(): any;
7export declare function createPacketDecoderStream(maxPayload: number, binaryType: BinaryType): any;
8export declare const protocol = 4;
9export { encodePacket, encodePayload, decodePacket, decodePayload, Packet, PacketType, RawData, BinaryType, };