capsule-ai-cli
Version:
The AI Model Orchestrator - Intelligent multi-model workflows with device-locked licensing
21 lines • 1 kB
TypeScript
export declare class TextProcessor {
static stripAnsi(str: string): string;
static getVisibleLength(str: string): number;
static wrapText(text: string, maxWidth: number, options?: {
hard?: boolean;
wordWrap?: boolean;
trim?: boolean;
}): string[];
static truncate(text: string, maxWidth: number, options?: {
position?: 'start' | 'middle' | 'end';
preferTruncationOnSpace?: boolean;
}): string;
static wrapWithIndent(text: string, maxWidth: number, indent: string): string[];
static wrapMultilineText(text: string, maxWidth: number): string[];
static fitText(text: string, maxWidth: number): string;
static calculateWrappedHeight(text: string, maxWidth: number): number;
}
export declare const stripAnsiCompat: typeof TextProcessor.stripAnsi;
export declare const wrapTextCompat: typeof TextProcessor.wrapText;
export declare const truncateCompat: typeof TextProcessor.truncate;
//# sourceMappingURL=text-processor.d.ts.map