from typing import Any, Callable, Generator

def top_down(brule, fns=...) -> Callable[..., Generator[Any, Any, None]]:
    ...

def sall(brule, fns=...) -> Callable[..., Generator[Any, Any, None]]:
    ...

