// Type definitions for parse5 6.0 // Project: https://github.com/inikulin/parse5 // Definitions by: Ivan Nikulin // ExE Boss // James Garbutt // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped export {}; interface EndLocationBase { /** * One-based column index of the last character */ endCol: number; /** * Zero-based last character index */ endOffset: number; /** * One-based line index of the last character */ endLine: number; } export interface Location extends EndLocationBase { /** * One-based column index of the first character */ startCol: number; /** * Zero-based first character index */ startOffset: number; /** * One-based line index of the first character */ startLine: number; } export interface EndLocation extends EndLocationBase, Partial {} export interface AttributesLocation { [attributeName: string]: Location; } export interface StartTagLocation extends Location { /** * Start tag attributes' location info */ attrs?: AttributesLocation; } export interface ElementLocation extends ElementLocationBase, StartTagLocation { /** * Element's start tag location info. */ startTag: StartTagLocation; } interface ElementLocationBase { /** * Element's end tag location info. */ endTag: Location; } export interface ParserOptions { /** * The [scripting flag](https://html.spec.whatwg.org/multipage/parsing.html#scripting-flag). * If set to `true`, `