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

import temporalio.bridge.runtime
import temporalio.bridge.temporal_sdk_bridge
from dataclasses import dataclass
from typing import Optional, Sequence

"""
This type stub file was generated by pyright.
"""
@dataclass
class DevServerConfig:
    """Python representation of the Rust struct for configuring dev server."""
    existing_path: Optional[str]
    sdk_name: str
    sdk_version: str
    download_version: str
    download_dest_dir: Optional[str]
    namespace: str
    ip: str
    port: Optional[int]
    database_filename: Optional[str]
    ui: bool
    log_format: str
    log_level: str
    extra_args: Sequence[str]
    ...


@dataclass
class TestServerConfig:
    """Python representation of the Rust struct for configuring test server."""
    existing_path: Optional[str]
    sdk_name: str
    sdk_version: str
    download_version: str
    download_dest_dir: Optional[str]
    port: Optional[int]
    extra_args: Sequence[str]
    ...


class EphemeralServer:
    """Python representation of a Rust ephemeral server."""
    @staticmethod
    async def start_dev_server(runtime: temporalio.bridge.runtime.Runtime, config: DevServerConfig) -> EphemeralServer:
        """Start a dev server instance."""
        ...
    
    @staticmethod
    async def start_test_server(runtime: temporalio.bridge.runtime.Runtime, config: TestServerConfig) -> EphemeralServer:
        """Start a test server instance."""
        ...
    
    def __init__(self, ref: temporalio.bridge.temporal_sdk_bridge.EphemeralServerRef) -> None:
        """Initialize an ephemeral server."""
        ...
    
    @property
    def target(self) -> str:
        """Frontend address."""
        ...
    
    @property
    def has_test_service(self) -> bool:
        """Whether this server supports the test service."""
        ...
    
    async def shutdown(self) -> None:
        """Shutdown this server."""
        ...
    


