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

import sys
import os
import json
import importlib
from __future__ import absolute_import
from . import backend
from .set_default_backend import set_default_backend

_enabled_apis = ...
def load_backend(mod_name): # -> None:
    ...

def get_preferred_backend(): # -> str | Any | None:
    ...

def is_enabled(api): # -> bool:
    """Return true if the api is enabled by the current backend.

    Parameters
    ----------
    api : str
        The api name.

    Returns
    -------
    bool
        True if the API is enabled by the current backend.
    """
    ...

def to_dgl_nd(data):
    ...

def from_dgl_nd(data):
    ...

