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

import concurrent.futures
import temporalio.bridge.proto.workflow_activation
import temporalio.bridge.worker
import temporalio.common
import temporalio.converter
from typing import Callable, Optional, Sequence, Type
from ._interceptor import Interceptor
from ._workflow_instance import WorkflowRunner

"""Workflow worker."""
logger = ...
LOG_PROTOS = ...
class _WorkflowWorker:
    def __init__(self, *, bridge_worker: Callable[[], temporalio.bridge.worker.Worker], namespace: str, task_queue: str, workflows: Sequence[Type], workflow_task_executor: Optional[concurrent.futures.ThreadPoolExecutor], workflow_runner: WorkflowRunner, unsandboxed_workflow_runner: WorkflowRunner, data_converter: temporalio.converter.DataConverter, interceptors: Sequence[Interceptor], debug_mode: bool, disable_eager_activity_execution: bool, metric_meter: temporalio.common.MetricMeter, on_eviction_hook: Optional[Callable[[str, temporalio.bridge.proto.workflow_activation.RemoveFromCache], None]]) -> None:
        ...
    
    async def run(self) -> None:
        ...
    
    async def drain_poll_queue(self) -> None:
        ...
    


