export declare const SKIP_TELEMETRY_COMMANDS: Set; export declare function resolveCanonicalName(parts: string[]): string; /** * Resolve the command name from raw argv for paths where yargs validation * fails before middleware runs (e.g. a missing required argument). * * Returns the first token that resolves to a KNOWN top-level command. Tokens * are matched against the command registry rather than trusting position, so * an option value preceding the command (e.g. `--api-key sk_live_… org` or * `--mode ci org`) can never be recorded as the command name — that would leak * secrets/values into telemetry and explode cardinality. Anything that isn't a * known command (typos, stray values, `--help`) returns 'root', which is * skipped. Only the top-level command is recorded; later positionals can be * user values (org names, emails, IDs), so they are never included. */ export declare function resolveCommandNameFromRawArgs(rawArgs: string[]): string; export declare function extractUserFlags(rawArgs: string[]): string[];