stylesh
Version:
A powerful and elegant terminal styling library with colors, gradients, borders, themes, and animations for Node.js
13 lines • 413 B
TypeScript
/**
* Text alignment utilities
*/
import { Alignment } from '../core/types';
/**
* Pad text to align it within a given width
*/
export declare function padText(text: string, totalWidth: number, alignment?: Alignment): string;
/**
* Align multiple lines of text
*/
export declare function alignLines(lines: string[], maxWidth: number, alignment?: Alignment): string[];
//# sourceMappingURL=textAlign.d.ts.map