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

class Visitor:
    def visit(self, module):  # -> None:
        ...
    def visit_Function(self, func):  # -> None:
        ...
    def visit_BasicBlock(self, bb):  # -> None:
        ...
    def visit_Instruction(self, instr): ...
    @property
    def module(self): ...
    @property
    def function(self): ...
    @property
    def basic_block(self): ...

class CallVisitor(Visitor):
    def visit_Instruction(self, instr):  # -> None:
        ...
    def visit_Call(self, instr): ...

class ReplaceCalls(CallVisitor):
    def __init__(self, orig, repl) -> None: ...
    def visit_Call(self, instr):  # -> None:
        ...

def replace_all_calls(mod, orig, repl):  # -> list[Any]:
    """Replace all calls to `orig` to `repl` in module `mod`.
    Returns the references to the returned calls
    """
    ...
