/** * Parse a JSON string supplied via a CLI flag. * * `JSON.parse` throws a SyntaxError on malformed input which, if uncaught, * surfaces as a non-structured "Fatal: Unexpected token ..." line in the * top-level main.ts handler. This wrapper converts the error into the * standard CLI envelope (BAD_REQUEST, exit code 2) so agents and shell * scripts can detect and handle the failure deterministically. * * @param raw The raw string from `opts.`. * @param flagName The user-facing flag name (without leading dashes), e.g. * "metadata" or "filter". Used in the error message only. */ export declare function parseJsonArg(raw: string, flagName: string): unknown; //# sourceMappingURL=parse-json-arg.d.ts.map