import { ICompletedOptions } from "./ICompletedOptions"; import { OperationStatus } from "./operationStatus"; import ProgressService from "./progressService"; /** * A wrapper to simplify operation completion. */ export declare class ProgressOperation { private service; private id; private status; readonly Status: OperationStatus | null; constructor(service: ProgressService, id: string); /** * Increments the current progress's value. * @param big Whether or not to increment the progress by a small (5%) or big (10%) amount */ increment(big?: boolean): number; /** * Complete's an operation, optionally with a message and/or non-neutral status. * @param options The message, message options, or error of the operation completion. */ done(options?: ICompletedOptions | Error | string): void; error(error: Error | string, title?: string, cleanError?: boolean): void; ok(message?: string, title?: string): void; cancel(message?: string, title?: string): void; stop(message?: string, title?: string): void; }