1 | import { PathExpression, TreeNode } from "@atomist/tree-path";
|
2 | import { ExecutionResult } from "@atomist/tree-path/lib/path/pathExpression";
|
3 | import { File } from "../../project/File";
|
4 | import { ProjectAsync } from "../../project/Project";
|
5 | import { LocatedTreeNode } from "../LocatedTreeNode";
|
6 |
|
7 |
|
8 |
|
9 | export interface NodeReplacementOptions {
|
10 | replaceAfter?: {
|
11 | after: RegExp;
|
12 | replacement: string;
|
13 | };
|
14 | }
|
15 |
|
16 |
|
17 |
|
18 |
|
19 | export declare const ZapTrailingWhitespace: NodeReplacementOptions;
|
20 |
|
21 |
|
22 |
|
23 |
|
24 | export interface MatchResult extends LocatedTreeNode {
|
25 | append(content: string): void;
|
26 | prepend(content: string): void;
|
27 | |
28 |
|
29 |
|
30 |
|
31 |
|
32 | zap(opts: NodeReplacementOptions): void;
|
33 | replace(newContent: string, opts: NodeReplacementOptions): void;
|
34 | evaluateExpression(pex: string | PathExpression): ExecutionResult;
|
35 | }
|
36 |
|
37 |
|
38 |
|
39 | export declare class FileHit {
|
40 | private readonly project;
|
41 | file: File;
|
42 | fileNode: TreeNode;
|
43 | readonly nodes: LocatedTreeNode[];
|
44 | readonly matches: MatchResult[];
|
45 | |
46 |
|
47 |
|
48 |
|
49 |
|
50 |
|
51 |
|
52 |
|
53 |
|
54 | constructor(project: ProjectAsync, file: File, fileNode: TreeNode, nodes: LocatedTreeNode[]);
|
55 | }
|
56 | //# sourceMappingURL=FileHits.d.ts.map |
\ | No newline at end of file |