10 lines
670 B
TypeScript
Raw Permalink Normal View History

2024-08-24 20:48:14 +02:00
import { encodePacket } from "./encodePacket.js";
import { decodePacket } from "./decodePacket.js";
2023-10-10 22:00:26 +02:00
import { Packet, PacketType, RawData, BinaryType } from "./commons.js";
declare const encodePayload: (packets: Packet[], callback: (encodedPayload: string) => void) => void;
declare const decodePayload: (encodedPayload: string, binaryType?: BinaryType) => Packet[];
2024-08-24 20:48:14 +02:00
export declare function createPacketEncoderStream(): any;
export declare function createPacketDecoderStream(maxPayload: number, binaryType: BinaryType): any;
2023-10-10 22:00:26 +02:00
export declare const protocol = 4;
2024-08-24 20:48:14 +02:00
export { encodePacket, encodePayload, decodePacket, decodePayload, Packet, PacketType, RawData, BinaryType, };