"""
pyWebLayout-ereader: A complete ebook reader application built with pyWebLayout.

This package provides a high-level, user-friendly ebook reader implementation
with all essential features for building ereader applications.
"""

from dreader.application import EbookReader, create_ebook_reader
from dreader import html_generator
from dreader import book_utils
from dreader.gesture import (
    TouchEvent,
    GestureType,
    GestureResponse,
    ActionType
)
from dreader.state import (
    StateManager,
    AppState,
    BookState,
    LibraryState,
    Settings,
    EreaderMode,
    OverlayState
)
from dreader.library import LibraryManager
from dreader.main import DReaderApplication, AppConfig
from dreader.hal import DisplayHAL, KeyboardInputHAL, EventLoopHAL

__version__ = "0.1.0"
__all__ = [
    # Core reader
    "EbookReader",
    "create_ebook_reader",

    # Utilities
    "html_generator",
    "book_utils",

    # Gesture system
    "TouchEvent",
    "GestureType",
    "GestureResponse",
    "ActionType",

    # State management
    "StateManager",
    "AppState",
    "BookState",
    "LibraryState",
    "Settings",
    "EreaderMode",
    "OverlayState",

    # Library
    "LibraryManager",

    # Main application
    "DReaderApplication",
    "AppConfig",

    # HAL interfaces
    "DisplayHAL",
    "KeyboardInputHAL",
    "EventLoopHAL",
]
