type Colorizer = (x: string) => string; export declare class PrintableTree { private readonly lines; constructor(...lines: string[]); get empty(): boolean; emit(x: string): void; addTree(tree: PrintableTree): this; addBullets(trees: PrintableTree[]): this; addBullet(last: boolean, tree: PrintableTree): this; /** * Indent the lines in this printable tree */ indent(n: number): this; /** * Prefix all lines of the tree with the given list of cells. * * The first line will be prefixed with `first`. * * The other lines will be prefixed with `rest` if given, or the length of * `first` in spaces if rest is not given. */ prefix(first: string[], rest?: string[]): this; newline(): this; colorize(colorizer: Colorizer): this; toString(): string; } export {};