UNPKG

textlint-rule-helper

Version:
10 lines (9 loc) • 341 B
import type { TextlintRuleErrorDetails } from "@textlint/types"; import { AnyTxtNode } from "@textlint/ast-node-types"; export declare class SourceLocation { private text; private _source; constructor(text: string); private get source(); toAbsoluteLocation(node: AnyTxtNode, padding: TextlintRuleErrorDetails): number; }