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