/**
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 *
 * @flow strict-local
 * @format
 */

import type { Command as CommunityCommand } from "@react-native-community/cli-types";

import { Command } from "commander";
export type { BundleCommandArgs } from "./buildBundle";

type CommandOption = Readonly<NonNullable<CommunityCommand["options"]>[number]>;

type BundleCommandParser = {
  parser: Command,
  baseHelpInformation: string,
};

declare const bundleCommand: CommunityCommand;

declare export function unstable_createBundleCommandParser(
  additionalOptions?: ReadonlyArray<CommandOption>,
): BundleCommandParser;

declare export default typeof bundleCommand;
