"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const wrapCell_1 = __importDefault(require("./wrapCell"));
exports.default = (value, columnWidth, useWrapWord = false) => {
    if (typeof value !== 'string') {
        throw new TypeError('Value must be a string.');
    }
    return wrapCell_1.default(value, columnWidth, useWrapWord).length;
};
