UNPKG

@wppconnect-team/wppconnect

Version:

WPPConnect is an open source project developed by the JavaScript community with the aim of exporting functions from WhatsApp Web to the node, which can be used to support the creation of any interaction, such as customer service, media sending, intelligen

24 lines (23 loc) 834 B
import { ResponseType } from 'axios'; import { Transform } from 'stream'; export declare const makeOptions: (useragentOverride: string, responseType?: ResponseType) => { responseType: ResponseType; headers: { 'User-Agent': string; DNT: string; 'Upgrade-Insecure-Requests': string; origin: string; referer: string; }; }; export declare const timeout: (ms: number) => Promise<unknown>; export declare const mediaTypes: { IMAGE: string; VIDEO: string; AUDIO: string; PTT: string; DOCUMENT: string; STICKER: string; }; export declare const magix: (fileData: any, mediaKeyBase64: any, mediaType: any, expectedSize?: number) => Buffer<ArrayBufferLike>; export declare const newMagix: (mediaKeyBase64: string, mediaType: string, expectedSize: number) => Transform;