"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.parseBoolean = parseBoolean;
class Candidate {
    elementReference;
    selector;
    score = 0;
    constructor(elementReference, selector) {
        this.elementReference = elementReference;
        this.selector = selector;
    }
}
exports.default = Candidate;
function parseBoolean(value) {
    switch (value) {
        case 'true':
            return true;
        case 'false':
            return false;
        case undefined:
            return undefined;
        default:
            throw new Error(`Unexpected boolean value could not be parsed: ${value}`);
    }
}
