/** * Small argv helpers used by botmux subcommands. Lives in a side-effect-free * module so tests can import them without triggering cli.ts's top-level * dispatcher switch. */ /** Pick the first positional (non-flag, non-flag-value) token from `args`. * Skips both `--name` flags AND their following value tokens, so * `cmd --session-id om_xxx` correctly returns `om_xxx`. Flags that * take values must be passed in `flagsWithValue` to avoid eating their args. */ export declare function firstPositional(args: string[], flagsWithValue: string[]): string | undefined; /** True if `flag` is present in either bare (`--team`) or `=`-value (`--team=t1`) * form. Use for presence checks on flags that ALSO carry a value via * argValue/argValues, where a bare `args.includes(flag)` misses the * `--flag=value` spelling (e.g. team-mode routing on `create-group`). */ export declare function hasFlagOrEq(args: string[], flag: string): boolean; //# sourceMappingURL=arg-utils.d.ts.map