@nanocollective/nanocoder
Version:
A local-first CLI coding agent that brings the power of agentic coding tools like Claude Code and Gemini CLI to local models or controlled APIs like OpenRouter
18 lines • 649 B
TypeScript
type TerminalSize = 'narrow' | 'normal' | 'wide';
export declare const useTerminalWidth: () => number;
/**
* Hook to detect terminal size category and provide responsive utilities
* @returns Object with terminal width, size category, and utility functions
*/
export declare const useResponsiveTerminal: () => {
boxWidth: number;
actualWidth: number;
size: TerminalSize;
isNarrow: boolean;
isNormal: boolean;
isWide: boolean;
truncate: (text: string, maxLength: number) => string;
truncatePath: (pathStr: string | undefined, maxLength: number) => string;
};
export {};
//# sourceMappingURL=useTerminalWidth.d.ts.map