export interface PortalSnapshot { locale: string; theme: "light" | "dark"; fullscreen: boolean; } export interface PortalAdapter { subscribe(onState: (state: PortalSnapshot) => void, onError: (error: Error) => void): () => void; }