1 | import { AnyTxtNode, TxtNodeType } from "@textlint/ast-node-types";
|
2 | import type { TextlintRuleContext, TextlintRuleError, TextlintRuleReportHandler } from "@textlint/types";
|
3 | export interface wrapReportHandlerOptions {
|
4 | |
5 |
|
6 |
|
7 |
|
8 |
|
9 | ignoreNodeTypes: TxtNodeType[];
|
10 | }
|
11 |
|
12 |
|
13 |
|
14 |
|
15 |
|
16 |
|
17 | export declare function wrapReportHandler<T extends Readonly<TextlintRuleContext>, R extends TextlintRuleReportHandler>(context: T, options: wrapReportHandlerOptions, handler: (report: (node: AnyTxtNode, ruleError: TextlintRuleError) => void) => R): R;
|