export function parseFollowCursor(value) {
    if (value === true || value === 'true')
        return true;
    if (value === false || value === 'false')
        return false;
    if (['initial', 'horizontal', 'vertical'].includes(String(value))) {
        return value;
    }
    return false;
}
export function parseDuration(value) {
    if (Array.isArray(value))
        return value;
    if (typeof value === 'number')
        return value;
    if (typeof value === 'string') {
        if (value.includes(',')) {
            const parts = value.split(',').map(v => parseInt(v.trim(), 10));
            return parts;
        }
        const num = parseInt(value, 10);
        if (!isNaN(num))
            return num;
    }
    return 200;
}
//# sourceMappingURL=utils.js.map