Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
jajbshjahavahh
GitHub Repository: jajbshjahavahh/Gojo-Satoru
Path: blob/master/node_modules/@adiwajshing/baileys/lib/WABinary/jid-utils.d_1.ts
2593 views
1
export declare const S_WHATSAPP_NET = "@s.whatsapp.net";
2
export declare const OFFICIAL_BIZ_JID = "[email protected]";
3
export declare const SERVER_JID = "[email protected]";
4
export declare const PSA_WID = "[email protected]";
5
export declare const STORIES_JID = "status@broadcast";
6
export declare type JidServer = 'c.us' | 'g.us' | 'broadcast' | 's.whatsapp.net' | 'call';
7
export declare type JidWithDevice = {
8
user: string;
9
device?: number;
10
};
11
export declare const jidEncode: (user: string | number | null, server: JidServer, device?: number, agent?: number) => string;
12
export declare const jidDecode: (jid: string) => {
13
server: string;
14
user: string;
15
agent: number;
16
device: number;
17
};
18
/** is the jid a user */
19
export declare const areJidsSameUser: (jid1: string, jid2: string) => boolean;
20
/** is the jid a user */
21
export declare const isJidUser: (jid: string) => boolean;
22
/** is the jid a broadcast */
23
export declare const isJidBroadcast: (jid: string) => boolean;
24
/** is the jid a broadcast */
25
export declare const isJidGroup: (jid: string) => boolean;
26
/** is the jid the status broadcast */
27
export declare const isJidStatusBroadcast: (jid: string) => boolean;
28
export declare const jidNormalizedUser: (jid: string) => string;
29
30