import type { RefComponentMountAdapter } from './refComponentMount'; import type { UrlListenerAdapter } from './urlListener'; /** * 非浏览器运行时(React Native 等)统一适配器入参。 * - 字段为 **undefined**:不覆盖该项,仍走 Web 默认(DOM 挂载 / History URL)。 * - 字段为 **null**:该项在 native 运行时**明确不支持**。 * - 字段为适配器对象:注入对应实现。 * - 整体传入 **null**:清空已注册的 native 适配器。 */ export type MergeNativeRuntimeAdapterInput = { id?: string, refComponentMount?: RefComponentMountAdapter | null, urlListener?: UrlListenerAdapter | null, }; /** 当前已 merge 的 native 适配器快照(只读) */ export type NativeRuntimeAdapterState = { id?: string, refComponentMount?: RefComponentMountAdapter | null, urlListener?: UrlListenerAdapter | null, };