"""
Auto-generated Python stub file from lib.core.Handles.HandlesImports.py
Module: lib.core.Handles.HandlesImports
"""


import t, c
from stdint import *
import ast
import memhub
import string
import viperlib
import stdio
import lib.core.Handles.HandlesBase as HandlesBase
import lib.core.Handles.HandlesTranslator as HT
import lib.core.Handles.HandlesStruct as HandlesStruct

def add_imported_module(pool: memhub.MemBuddy | t.CPtr, imported_modules: str, name: str) -> str: pass

def is_module_imported(imported_modules: str, name: str) -> int: pass

def add_from_import(pool: memhub.MemBuddy | t.CPtr, from_imports: str, local_name: str, module_name: str) -> str: pass

def lookup_from_import(from_imports: str, name: str, allow_star_fallback: int) -> str: pass

def _resolve_relative_module(pool: memhub.MemBuddy | t.CPtr, current_package: str, level: t.CInt, module: str) -> str: pass

def compute_package_from_relpath(pool: memhub.MemBuddy | t.CPtr, rel_path: str) -> str: pass


@t.NoVTable
class ImportsHandle(HandlesBase.Mixin):
    def __init__(self: ImportsHandle, trans: HT.Translator | t.CPtr) -> t.CInt: pass
    def HandleImport(self: ImportsHandle, node: ast.AST | t.CPtr) -> int: pass
    def HandleImportFromModule(self: ImportsHandle, node: ast.AST | t.CPtr) -> int: pass
    def HandleImportFromNames(self: ImportsHandle, node: ast.AST | t.CPtr) -> int: pass

def NewImportsHandle(pool: memhub.MemBuddy | t.CPtr, trans: HT.Translator | t.CPtr) -> ImportsHandle | t.CPtr: pass
