/** * Get the terminal width in columns. * Returns the actual width if available, or a sensible default. * * CRITICAL: We subtract 1 to leave a margin, preventing content from reaching * the terminal edge. This prevents auto-wrap issues and cursor positioning problems, * similar to how OhMyZsh works. Content will never exceed (terminalWidth - 1). */ export declare function getTerminalWidth(): number; /** * Get the terminal height in rows. * Returns the actual height if available, or a sensible default. */ export declare function getTerminalHeight(): number; /** * Check if stdout is a TTY (interactive terminal) */ export declare function isTTY(): boolean; /** * Listen for terminal resize events and call the callback with new dimensions * Returns a cleanup function to remove the listener * * Uses singleton pattern: only one listener on process.stdout, but tracks all callbacks * This prevents MaxListenersExceededWarning when multiple regions are created */ export declare function onResize(callback: (width: number, height: number) => void): () => void; //# sourceMappingURL=terminal.d.ts.map