"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.registerSleepStep = registerSleepStep;
function registerSleepStep(registry) {
    registry.register("util.sleep", async (_ctx, step) => {
        const input = (step.with ?? {});
        if (input.ms === undefined) {
            throw new Error('Missing "ms" in step.with for op "util.sleep"');
        }
        await new Promise((resolve) => setTimeout(resolve, input.ms));
    });
}
//# sourceMappingURL=sleep.step.js.map