1 | import { IParser } from "import-sort-parser";
|
2 | import { IStyle } from "import-sort-style";
|
3 | export interface ISortResult {
|
4 | code: string;
|
5 | changes: ICodeChange[];
|
6 | }
|
7 | export interface ICodeChange {
|
8 | start: number;
|
9 | end: number;
|
10 | code: string;
|
11 | note?: string;
|
12 | }
|
13 | export default function importSort(code: string, rawParser: string | IParser, rawStyle: string | IStyle, file?: string, options?: object): ISortResult;
|
14 | export declare function sortImports(code: string, parser: IParser, style: IStyle, file?: string, options?: object): ISortResult;
|
15 | export declare function applyChanges(code: string, changes: ICodeChange[]): string;
|
16 |
|
\ | No newline at end of file |