import type { Formatter } from '../types.js'; /** * oc/10: TTY-only path shortener. EXPORTED so other modules can opt in, * but JSON/JSONL emitters MUST NOT call this — machine output always uses * absolute paths so cross-command joins (list → info → read) dedup * correctly on a single key. The `~` prefix is also lossy when $HOME is * unusual (CI runners, container layers, root-owned homes). */ export declare function shortenForTty(p: string): string; /** * oc/18: deterministic TTY detection that honors the standard env vars. * * NO_COLOR= → false (no colors / not a TTY for rendering) * FORCE_COLOR= → true (caller insists on color output) * SESSIONR_AGENT=1 → false (agent harness — never assume TTY) * else → process.stdout.isTTY ?? false * * Existing call sites (`process.stdout.isTTY ?? false`) lie in tmux/CI/ * supervisor environments where isTTY toggles based on PTY allocation, * not on whether the consumer wants color. Routing through this helper * gives every formatter a single, env-aware answer. */ export declare function isInteractiveTty(): boolean; export declare function createTtyFormatter(): Formatter; //# sourceMappingURL=tty.d.ts.map