1 | import sliceAnsi = require('slice-ansi');
|
2 | import stringWidth = require('string-width');
|
3 | import stripAnsi = require('strip-ansi');
|
4 | export { sliceAnsi, stringWidth, stripAnsi };
|
5 | export declare const TTY_WIDTH: number;
|
6 | export declare function indent(n?: number): string;
|
7 | export interface WordWrapOptions {
|
8 | width?: number;
|
9 | indentation?: number;
|
10 | append?: string;
|
11 | }
|
12 | export declare function wordWrap(msg: string, { width, indentation, append }: WordWrapOptions): string;
|
13 | export declare function prettyPath(p: string): string;
|
14 | export declare function expandPath(p: string): string;
|
15 | export declare function generateFillSpaceStringList(list: string[], optimalLength?: number, fillCharacter?: string): string[];
|
16 | export interface ColumnarOptions {
|
17 | hsep?: string;
|
18 | vsep?: string;
|
19 | headers?: string[];
|
20 | }
|
21 |
|
22 |
|
23 |
|
24 |
|
25 |
|
26 |
|
27 |
|
28 |
|
29 |
|
30 |
|
31 |
|
32 |
|
33 |
|
34 |
|
35 | export declare function columnar(rows: string[][], { hsep, vsep, headers }: ColumnarOptions): string;
|