/** One row of a help section: what to type, and what it does. */ export type Row = readonly [label: string, text: string]; /** * Lays out a help section: each label in a column of its own, its text beside * it. On a terminal `width` columns wide, text wraps back to its own column * rather than to the left edge, and once any row wraps a blank line parts * every row from the next, so where one ends is plain. Without a width, as * when piped, each row stays one line, so grep finds it whole. */ export declare function table(rows: readonly Row[], style: (label: string) => string, width: number | undefined): string[]; /** * Breaks text at spaces into lines at most `width` columns wide, counting * only what shows, not colour codes; a word wider than that gets a line to * itself. Its own line breaks stay. Without a width it is left whole. */ export declare function wrap(text: string, width: number | undefined): string[];