/** * Prepends a padding string to every line of the input text. * * Splits on `\n`, prepends `padding` to each line, and rejoins with `\n`. * Because empty strings and trailing newlines also split into lines, the * padding is applied there too — see the examples. * * @param text - The text to indent. Lines are delimited by `\n`. * @param padding - String prepended to each line. Defaults to two spaces. * @returns The indented text. * * @example * ```typescript * stringIndent('foo\nbar'); // ' foo\n bar' * stringIndent('foo\nbar', '\t'); // '\tfoo\n\tbar' * ``` */ export declare function stringIndent(text: string, padding?: string): string;