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

from enum import StrEnum
from typing import TYPE_CHECKING
from rustworkx import PyDiGraph
from graph_sitter.core.codebase import CodebaseType

logger = ...
if TYPE_CHECKING:
    ...
class PostInitValidationStatus(StrEnum):
    NO_NODES = ...
    NO_EDGES = ...
    MISSING_FILES = ...
    LOW_IMPORT_RESOLUTION_RATE = ...
    SUCCESS = ...


def post_init_validation(codebase: CodebaseType) -> PostInitValidationStatus:
    """Post codebase._init_graph verifies that the built graph is valid."""
    ...

def post_reset_validation(init_nodes, nodes, init_edges, edges, repo_name: str, subdirectories: list[str] | None) -> None:
    ...

def post_sync_validation(codebase: CodebaseType) -> bool:
    """Post codebase.sync, checks that the codebase graph is in a valid state (i.e. not corrupted by codebase.sync)"""
    ...

def log_or_throw(message, thread_message: str): # -> None:
    ...

def get_edges_error(edges, init_edges): # -> str:
    ...

def get_nodes_error(init_nodes, nodes): # -> str:
    ...

def get_edges(graph: PyDiGraph): # -> list[Any]:
    ...

