// @flow // Derived from the PostHTML sources available at // https://github.com/posthtml/posthtml-parser/blob/41df54c0ae3061cc6f417826676fda5a3d4806c0/index.js // which is licensed MIT. declare module 'posthtml-parser' { declare type PostHTMLNode = { tag: string, attrs?: { [string]: string, ... }, content?: Array, ... }; declare var parser: ( html: string, options?: { lowerCaseAttributeNames?: boolean, lowerCaseTags?: boolean, sourceLocations?: boolean, ... } ) => PostHTMLNode; declare module.exports: { parser: typeof parser; ... } }