import { FixWithFormatCodeSettingOptions } from '../formatTypes'; import { FormatSettingsFix, SimpleFixConstructorActionOptions } from './formatSettingsFix'; export interface DestFileFixOptions extends SimpleFixConstructorActionOptions { destPath: string; } /** * This extends FormatSettingsFix and add another option: destPath for those fixes that require a destination * path option (move file, moveDeclaration, etc). * The default behavior is for moveFile, where the destination file must not exists so : * * If there is a non existent file in given file arguments then assumes thats the destination path. * * Other wise it inquires the user to define a non existent file path suggesting from existing files. */ export declare class DestFileFix extends FormatSettingsFix { protected destinationMode: 'mustNotExist' | 'mustExist' | 'mustExistFile'; inquireOptions(options: T): Promise; protected inquireDestinationFile(options: T): Promise<{ destPath: string; }>; protected validateDestinationFile(options: DestFileFixOptions, input: string): string | true; protected getDestinationFileMessage(options: FixWithFormatCodeSettingOptions): string | ((answers: { destPath: string; }) => string) | undefined; protected getDestinationPathSource(answersSoFar: any, input: string, options: FixWithFormatCodeSettingOptions): Promise<{ name: string; value: string; }[]>; }