import { SpawnOptions } from "node:child_process";

//#region src/index.d.ts

/**
 * Execute an Appx application by its package ID.
 * @param appConfig the id of the Appx package, e.g.`"Mozilla.Firefox"`
 * @param spawnArgs an array of arguments to pass to `child_process.spawn`
 * @param spawnOptions options to pass to `child_process.spawn`
 * @returns
 */
declare function execAppx(appConfig: string | {
  appId: string;
  specifier?: number | string;
}, spawnArgs?: readonly string[], spawnOptions?: SpawnOptions): Promise<unknown>;
//#endregion
export { execAppx };