import type { CommandResponse, CommandListResponse, PageInfo, ErrorResponse, OutputFormat } from './types.js'; import { type ColumnDef } from './formatter.js'; /** * Output utilities for consistent JSON formatting. * All CLI output goes through these functions for parseable responses. */ export declare const success: (data: T) => CommandResponse; export declare const successList: (data: T[], pageInfo?: PageInfo) => CommandListResponse; export declare const error: (code: string, message: string, details?: Record) => ErrorResponse; /** * Print a response as formatted JSON to stdout. */ export declare const print: (response: CommandResponse | CommandListResponse) => void; /** * Print raw data as formatted JSON to stdout. */ export declare const printRaw: (data: unknown) => void; /** * Print a list of items in the specified format. */ export declare const printList: (data: T[], format: OutputFormat, options?: { columns?: ColumnDef[]; primaryKey?: keyof T; secondaryKey?: keyof T; pageInfo?: PageInfo; }) => void; /** * Print a single item in the specified format. */ export declare const printItem: >(data: T, format: OutputFormat, options?: { primaryKey?: keyof T; }) => void;