import { FileInput } from "../../parse/File"; import { Parser } from "../../parse/Parser"; export declare class WhatsAppParser extends Parser { private channelIndex; private messageIndex; /** Parse a WhatsApp export in txt or zip format */ parse(file: FileInput): AsyncGenerator; /** * Tries to extract a .txt file from a .zip file buffer. * It searches the default "_chat.txt" file. Otherwise, it tries to match some text files with a pattern. * * @throws if it can't find a .txt file * @returns the .txt file buffer */ extractTxtFromZip(fileBuffer: ArrayBuffer): ArrayBuffer; }