"""
@generated by mypy-protobuf.  Do not edit manually!
isort:skip_file
Copyright 2016-2023, Pulumi Corporation.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
import abc
import grpc
import grpc.aio
import typing
import pulumi.callback_pb2

class CallbacksStub:
    """Callbacks is a service for invoking functions in one runtime from other processes."""

    def __init__(self, channel: grpc.Channel) -> None: ...
    Invoke: grpc.UnaryUnaryMultiCallable[
        pulumi.callback_pb2.CallbackInvokeRequest,
        pulumi.callback_pb2.CallbackInvokeResponse,
    ]
    """Invoke invokes a given callback, identified by its token."""

class CallbacksServicer(metaclass=abc.ABCMeta):
    """Callbacks is a service for invoking functions in one runtime from other processes."""

    
    def Invoke(
        self,
        request: pulumi.callback_pb2.CallbackInvokeRequest,
        context: grpc.ServicerContext,
    ) -> pulumi.callback_pb2.CallbackInvokeResponse:
        """Invoke invokes a given callback, identified by its token."""

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