@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
8 lines (7 loc) • 345 B
TypeScript
/**
* Converts given file into base64 string
* @param path file path
* @param mime Optional, will retrieve file mime automatically if not defined (Example: 'image/png')
*/
export declare function fileToBase64(path: string, mime?: string | false): Promise<string | false>;
export declare function Mine(path: string): Promise<string | false>;