"""Genesys Cloud AI token cost calculator — the engine.

Math only. The vendor's published rate card is the immutable anchor in
:mod:`genesyscalc.ratecard`; everything the consultant authors or the client
supplies lives in the notebook's tagged cells. See
``docs/Calculator_Pattern_V1-00.md``.
"""

from __future__ import annotations

from .appendix import result_json
from .billing import (
    MONTHS_PER_YEAR,
    CostLine,
    CostTotals,
    allowance_for,
    billable_tokens_monthly,
    cost_lines,
    total_cost,
)
from .meters import (
    Confidence,
    LicenceModel,
    Meter,
    MeterBasis,
    Tier,
    TokenPrice,
)
from .model import (
    CalculatorInputs,
    CalculatorResult,
    calculate,
    compare,
    cost_per_interaction,
    metered_units,
)
from .ratecard import (
    ALLOWANCE_CARRIES_OVER,
    COPILOT_COVERS_SUMMARY_RULE,
    FREE_TOKENS_PER_MONTH,
    HIGHEST_TIER_RULE,
    LIST_PRICE_BY_CURRENCY,
    METERS,
    METERS_VERBATIM,
    RATE_CARD_SOURCE,
    RATE_CARD_SOURCE_DATE,
    VOICE_BOT_ROUNDUP_SECONDS,
    ZERO_RATED_VERBATIM,
    meter,
    per_user_meter,
    rate_card_rows,
)
from .sensitivity import DRIVERS, sweep, tornado
from .staging import backstage, backstage_md, on_stage
from .tts import (
    TTS_PRICE_PER_MILLION_CHARS,
    TTS_SOURCE,
    TTS_SOURCE_DATE,
    TTS_STANDARD_END_OF_SALE,
    TTS_STANDARD_END_OF_SUPPORT,
    TtsLine,
    TtsUsage,
    tts_cost,
    tts_free_share,
)
from .usage import (
    DeflectionMix,
    FeatureUsage,
    VoiceBotUsage,
    Volumes,
    apply_copilot_covers_summary,
    subscription_tokens,
    virtual_agent_tokens,
    voice_bot_billable_minutes,
    voice_bot_roundup_uplift,
    voice_bot_tokens,
)

__version__ = "0.1.0"

__all__ = [
    "ALLOWANCE_CARRIES_OVER",
    "COPILOT_COVERS_SUMMARY_RULE",
    "DRIVERS",
    "FREE_TOKENS_PER_MONTH",
    "HIGHEST_TIER_RULE",
    "LIST_PRICE_BY_CURRENCY",
    "METERS",
    "METERS_VERBATIM",
    "MONTHS_PER_YEAR",
    "RATE_CARD_SOURCE",
    "RATE_CARD_SOURCE_DATE",
    "TTS_PRICE_PER_MILLION_CHARS",
    "TTS_SOURCE",
    "TTS_SOURCE_DATE",
    "TTS_STANDARD_END_OF_SALE",
    "TTS_STANDARD_END_OF_SUPPORT",
    "VOICE_BOT_ROUNDUP_SECONDS",
    "ZERO_RATED_VERBATIM",
    "CalculatorInputs",
    "CalculatorResult",
    "Confidence",
    "CostLine",
    "CostTotals",
    "DeflectionMix",
    "FeatureUsage",
    "LicenceModel",
    "Meter",
    "MeterBasis",
    "Tier",
    "TokenPrice",
    "TtsLine",
    "TtsUsage",
    "VoiceBotUsage",
    "Volumes",
    "__version__",
    "allowance_for",
    "apply_copilot_covers_summary",
    "backstage",
    "backstage_md",
    "billable_tokens_monthly",
    "calculate",
    "compare",
    "cost_lines",
    "cost_per_interaction",
    "meter",
    "metered_units",
    "on_stage",
    "per_user_meter",
    "rate_card_rows",
    "result_json",
    "subscription_tokens",
    "sweep",
    "tornado",
    "total_cost",
    "tts_cost",
    "tts_free_share",
    "virtual_agent_tokens",
    "voice_bot_billable_minutes",
    "voice_bot_roundup_uplift",
    "voice_bot_tokens",
]
