@ppramanik62/lab-works
Version:
A comprehensive command-line toolkit for hydraulic turbine calculations, supporting Francis Turbine and Pelton Wheel computations with interactive mode and validation.
33 lines • 1.03 kB
TypeScript
/**
* Terminal color utilities for enhanced CLI appearance
*/
/**
* Apply color to text
*/
export declare const colorize: (text: string, color: string) => string;
/**
* Themed color functions for different UI elements
*/
export declare const theme: {
header: (text: string) => string;
title: (text: string) => string;
label: (text: string) => string;
value: (text: string) => string;
success: (text: string) => string;
warning: (text: string) => string;
error: (text: string) => string;
prompt: (text: string) => string;
info: (text: string) => string;
accent: (text: string) => string;
subtle: (text: string) => string;
emoji: (text: string) => string;
};
/**
* Check if colors should be disabled (for CI/non-TTY environments)
*/
export declare const shouldUseColors: () => boolean;
/**
* Conditionally apply colors based on environment
*/
export declare const safeColorize: (text: string, colorFn: (text: string) => string) => string;
//# sourceMappingURL=colors.d.ts.map