/// <reference types="node" /> import { Colors } from './colors'; import { TaskChain } from './tasks'; export interface OutputStrategy { readonly stream: NodeJS.WritableStream; readonly colors: Colors; write(msg: string): boolean; createTaskChain(): TaskChain; } export interface StreamOutputStrategyOptions { readonly stream?: NodeJS.WritableStream; readonly colors?: Colors; } export declare class StreamOutputStrategy implements OutputStrategy { readonly stream: NodeJS.WritableStream; readonly colors: Colors; constructor({ stream, colors }: StreamOutputStrategyOptions); write(msg: string): boolean; createTaskChain(): TaskChain; } export interface TTYOutputStrategyOptions extends StreamOutputStrategyOptions { readonly stream?: NodeJS.WriteStream; } export declare class TTYOutputStrategy extends StreamOutputStrategy implements OutputStrategy { readonly stream: NodeJS.WriteStream; protected readonly redrawer: TTYOutputRedrawer; constructor({ stream, colors }?: TTYOutputStrategyOptions); createTaskChain(): TaskChain; } export interface TTYOutputRedrawerOptions { readonly stream?: NodeJS.WriteStream; } export declare class TTYOutputRedrawer { readonly stream: NodeJS.WriteStream; constructor({ stream }: TTYOutputRedrawerOptions); get width(): number; redraw(msg: string): void; clear(): void; end(): void; }
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
colors.d.ts | File | 854 B | 0644 |
|
colors.js | File | 526 B | 0644 |
|
index.d.ts | File | 927 B | 0644 |
|
index.js | File | 2.05 KB | 0644 |
|
logger.d.ts | File | 3.75 KB | 0644 |
|
logger.js | File | 6.96 KB | 0644 |
|
output.d.ts | File | 1.38 KB | 0644 |
|
output.js | File | 3.21 KB | 0644 |
|
tasks.d.ts | File | 2.44 KB | 0644 |
|
tasks.js | File | 3.51 KB | 0644 |
|
utils.d.ts | File | 272 B | 0644 |
|
utils.js | File | 1.01 KB | 0644 |
|