import BigNumber from 'bignumber.js';
export function createMicrometerFormat() {
    return () => {
        return {
            cell(value) {
                const valueNumber = new BigNumber(value);
                const valueTypeVerify = typeof value === 'string' || typeof value === 'number';
                const valueIsLikeNumber = typeof valueNumber.toNumber() === 'number';
                const canMicrometer = valueTypeVerify && valueIsLikeNumber;
                if (canMicrometer) {
                    return valueNumber.toFormat();
                }
                return value;
            },
        };
    };
}
