UNPKG

whatsauto.js

Version:

Easy WhatsApp Automation with Session

25 lines 1.32 kB
import { proto, WAMessage } from "@whiskeysockets/baileys"; import { IWAutoMessage, IWAutoPhoneToJid, WAutoMessageUpdated } from "../Types/index.js"; export declare const getMediaMimeType: (msg: IWAutoMessage) => string; export declare const parseMessageStatusCodeToReadable: (code: proto.WebMessageInfo.Status) => WAutoMessageUpdated["messageStatus"]; export declare const phoneToJid: ({ from, isGroup, reverse, }: IWAutoPhoneToJid) => string; export declare const createDelay: (duration?: number) => Promise<unknown>; export declare const is: { array: (array: any) => boolean; undefined: (elem: any) => boolean; file: (file: any) => boolean; object: (object: any) => boolean; string: (str: any) => boolean; }; export declare const to: { string: (str: any) => string; undefined: (str: any, defaultValue?: any) => string | number | undefined; }; export declare const isSessionExist: (sessionId: string) => boolean; export declare const setCredentialsDir: (dirname: string) => void; export declare const getBuffer: (url: string) => Promise<Buffer>; export declare function getRandomFromArrays<T extends unknown[][]>(...arrays: T): { [K in keyof T]: T[K] extends (infer U)[] ? U : never; }; export declare function getContextInfo(msg: WAMessage): any; //# sourceMappingURL=helper.d.ts.map