import type { OutputFormat } from "../types/index.js"; /** * Check if stdout is a TTY (interactive terminal). * Returns false when output is piped or redirected. */ export declare function isStdoutTTY(): boolean; /** * Check if stderr is a TTY (interactive terminal). * Returns false when stderr is piped or redirected. */ export declare function isStderrTTY(): boolean; /** * Get the default output format based on TTY detection. * - TTY (human): plain format for full content with labeled fields * - Non-TTY (piped/scripted): JSON for machine parsing */ export declare function getDefaultFormat(): OutputFormat; /** * Set the --no-color flag state (called from CLI parser). */ export declare function setNoColorFlag(value: boolean): void; /** * Determine if colored output should be used. * * Per https://no-color.org/ and clig.dev, colors are disabled when: * - --no-color flag is passed * - NO_COLOR env var is set (any non-empty value) * - TERM=dumb * - stdout is not a TTY (piped/redirected) */ export declare function shouldUseColor(): boolean; //# sourceMappingURL=tty.d.ts.map