/** * Shared help-text renderers for CLI commands * * Both renderers print a command's help object verbatim in JSON mode and * reproduce the historical pretty/plain text layout otherwise. */ /** One titled section of plain help output: an optional key/description table and/or literal example lines. */ export interface PlainHelpSection { label: string; entries?: Record; items?: string[]; width?: number; } /** * Print a command's help in JSON mode or as the plain console layout: * heading, then one titled section per entry. */ export declare function printPlainHelp(isJson: boolean, help: unknown, heading: string, sections: PlainHelpSection[]): void; export interface HelpEntry { name: string; description: string; } export interface PrettyHelpLayout { heading: string; /** Literal description line; when omitted, `help.description` is printed followed by a blank line. */ description?: string; /** Example lines printed dim under a dim "Examples:" heading. */ examples?: string[]; } /** * Print a command's help in JSON mode or with the pretty output layer * (heading, description, subcommands at width 25, flags at width 20, examples). */ export declare function printCommandHelp(outputFormat: string, help: { description?: string; subcommands: HelpEntry[]; flags?: HelpEntry[]; }, layout: PrettyHelpLayout): Promise;