{
    "type": "object",
    "properties": {
        "exclude": {
            "$ref": "#/$defs/Condition"
        },
        "hoistNodeModules": {
            "type": "boolean"
        },
        "longestCommonDir": {
            "type": "string"
        },
        "extentionMapping": {
            "type": "object"
        },
        "preferResolveByDependencyAsCjs": {
            "type": "boolean"
        }
    },
    "additionalProperties": false,
    "$defs": {
        "Condition": {
            "oneOf": [
                {
                    "$ref": "#/$defs/SingularCondition"
                },
                {
                    "type": "array",
                    "items": {
                        "$ref": "#/$defs/SingularCondition"
                    }
                }
            ]
        },
        "SingularCondition": {
            "oneOf": [
                {
                    "type": "string"
                },
                {
                    "instanceof": "RegExp"
                },
                {
                    "instanceof": "Function"
                }
            ]
        }
    }
}
