Path: blob/master/node_modules/@adiwajshing/baileys/lib/WABinary/generic-utils.d.ts
1129 views
/// <reference types="node" />1import { proto } from '../../WAProto';2import { BinaryNode } from './types';3export declare const getBinaryNodeChildren: (node: BinaryNode | undefined, childTag: string) => BinaryNode[];4export declare const getAllBinaryNodeChildren: ({ content }: BinaryNode) => BinaryNode[];5export declare const getBinaryNodeChild: (node: BinaryNode | undefined, childTag: string) => BinaryNode | undefined;6export declare const getBinaryNodeChildBuffer: (node: BinaryNode | undefined, childTag: string) => Buffer | Uint8Array | undefined;7export declare const getBinaryNodeChildString: (node: BinaryNode | undefined, childTag: string) => string | undefined;8export declare const getBinaryNodeChildUInt: (node: BinaryNode, childTag: string, length: number) => number | undefined;9export declare const assertNodeErrorFree: (node: BinaryNode) => void;10export declare const reduceBinaryNodeToDictionary: (node: BinaryNode, tag: string) => {11[_: string]: string;12};13export declare const getBinaryNodeMessages: ({ content }: BinaryNode) => proto.WebMessageInfo[];141516