/** * CLI Output Wrapper (v1) * * Canonical CLI output implementation with dual sinks: * 1. User-facing stdout/stderr (plain text or JSONL) * 2. Optional diagnostic logger (pino-backed today, pluggable) * * This is the ONLY file in src/ allowed to call console.* * All CLI commands must use this wrapper. * * Environment Variables: * - LEX_CLI_OUTPUT_MODE: "plain" (default) or "jsonl" * - LEX_CLI_PRETTY: "1" to force color/formatting (auto-detected from TTY) * * See docs/CLI_OUTPUT.md for details and schemas/cli-output.v1.schema.json for schema. */ import type { OutputOptions, CliOutput } from "./output.types.js"; /** * Create a CLI output writer with specified options * * @param opts - Configuration options (scope, mode, logger, etc.) * @returns CLI output writer with info/success/warn/error/debug/json methods */ export declare function createOutput(opts?: OutputOptions): CliOutput; /** * Default output instance used by most CLI commands * Scope set to "cli" for general commands */ export declare const output: CliOutput; export declare const info: (message: string, data?: unknown, code?: string) => void; export declare const success: (message: string, data?: unknown, code?: string) => void; export declare const warn: (message: string, data?: unknown, code?: string, hint?: string) => void; export declare const error: (message: string, data?: unknown, code?: string, hint?: string) => void; export declare const debug: (message: string, data?: unknown, code?: string) => void; export declare function json(data: unknown): void; export declare function raw(message: string): void;