Path: blob/master/node_modules/@adiwajshing/baileys/lib/WABinary/jid-utils.d_1.ts
2593 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 const jidEncode: (user: string | number | null, server: JidServer, device?: number, agent?: number) => string;11export declare const jidDecode: (jid: string) => {12server: string;13user: string;14agent: number;15device: number;16};17/** is the jid a user */18export declare const areJidsSameUser: (jid1: string, jid2: string) => boolean;19/** is the jid a user */20export declare const isJidUser: (jid: string) => boolean;21/** is the jid a broadcast */22export declare const isJidBroadcast: (jid: string) => boolean;23/** is the jid a broadcast */24export declare const isJidGroup: (jid: string) => boolean;25/** is the jid the status broadcast */26export declare const isJidStatusBroadcast: (jid: string) => boolean;27export declare const jidNormalizedUser: (jid: string) => string;282930