"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    o[k2] = m[k];
}));
var __exportStar = (this && this.__exportStar) || function(m, exports) {
    for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p);
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.utils = void 0;
var nearestEntity_1 = require("./functions/nearestEntity");
__exportStar(require("./classes"), exports);
function utils(bot) {
    bot.utils = {
        getNearestEntity: function (filter, count) {
            if (filter === void 0) { filter = function () { return true; }; }
            if (count === void 0) { count = 1; }
            return nearestEntity_1.getNearestEntity(bot, filter, count);
        }
    };
}
exports.utils = utils;
