"""Type aliases for formula tokens."""
from typing import Any, Dict, List, TypedDict, Union


class FieldRefToken(TypedDict, total=False):
    """A reference to a record field inside a formula token list."""

    is_field: bool
    field: str
    reference_field: str


FormulaToken = Union[str, Dict[str, Any]]
FormulaList = List[FormulaToken]
