/**
 * OMK Theme — ANSI escape utilities & text sanitization
 * Extracted from util/theme.ts to break God Module coupling
 */
export declare function isColorEnabled(env?: NodeJS.ProcessEnv, stream?: Pick<NodeJS.WriteStream, "isTTY">): boolean;
/** Backward-compatible snapshot; new ANSI rendering paths call isColorEnabled() dynamically. */
export declare const colorEnabled: boolean;
export declare const esc: (codes: string) => string;
export declare const rgb: (r: number, g: number, b: number) => string;
export declare const bgRgb: (r: number, g: number, b: number) => string;
export declare function stripBrokenAnsi(value: string): string;
export declare function sanitizeTerminalText(value: string): string;
export declare function visibleTerminalWidth(text: string): number;
export declare function stripAnsi(str: string): string;
export declare function padEndAnsi(str: string, len: number): string;
