import CliTable from "cli-table3"; /** * Generate a random string of a specified `length`. */ export declare function randomString(length?: number): string; /** * Splits the given string by newlines. Works for both Windows and *nix style breaks. */ export declare function splitLines(s: string): string[]; type TableRow = CliTable.CrossTableRow | CliTable.HorizontalTableRow | CliTable.VerticalTableRow; export declare const tablePresets: { readonly default: { readonly wordWrap: true; }; readonly "no-borders": { readonly chars: { readonly top: ""; readonly "top-mid": ""; readonly "top-left": ""; readonly "top-right": ""; readonly bottom: ""; readonly "bottom-mid": ""; readonly "bottom-left": ""; readonly "bottom-right": ""; readonly left: ""; readonly "left-mid": ""; readonly mid: " "; readonly "mid-mid": ""; readonly right: ""; readonly "right-mid": ""; readonly middle: ""; }; readonly style: { readonly compact: true; }; readonly wordWrap: true; }; }; export declare function renderTable(rows: TableRow[], opts?: CliTable.TableConstructorOptions): string; /** * Line wraps the given text. * * @param text the text to wrap * @param maxWidth the maximum width in characters * @param opts options passed to the `wrapAnsi` library */ export declare function wordWrap(text: string, maxWidth: number, opts?: { hard?: boolean; trim?: boolean; wordWrap?: boolean; }): string; /** * Strips matching single or double quotes from a string. If a string both starts and ends with a single quote, or * if it both starts and ends with a double quote, we strip them. Otherwise the string is returned unchanged. * * @param string the string to strip */ export declare function stripQuotes(string: string): string; export {};