default.renderer.d.ts 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. import { ListrRenderer, ListrTaskObject } from '../interfaces/listr.interface';
  2. export declare class DefaultRenderer implements ListrRenderer {
  3. tasks: ListrTaskObject<any, typeof DefaultRenderer>[];
  4. options: typeof DefaultRenderer['rendererOptions'];
  5. renderHook$?: ListrTaskObject<any, any>['renderHook$'];
  6. static nonTTY: boolean;
  7. static rendererOptions: {
  8. indentation?: number;
  9. clearOutput?: boolean;
  10. showSubtasks?: boolean;
  11. collapse?: boolean;
  12. collapseSkips?: boolean;
  13. lazy?: boolean;
  14. showTimer?: boolean;
  15. };
  16. static rendererTaskOptions: {
  17. bottomBar?: boolean | number;
  18. persistentOutput?: boolean;
  19. showTimer?: boolean;
  20. };
  21. private id?;
  22. private bottomBar;
  23. private promptBar;
  24. private spinner;
  25. private spinnerPosition;
  26. constructor(tasks: ListrTaskObject<any, typeof DefaultRenderer>[], options: typeof DefaultRenderer['rendererOptions'], renderHook$?: ListrTaskObject<any, any>['renderHook$']);
  27. getTaskOptions(task: ListrTaskObject<any, typeof DefaultRenderer>): typeof DefaultRenderer['rendererTaskOptions'];
  28. isBottomBar(task: ListrTaskObject<any, typeof DefaultRenderer>): boolean;
  29. hasPersistentOutput(task: ListrTaskObject<any, typeof DefaultRenderer>): boolean;
  30. hasTimer(task: ListrTaskObject<any, typeof DefaultRenderer>): boolean;
  31. getTaskTime(task: ListrTaskObject<any, typeof DefaultRenderer>): string;
  32. render(): void;
  33. end(): void;
  34. private multiLineRenderer;
  35. private renderBottomBar;
  36. private renderPrompt;
  37. private dumpData;
  38. private formatString;
  39. private getSymbol;
  40. }