UNPKG

superchats

Version:

SuperChats is a premium library with unique features that control Whatsapp functions. With Superchats you can build service bots, multiservice chats or any system that uses whatsapp

16 lines (15 loc) 1.19 kB
/// <reference types="node" /> import { proto } from '../Connection/enc'; 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 | Buffer | 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;