from __future__ import annotations

import os


def interceptor_base_url() -> str:
    """Return interceptor base URL without trailing slash."""
    url = os.environ.get("ACP_INTERCEPTOR_URL", "http://localhost:8080").strip()
    return url.rstrip("/")


def api_key() -> str | None:
    v = os.environ.get("ACP_API_KEY", "").strip()
    return v or None


def bearer_token() -> str | None:
    v = os.environ.get("ACP_BEARER_TOKEN", "").strip()
    return v or None
