# Code generated by Lark OpenAPI.

from typing import Any, Optional, Union, Dict, List, Set, IO, Callable, Type
from lark_oapi.core.construct import init


class ClearStyleRanges(object):
    _types = {
        "ranges": List[str],
    }

    def __init__(self, d=None):
        self.ranges: Optional[List[str]] = None
        init(self, d, self._types)

    @staticmethod
    def builder() -> "ClearStyleRangesBuilder":
        return ClearStyleRangesBuilder()


class ClearStyleRangesBuilder(object):
    def __init__(self) -> None:
        self._clear_style_ranges = ClearStyleRanges()

    def ranges(self, ranges: List[str]) -> "ClearStyleRangesBuilder":
        self._clear_style_ranges.ranges = ranges
        return self

    def build(self) -> "ClearStyleRanges":
        return self._clear_style_ranges
