5 lines
332 B
TypeScript
Raw Permalink Normal View History

2023-10-10 22:00:26 +02:00
import { Packet, RawData } from "./commons.js";
declare const encodePacket: ({ type, data }: Packet, supportsBinary: boolean, callback: (encodedPacket: RawData) => void) => void;
2024-08-24 20:48:14 +02:00
export declare function encodePacketToBinary(packet: Packet, callback: (encodedPacket: RawData) => void): void | Promise<void>;
export { encodePacket };