"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.transformArguments = exports.IS_READ_ONLY = exports.FIRST_KEY_INDEX = void 0; const generic_transformers_1 = require("./generic-transformers"); exports.FIRST_KEY_INDEX = 1; exports.IS_READ_ONLY = true; function transformArguments(key, min, max, options) { const args = [ 'ZRANGEBYLEX', key, (0, generic_transformers_1.transformStringNumberInfinityArgument)(min), (0, generic_transformers_1.transformStringNumberInfinityArgument)(max) ]; if (options?.LIMIT) { args.push('LIMIT', options.LIMIT.offset.toString(), options.LIMIT.count.toString()); } return args; } exports.transformArguments = transformArguments;