import { proto } from "@whiskeysockets/baileys"; export interface SendMessageTypes { to: string | number; text?: string; sessionId: string; isGroup?: boolean; answering?: proto.IWebMessageInfo; } export interface SendMediaTypes extends SendMessageTypes { media?: string | Buffer; } export interface SendTypingTypes extends SendMessageTypes { duration: number; } export interface SendReadTypes { sessionId: string; key: proto.IMessageKey; } export interface MessageReceived extends proto.IWebMessageInfo { /** * Your Session ID */ sessionId: string; /** * @param path save image location path with extension * @example "./myimage.jpg" */ saveImage: (path: string) => Promise; /** * @param path save video location path with extension * @example "./myvideo.mp4" */ saveVideo: (path: string) => Promise; /** * @param path save image location path without extension * @example "./mydocument" */ saveDocument: (path: string) => Promise; } export interface StartSessionParams { /** * Print QR Code into Terminal */ printQR: boolean; } //# sourceMappingURL=index.d.ts.map