import { parseE2EArgs } from "./parser.js";
import { formatE2EResult, runE2E } from "./runner.js";
export async function runE2ECli(args) {
    const options = parseE2EArgs(args);
    const result = await runE2E(options);
    if (typeof result === "string") {
        console.log(result);
        return 0;
    }
    console.log(formatE2EResult(result, options.json));
    return result.status === "failed" ? 1 : 0;
}
export function isE2ERunResult(value) {
    return typeof value === "object" && value !== null && "runId" in value && "suites" in value;
}
//# sourceMappingURL=cli.js.map