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

from graph_sitter.core.autocommit import reader, writer
from graph_sitter.core.expressions.expression import Expression
from graph_sitter.writer_decorators import apidoc

@apidoc
class HasValue:
    """An interface for any node object that has a value."""
    _value_node: Expression | None
    @property
    @reader
    def value(self) -> Expression | None:
        """Gets the value node of the object.

        Returns:
            Expression | None: The value node of the object. None if no value is set.
        """
        ...
    
    @writer
    def set_value(self, value: str) -> None:
        """Sets the value of the node's value Expression.

        Updates the value of the underlying Expression node if it exists. No action is taken if the value node is None.

        Args:
            value (str): The new value to set.

        Returns:
            None
        """
        ...
    


