UNPKG

fast-mhtml-maa

Version:
22 lines (21 loc) 468 B
declare module 'fast-mhtml' { interface IParserConfig { rewriteFn?: (url: string) => string; maxFileSize?: number } interface IFileResult { content: Buffer | string; type: string; filename: string; } export class Parser { constructor(config?: IParserConfig); parse(contents: Buffer | string); rewrite(); spit(): IFileResult[]; } export class Converter { static serve(); static convert(filename: string); } }