UNPKG

@whiskeysockets/baileys

Version:

A WebSockets library for interacting with WhatsApp Web

15 lines (14 loc) 1.19 kB
import { proto } from '../../WAProto'; import { BinaryNode } from './types'; export declare const getBinaryNodeChildren: (node: BinaryNode | undefined, childTag: string) => BinaryNode[]; export declare const getAllBinaryNodeChildren: ({ content }: BinaryNode) => BinaryNode[]; export declare const getBinaryNodeChild: (node: BinaryNode | undefined, childTag: string) => BinaryNode | undefined; export declare const getBinaryNodeChildBuffer: (node: BinaryNode | undefined, childTag: string) => Uint8Array<ArrayBufferLike> | Buffer<ArrayBufferLike> | undefined; export declare const getBinaryNodeChildString: (node: BinaryNode | undefined, childTag: string) => string | undefined; export declare const getBinaryNodeChildUInt: (node: BinaryNode, childTag: string, length: number) => number | undefined; export declare const assertNodeErrorFree: (node: BinaryNode) => void; export declare const reduceBinaryNodeToDictionary: (node: BinaryNode, tag: string) => { [_: string]: string; }; export declare const getBinaryNodeMessages: ({ content }: BinaryNode) => proto.WebMessageInfo[]; export declare function binaryNodeToString(node: BinaryNode | BinaryNode['content'], i?: number): any;