Path: blob/master/node_modules/@adiwajshing/baileys/lib/WABinary/jid-utils.d.ts
1129 views
export declare const S_WHATSAPP_NET = "@s.whatsapp.net";1export declare const OFFICIAL_BIZ_JID = "[email protected]";2export declare const SERVER_JID = "[email protected]";3export declare const PSA_WID = "[email protected]";4export declare const STORIES_JID = "status@broadcast";5export declare type JidServer = 'c.us' | 'g.us' | 'broadcast' | 's.whatsapp.net' | 'call';6export declare type JidWithDevice = {7user: string;8device?: number;9};10export declare type FullJid = JidWithDevice & {11server: JidServer | string;12agent?: number;13};14export declare const jidEncode: (user: string | number | null, server: JidServer, device?: number, agent?: number) => string;15export declare const jidDecode: (jid: string | undefined) => FullJid | undefined;16/** is the jid a user */17export declare const areJidsSameUser: (jid1: string | undefined, jid2: string | undefined) => boolean;18/** is the jid a user */19export declare const isJidUser: (jid: string | undefined) => boolean | undefined;20/** is the jid a broadcast */21export declare const isJidBroadcast: (jid: string | undefined) => boolean | undefined;22/** is the jid a group */23export declare const isJidGroup: (jid: string | undefined) => boolean | undefined;24/** is the jid the status broadcast */25export declare const isJidStatusBroadcast: (jid: string) => boolean;26export declare const jidNormalizedUser: (jid: string) => string;272829