import type { RefComponentMountAdapter } from '../types/refComponentMount'; import type { UrlListenerAdapter } from '../types/urlListener'; import type { MergeNativeRuntimeAdapterInput, NativeRuntimeAdapterState } from '../types/nativeRuntimeAdapter'; /** * 读取当前 native 适配器状态。 * @returns 已注册状态;未注册时为 null */ declare function getNativeRuntimeAdapter(): NativeRuntimeAdapterState | null; /** * 是否已注册 native 运行时适配器(mergeNativeAdapter 传入非 null 对象后即为 true)。 * @returns 是否已注册 */ declare function isNativeRuntimeAdapterRegistered(): boolean; /** * 命令式挂载是否已通过 native 适配器声明为支持(refComponentMount 为非 null 对象)。 * @returns 是否支持 */ declare function isNativeRefComponentMountSupported(): boolean; /** * 命令式挂载是否已通过 native 适配器声明为不支持(refComponentMount === null)。 * @returns 是否明确不支持 */ declare function isNativeRefComponentMountDisabled(): boolean; /** * URL 监听是否已通过 native 适配器声明为支持。 * @returns 是否支持 */ declare function isNativeUrlListenerSupported(): boolean; /** * URL 监听是否已通过 native 适配器声明为不支持。 * @returns 是否明确不支持 */ declare function isNativeUrlListenerDisabled(): boolean; /** * 解析 native 适配器中的 refComponentMount 字段。 * @returns unset | none | 适配器 */ declare function resolveNativeRefComponentMount(): { kind: 'unset'; } | { kind: 'none'; } | { kind: 'adapter'; adapter: RefComponentMountAdapter; }; /** * 解析 native 适配器中的 urlListener 字段。 * @returns unset | none | 适配器 */ declare function resolveNativeUrlListener(): { kind: 'unset'; } | { kind: 'none'; } | { kind: 'adapter'; adapter: UrlListenerAdapter; }; /** * 注册 / 更新 / 清空非浏览器运行时统一适配器。 * @param input - 适配器片段;传 null 清空 * @returns 当前状态快照 */ declare function mergeNativeAdapter(input: MergeNativeRuntimeAdapterInput | null): NativeRuntimeAdapterState | null; /** * 重置 native 运行时适配器(主要用于测试)。 */ declare function resetNativeAdapter(): void; /** * 仅清除 native 适配器中的 refComponentMount 字段。 */ declare function clearNativeRefComponentMount(): void; /** * 仅清除 native 适配器中的 urlListener 字段。 */ declare function clearNativeUrlListener(): void; export { mergeNativeAdapter, resetNativeAdapter, getNativeRuntimeAdapter, isNativeRuntimeAdapterRegistered, isNativeRefComponentMountSupported, isNativeRefComponentMountDisabled, isNativeUrlListenerSupported, isNativeUrlListenerDisabled, resolveNativeRefComponentMount, resolveNativeUrlListener, clearNativeRefComponentMount, clearNativeUrlListener, };