UI for Zipcoin Blue

task.d.ts 713B

1234567891011121314151617181920212223242526
  1. import * as inquirerType from 'inquirer';
  2. import ui = inquirerType.ui;
  3. import { ILogger, ITask, ITaskChain } from '../../definitions';
  4. export declare class TaskChain implements ITaskChain {
  5. log: ILogger;
  6. protected currentTask?: ITask;
  7. protected tasks: ITask[];
  8. constructor({log}: {
  9. log: ILogger;
  10. });
  11. next(msg: string): ITask;
  12. protected _next(task: ITask): ITask;
  13. updateMsg(msg: string): this;
  14. end(): this;
  15. fail(): this;
  16. cleanup(): this;
  17. }
  18. export declare class InteractiveTaskChain extends TaskChain {
  19. bottomBar: ui.BottomBar;
  20. constructor({log, bottomBar}: {
  21. log: ILogger;
  22. bottomBar: ui.BottomBar;
  23. });
  24. next(msg: string): ITask;
  25. }