export declare function isHelpOrVersionInvocation(argv: string[]): boolean;
export declare function isRootHelpInvocation(argv: string[]): boolean;
export declare function getPrimaryCommand(argv: string[]): string | null;
/**
 * Walk argv and collect command tokens (skips global flags and `help` prefix).
 */
export declare function resolveCliCommandPath(argv: string[]): string[];
