import type { EcoPagesAppConfig } from './types/internal-types'; import type { EcoNavigationRuntime } from './router/client/navigation-coordinator'; type HMRHandler = (url: string) => Promise; type CleanupPageRootFunction = () => void; type EcoPageRoot = { render: (node: unknown) => void; unmount: () => void }; type EcoPageData = { module: string; props: Record; }; type EcoPagesWindowRuntime = { hmrHandlers?: Record; navigation?: EcoNavigationRuntime; react?: { cleanupPageRoot?: CleanupPageRootFunction; pageRoot?: EcoPageRoot | null; }; islandRoots?: Record; page?: EcoPageData; }; declare global { interface Window { /** Shared Ecopages browser runtime state */ __ECO_PAGES__?: EcoPagesWindowRuntime; } } declare module '*.css' { const styles: string; export default styles; }