"""
@generated by mypy-protobuf.  Do not edit manually!
isort:skip_file
"""

import abc
import auth_pb2
import collections.abc
import grpc
import grpc.aio
import typing

_T = typing.TypeVar("_T")

class _MaybeAsyncIterator(collections.abc.AsyncIterator[_T], collections.abc.Iterator[_T], metaclass=abc.ABCMeta): ...

class _ServicerContext(grpc.ServicerContext, grpc.aio.ServicerContext):  # type: ignore[misc, type-arg]
    ...

GRPC_GENERATED_VERSION: str
GRPC_VERSION: str

class AuthServiceStub:
    @typing.overload
    def __new__(cls, channel: grpc.Channel) -> AuthServiceStub: ...
    @typing.overload
    def __new__(cls, channel: grpc.aio.Channel) -> AuthServiceAsyncStub: ...
    SendOtp: grpc.UnaryUnaryMultiCallable[auth_pb2.SendOtpRequest, auth_pb2.SendOtpResponse]
    VerifyOtp: grpc.UnaryUnaryMultiCallable[auth_pb2.VerifyOtpRequest, auth_pb2.VerifyOtpResponse]

@typing.type_check_only
class AuthServiceAsyncStub(AuthServiceStub):
    def __init__(self, channel: grpc.aio.Channel) -> None: ...
    SendOtp: grpc.aio.UnaryUnaryMultiCallable[auth_pb2.SendOtpRequest, auth_pb2.SendOtpResponse]  # type: ignore[assignment]
    VerifyOtp: grpc.aio.UnaryUnaryMultiCallable[auth_pb2.VerifyOtpRequest, auth_pb2.VerifyOtpResponse]  # type: ignore[assignment]

class AuthServiceServicer(metaclass=abc.ABCMeta):
    @abc.abstractmethod
    def SendOtp(
        self,
        request: auth_pb2.SendOtpRequest,
        context: _ServicerContext,
    ) -> typing.Union[auth_pb2.SendOtpResponse, collections.abc.Awaitable[auth_pb2.SendOtpResponse]]: ...

    @abc.abstractmethod
    def VerifyOtp(
        self,
        request: auth_pb2.VerifyOtpRequest,
        context: _ServicerContext,
    ) -> typing.Union[auth_pb2.VerifyOtpResponse, collections.abc.Awaitable[auth_pb2.VerifyOtpResponse]]: ...

def add_AuthServiceServicer_to_server(servicer: AuthServiceServicer, server: typing.Union[grpc.Server, grpc.aio.Server]) -> None: ...
