from collections.abc import Awaitable
from typing import TYPE_CHECKING, Callable

if TYPE_CHECKING:
    from pyidentity.security.authorization.handler_context import (
        AuthorizationHandlerContext,
    )
    from pyidentity.security.authorization.policy_builder import (
        AuthorizationPolicyBuilder,
    )

ConfigurePolicy = Callable[["AuthorizationPolicyBuilder"], None]
AuthorizationHandler = Callable[["AuthorizationHandlerContext"], Awaitable[bool]]
