/** * 设置全局 pretty 模式 */ export declare function setGlobalPrettyMode(pretty: boolean): void; /** * 获取全局 pretty 模式状态 */ export declare function isGlobalPrettyMode(): boolean; /** * 判断是否应该使用 pretty 模式 * 优先级:命令级别 pretty 选项 > 全局 pretty 选项 */ export declare function isPrettyMode(options?: { pretty?: boolean; }): boolean; /** * 成功响应结构 */ export interface SuccessResponse { success: true; data: T; } /** * 错误响应结构 */ export interface ErrorResponse { success: false; error: { code: string; message: string; }; } /** * 输出成功响应 */ export declare function outputSuccess(data: T, options?: { pretty?: boolean; }): void; /** * 输出错误响应并退出 */ export declare function outputError(code: string, message: string, options?: { pretty?: boolean; }): never; /** * Pretty 模式下的日志函数 */ export declare const prettyLog: { success(message: string): void; error(message: string): void; info(message: string): void; warning(message: string): void; }; //# sourceMappingURL=output.d.ts.map