1 | export declare type ProcessingStatus = 'NOT_UPDATED' | 'UPDATED' | 'INVALID_FORMATTING';
|
2 | export interface AdditionalOptions {
|
3 | checkOnly: boolean;
|
4 | filesWhitelist: string[] | null;
|
5 | base: string | null;
|
6 | head: string | null;
|
7 | }
|
8 | export interface Callbacks {
|
9 | onInit(workingDirectory: string): void;
|
10 | onModifiedFilesDetected(modifiedFilenames: string[]): void;
|
11 | onBegunProcessingFile(filename: string, index: number, totalFiles: number): void;
|
12 | onFinishedProcessingFile(filename: string, index: number, status: ProcessingStatus): void;
|
13 | onError(err: Error): void;
|
14 | onComplete(totalFiles: number): void;
|
15 | }
|
16 | export declare function main(workingDirectory: string, additionalOptions: AdditionalOptions, callbacks?: Callbacks): void;
|