baileys-md
Version:
WhatsApp API
21 lines (20 loc) • 698 B
TypeScript
import * as constants from './constants';
/**
* the binary node WA uses internally for communication
*
* this is manipulated soley as an object and it does not have any functions.
* This is done for easy serialization, to prevent running into issues with prototypes &
* to maintain functional code structure
* */
export declare type BinaryNode = {
tag: string;
attrs: {
[key: string]: string;
};
content?: BinaryNode[] | string | Uint8Array | {
content: string;
};
};
export declare type BinaryNodeAttributes = BinaryNode['attrs'];
export declare type BinaryNodeData = BinaryNode['content'];
export declare type BinaryNodeCodingOptions = typeof constants;