import type { Command } from "commander";
export type CompletionShell = "bash" | "zsh" | "fish";
export interface CliOptionEntry {
    flags: string;
    description: string;
    longFlag: string | null;
    shortFlag: string | null;
}
export interface CliCommandEntry {
    path: string[];
    command: string;
    description: string;
    aliases: string[];
    usage: string;
    options: CliOptionEntry[];
}
export interface CliManual {
    title: string;
    synopsis: string;
    package_name: string;
    local_only: true;
    install: string[];
    update: string[];
    completion_shells: CompletionShell[];
    examples: string[];
    json_contracts: string[];
    error_codes: {
        code: string;
        meaning: string;
    }[];
    commands: CliCommandEntry[];
}
export declare const COMPLETION_SHELLS: CompletionShell[];
export declare function collectCliCommandEntries(program: Command, prefix?: string[]): CliCommandEntry[];
export declare function createCliManual(program: Command): CliManual;
export declare function renderCliManualMarkdown(manual: CliManual): string;
export declare function generateCompletionScript(program: Command, shell: CompletionShell): string;
//# sourceMappingURL=cli-help.d.ts.map