import { type Operation } from './commands'; /** * @summary Get percentage progress of an operation * @function * @protected * * @param {Number} index - operation index * @param {Object[]} operations - all operations * * @returns {Number} percentage from 0-100 * * @example * const percentage = action.getOperationProgress( * 0, * [ * { * command: 'copy', * // ... * }, * { * command: 'replace', * // ... * }, * { * command: 'copy', * // ... * }, * ], * ); */ export declare const getOperationProgress: (index: number, operations: Operation[]) => number; /** * @summary Run a single operation command * @function * @protected * * @param {String} image - path to image * @param {Object} operation - command operation * * @returns {Promise} * * @example * action.run('foo/bar', { * command: 'copy', * from: { * partition: { * primary: 1 * }, * path: '/foo', * }, * to: { * partition: { * primary: 4, * logical: 1 * }, * path: '/bar', * }, * }); */ export declare const run: (image: string, operation: Operation, options: object) => () => Promise;