@whiskeysockets/baileys
Version:
A WebSockets library for interacting with WhatsApp Web
7 lines (6 loc) • 455 B
TypeScript
import type { BinaryNode, BinaryNodeCodingOptions } from './types';
export declare const decompressingIfRequired: (buffer: Buffer) => Promise<Buffer<ArrayBufferLike>>;
export declare const decodeDecompressedBinaryNode: (buffer: Buffer, opts: Pick<BinaryNodeCodingOptions, "DOUBLE_BYTE_TOKENS" | "SINGLE_BYTE_TOKENS" | "TAGS">, indexRef?: {
index: number;
}) => BinaryNode;
export declare const decodeBinaryNode: (buff: Buffer) => Promise<BinaryNode>;