import { Command, flags } from '@oclif/command'; import OperationResult from '../domain/operation/OperationResult'; declare class Synchronize extends Command { static description: string; /** * Available CLI flags. */ static flags: { force: import("@oclif/parser/lib/flags").IBooleanFlag; 'dry-run': import("@oclif/parser/lib/flags").IBooleanFlag; 'skip-migration': import("@oclif/parser/lib/flags").IBooleanFlag; 'sync-files': flags.IOptionFlag; only: flags.IOptionFlag; 'connection-resolver': flags.IOptionFlag; config: flags.IOptionFlag; }; /** * Started event handler. */ onStarted: (result: OperationResult) => Promise; /** * Prune success handler. */ onPruneSuccess: (result: OperationResult) => Promise; /** * Migration success handler. */ onMigrationSuccess: (result: OperationResult) => Promise; /** * Migration failure handler. */ onMigrationFailed: (result: OperationResult) => Promise; /** * Success handler for the whole process - after all completed. */ onSuccess: (result: OperationResult) => Promise; /** * Failure handler for the whole process - if the process failed. */ onFailed: (result: OperationResult) => Promise; /** * Check the results for each connection and display them. * All the successful / failed attempts are displayed and errors are logged. * * @param {SyncResult[]} results * @returns {Promise<{ totalCount: number, failedCount: number, successfulCount: number }>} */ processResults(results: OperationResult[]): Promise<{ totalCount: number; failedCount: number; successfulCount: number; }>; /** * CLI command execution handler. * * @returns {Promise} */ run(): Promise; } export default Synchronize;