from celery.bin.base import Command
from typing import Any, Optional

HELP = __doc__

class worker(Command):
    doc: Any = ...
    namespace: str = ...
    enable_config_from_cmdline: bool = ...
    supports_args: bool = ...
    removed_flags: Any = ...
    def run_from_argv(self, prog_name: Any, argv: Optional[Any] = ..., command: Optional[Any] = ...): ...
    def maybe_detach(self, argv: Any, dopts: Optional[Any] = ...) -> None: ...
    def run(self, hostname: Optional[Any] = ..., pool_cls: Optional[Any] = ..., app: Optional[Any] = ..., uid: Optional[Any] = ..., gid: Optional[Any] = ..., loglevel: Optional[Any] = ..., logfile: Optional[Any] = ..., pidfile: Optional[Any] = ..., statedb: Optional[Any] = ..., **kwargs: Any): ...
    def with_pool_option(self, argv: Any): ...
    def add_arguments(self, parser: Any) -> None: ...

def main(app: Optional[Any] = ...) -> None: ...
