interface RegistryBoundary { capture(): State; restore(state: State): void; equals?(left: State, right: State): boolean; } /** * 扩展实例工厂只能创建候选实例;注册表写入必须留在插件加载事务中。 * 工厂返回或抛错后都复验全局状态,避免无效候选留下注册、删除或清空副作用。 */ export declare function invokeExtensionFactoryWithRegistryBoundary(label: string, operation: () => Result, boundary: RegistryBoundary): Result; export {};