import asyncio
from .const import CONF_DEVICE_ID as CONF_DEVICE_ID, CONF_DEVICE_NAME as CONF_DEVICE_NAME, CONF_PROVISIONING_KEY as CONF_PROVISIONING_KEY, CONF_PROVISIONING_SECRET as CONF_PROVISIONING_SECRET, DOMAIN as DOMAIN, ENERGYID_DEVICE_ID_FOR_WEBHOOK_PREFIX as ENERGYID_DEVICE_ID_FOR_WEBHOOK_PREFIX, MAX_POLLING_ATTEMPTS as MAX_POLLING_ATTEMPTS, NAME as NAME, POLLING_INTERVAL as POLLING_INTERVAL
from .energyid_sensor_mapping_flow import EnergyIDSensorMappingFlowHandler as EnergyIDSensorMappingFlowHandler
from _typeshed import Incomplete
from collections.abc import Mapping
from homeassistant.config_entries import ConfigEntry as ConfigEntry, ConfigFlow as ConfigFlow, ConfigFlowResult as ConfigFlowResult, ConfigSubentryFlow as ConfigSubentryFlow
from homeassistant.core import callback as callback
from homeassistant.helpers.aiohttp_client import async_get_clientsession as async_get_clientsession
from typing import Any

_LOGGER: Incomplete

class EnergyIDConfigFlow(ConfigFlow, domain=DOMAIN):
    _flow_data: dict[str, Any]
    _polling_task: asyncio.Task | None
    def __init__(self) -> None: ...
    async def _perform_auth_and_get_details(self) -> str | None: ...
    async def _async_poll_for_claim(self) -> None: ...
    async def async_step_user(self, user_input: dict[str, Any] | None = None) -> ConfigFlowResult: ...
    async def async_step_auth_and_claim(self, user_input: dict[str, Any] | None = None) -> ConfigFlowResult: ...
    async def async_step_create_entry(self, user_input: dict[str, Any] | None = None) -> ConfigFlowResult: ...
    async def async_step_reauth(self, entry_data: Mapping[str, Any]) -> ConfigFlowResult: ...
    async def async_step_reauth_confirm(self, user_input: dict[str, Any] | None = None) -> ConfigFlowResult: ...
    @classmethod
    @callback
    def async_get_supported_subentry_types(cls, config_entry: ConfigEntry) -> dict[str, type[ConfigSubentryFlow]]: ...
