Path: blob/master/node_modules/@adiwajshing/baileys/lib/WABinary/index.d_1.ts
2593 views
/// <reference types="node" />1import { proto } from '../../WAProto';2import { BinaryNode } from './types';3export declare const decodeBinaryNode: (data: any) => BinaryNode;4export declare const encodeBinaryNode: (node: BinaryNode) => Uint8Array;5export declare const getBinaryNodeChildren: ({ content }: BinaryNode, childTag: string) => BinaryNode[];6export declare const getAllBinaryNodeChildren: ({ content }: BinaryNode) => BinaryNode[];7export declare const getBinaryNodeChild: ({ content }: BinaryNode, childTag: string) => BinaryNode;8export declare const getBinaryNodeChildBuffer: (node: BinaryNode, childTag: string) => Uint8Array | Buffer;9export declare const getBinaryNodeChildUInt: (node: BinaryNode, childTag: string, length: number) => number;10export declare const assertNodeErrorFree: (node: BinaryNode) => void;11export declare const reduceBinaryNodeToDictionary: (node: BinaryNode, tag: string) => {12[_: string]: string;13};14export declare const getBinaryNodeMessages: ({ content }: BinaryNode) => proto.WebMessageInfo[];15export * from './generic-utils';16export * from './jid-utils';17export { Binary } from '../../WABinary/Binary';18export * from './types';19export * from './Legacy';202122