"""
This type stub file was generated by pyright.
"""

from collections import defaultdict
from functools import cached_property
from tree_sitter import Range
from graph_sitter.core.interfaces.editable import Editable

class RangeIndex:
    _ranges: defaultdict[Range, list[Editable]]
    _canonical_range: defaultdict[Range, dict[int, Editable]]
    def __init__(self) -> None:
        ...
    
    def add_to_range(self, editable: Editable) -> None:
        ...
    
    def mark_as_canonical(self, editable: Editable) -> None:
        ...
    
    def get_all_for_range(self, range: Range) -> list[Editable]:
        ...
    
    def get_canonical_for_range(self, range: Range, kind_id: int) -> Editable | None:
        ...
    
    def clear(self): # -> None:
        ...
    
    @cached_property
    def nodes(self) -> list[Editable]:
        ...
    
    @cached_property
    def children(self) -> dict[Editable, list[Editable]]:
        ...
    
    def get_children(self, parent: Editable) -> list[Editable]:
        ...
    


