from __future__ import annotations

from dataclasses import dataclass
from typing import Generic, TypeVar

T = TypeVar("T")


@dataclass(slots=True)
class ContinuationPage(Generic[T]):
    items: list[T]
    total: int | None = None
    limit: int | None = None
    next_token: str | None = None
    href: str | None = None
