claude-statusline-powerline
Version:
Beautiful powerline-style statusline for Claude Code with git integration, session tracking, and cost monitoring
14 lines • 799 B
TypeScript
import { SegmentStyleConfig, StatuslineConfig } from '../types';
/**
* Truncate text with ellipsis if it exceeds the maximum length
*/
export declare function truncate_text(text: string, max_length: number, ellipsis?: string): string;
/**
* Get the maximum length for a segment from config with fallbacks
*/
export declare function get_segment_max_length(segment_type: 'model' | 'directory' | 'git' | 'session' | 'context', style_override: SegmentStyleConfig | undefined, config: StatuslineConfig): number;
/**
* Truncate text for a specific segment type using config
*/
export declare function truncate_segment_text(text: string, segment_type: 'model' | 'directory' | 'git', style_override: SegmentStyleConfig | undefined, config: StatuslineConfig): string;
//# sourceMappingURL=text.d.ts.map