export type FlagKind = "boolean" | "string"; export type FlagSchema = Record; export type Flags = Record; export declare class HelpRequested extends Error { constructor(); } export interface CliCommand { name: string; aliases?: string[]; section: "sessions" | "fleet" | "windows" | "setup" | "break-glass"; sessionVerbs?: string[]; flags: FlagSchema; help: string; handler: (argv: string[]) => void | Promise; } export declare function parseFlags(argv: string[], schema: FlagSchema, commandLabel: string): Flags; export declare function dispatchSubcommand(argv: string[], label: string, routes: Record void | Promise>, onHelp: () => void, unknownSuffix?: string): Promise; export declare function findCliCommand(commands: CliCommand[], name: string): CliCommand | undefined; export declare function runCliCommand(commands: CliCommand[], argv: string[], onHelp: () => void): Promise;