import { TxtNode, TxtNodeRange, TxtNodeType, TxtParentNode } from "@textlint/ast-node-types"; /** * Ignore node manager that manager ignored ranges. * */ export default class IgnoreNodeManager { private _ignoredRangeList; constructor(); /** * @returns {(number)[][]} */ get ignoredRanges(): TxtNodeRange[]; /** * |.......| * ^ ^ * Ignored Range * * |........| * ^ * index * @param {number} index * @returns {boolean} */ isIgnoredIndex(index: number): boolean; /** * @param {[number, number]} aRange * @returns {boolean} * @deprecated This method will be removed */ isIgnoredRange(aRange: TxtNodeRange): boolean; /** * @param {Object} node * @returns {boolean} */ isIgnored(node: TxtNode | TxtParentNode): boolean; /** * add node to ignore range list * @param {TxtNode} node */ ignore(node: TxtNode | TxtParentNode): void; /** * add range to ignore range list * @param {[number, number]} range */ ignoreRange(range: TxtNodeRange): void; /** * ignore children node of `node`, * if the children node has the type that is included in `ignoredNodeTypes`. * @param {TxtNode} targetNode * @param {string[]} ignoredNodeTypes */ ignoreChildrenByTypes(targetNode: TxtNode | TxtParentNode, ignoredNodeTypes: TxtNodeType[]): void; }