"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.MAX_SAFE_TIMER_MS = void 0;
exports.assertSafeTimerMs = assertSafeTimerMs;
exports.MAX_SAFE_TIMER_MS = 0x7fffffff;
function assertSafeTimerMs(value, label = 'Timeout') {
    if (!Number.isSafeInteger(value) || value < 1 || value > exports.MAX_SAFE_TIMER_MS) {
        throw new Error(`${label} must be a safe positive integer between 1 and ${exports.MAX_SAFE_TIMER_MS}`);
    }
    return value;
}
//# sourceMappingURL=timer.js.map