export declare function isRichTty(stream: NodeJS.WritableStream): boolean;
export declare function supportsColor(stream: NodeJS.WritableStream, env: Record<string, string | undefined>): boolean;
export declare function terminalWidth(stream: NodeJS.WritableStream, env: Record<string, string | undefined>): number;
export declare function terminalHeight(stream: NodeJS.WritableStream, env: Record<string, string | undefined>): number;
/** Default max width for markdown rendering to keep text readable on wide terminals. */
export declare const DEFAULT_MAX_RENDER_WIDTH = 120;
export declare function markdownRenderWidth(stream: NodeJS.WritableStream, env: Record<string, string | undefined>): number;
export declare function ansi(code: string, input: string, enabled: boolean): string;
