capsule-ai-cli
Version:
The AI Model Orchestrator - Intelligent multi-model workflows with device-locked licensing
45 lines • 1.71 kB
TypeScript
export interface LayoutDimensions {
terminalWidth: number;
terminalHeight: number;
messageAreaHeight: number;
footerHeight: number;
inputHeight: number;
suggestionHeight: number;
animationRow: number;
inputTopRow: number;
inputContentRow: number;
inputBottomRow: number;
suggestionStartRow: number;
footerRow: number;
}
export declare class LayoutManager {
private minMessageHeight;
private baseFooterHeight;
calculateLayout(options: {
showingSuggestions: boolean;
suggestionCount: number;
multiLineMode: boolean;
inputLineCount: number;
isSlashCommand: boolean;
}): LayoutDimensions;
private calculateMaxInputHeight;
isLayoutValid(layout: LayoutDimensions): boolean;
calculateVisibleRange(totalLines: number, messageAreaHeight: number, scrollPosition: number): {
start: number;
end: number;
};
calculateCursorPosition(inputContentRow: number, inputHeight: number, currentLineLength: number, terminalHeight: number, terminalWidth: number): {
row: number;
col: number;
};
canFitSuggestions(terminalHeight: number, currentFooterHeight: number, suggestionCount: number): boolean;
calculateFooterLayout(terminalWidth: number): {
maxLeftContentWidth: number;
maxRightContentWidth: number;
paddingSpace: number;
};
getLayoutMode(terminalWidth: number, terminalHeight: number): 'compact' | 'normal' | 'spacious';
adjustForLayoutMode(layout: LayoutDimensions, mode: 'compact' | 'normal' | 'spacious'): LayoutDimensions;
}
export declare const layoutManager: LayoutManager;
//# sourceMappingURL=layout-manager.d.ts.map