/** * @file Agent-CLI flag compatibility: recognize a flag the installed CLI does * not know, and strip it so the spawn can be retried without it. The flags * `buildArgs` emits track the newest agent CLIs, but the CLI actually on PATH * can be older. An unrecognized flag fails the process before any work * happens, so a spawn layer that cannot degrade turns a cosmetic version skew * into a total outage. */ export declare const OPTIONAL_CLI_FLAGS: readonly string[]; /** * True when the agent CLI rejected `flag` as unrecognized — commander's * `error: unknown option '--effort'`, or an equivalent from another CLI. */ export declare function isUnknownCliOption(stdout: string, stderr: string, flag: string): boolean; /** * `args` with every occurrence of `flag` and the value following it removed. */ export declare function withoutCliFlag(args: readonly string[], flag: string): string[];