/************************************************************************** * IMPORTS ***************************************************************************/ import FragmentDTO from "./fragmentdto.js"; import Email from "../email.js"; /** * EmailParser */ declare class EmailParser { private fragments; /** * Constructor */ constructor(); /** * Reverse a string */ private stringReverse; /** * Trim a string from the right */ private stringRTrim; /** * Trim a string from the left */ private stringLTrim; /** * Parse an email */ parse(text: string): Email; /** * Fix broken signatures */ fixBrokenSignatures(text: string): string; /** * Get the quote headers regex */ getQuoteHeadersRegex(): RegExp[]; /** * Set the quote headers regex */ setQuoteHeadersRegex(quoteHeadersRegex: any): this; /** * Create an email */ createEmail(fragmentDTOs: FragmentDTO[]): Email; /** * Check if the line is a quote header */ isQuoteHeader(line: string): boolean; /** * Check if the line is a signature */ isSignature(line: any): boolean; /** * Check if the line is a quote */ isQuote(line: string): boolean; /** * Check if the fragment is empty */ isEmpty(fragment: FragmentDTO): boolean; /** * Check if the line is a fragment line */ isFragmentLine(fragment: FragmentDTO, line: string, isQuoted: boolean): boolean; /** * Add a fragment */ addFragment(fragment: FragmentDTO): void; } export default EmailParser;