1 | export interface Diagnostic {
|
2 | start: Location;
|
3 | end: Location;
|
4 | message: string;
|
5 | operation: Operation;
|
6 | insertText: string;
|
7 | deleteText: string;
|
8 | }
|
9 | export declare enum Operation {
|
10 | Delete = 0,
|
11 | Insert = 1,
|
12 | Replace = 2
|
13 | }
|
14 | export interface Location {
|
15 | /** 1-based */
|
16 | line: number;
|
17 | /** 1-based */
|
18 | column: number;
|
19 | /** 0-based */
|
20 | offset: number;
|
21 | }
|
22 | export declare function diagnose(input: string, output: string): Diagnostic[];
|