import * as Option from "effect/Option"; import type { OutputFormat } from "./output-mode.js"; /** Only arguments before `--` can be options. */ export declare const optionArgs: (args: ReadonlyArray) => ReadonlyArray; export declare const hasExplicitJsonFlag: (args: ReadonlyArray) => boolean; /** Every `--output` value, in both `--output value` and `--output=value` forms. */ export declare const outputSelectorsFromArgv: (args: ReadonlyArray) => ReadonlyArray; /** * Resolve output format from raw argv BEFORE Effect runs. * * If CLI parsing itself fails (e.g. unknown flag), Effect never executes, so * raw argv scanning is the only reliable way to preserve explicit --json or * to keep diagnostics off a stdout that carries a raw credential. */ export declare const resolveFormatFromArgv: (args: ReadonlyArray) => OutputFormat; /** * Resolve output format from the global flag. * Text remains the default unless --json was explicitly requested. */ export declare const resolveFormat: (explicitJson: Option.Option) => OutputFormat; //# sourceMappingURL=resolve-format.d.ts.map