import { ComponentType, PropsWithChildren, ReactNode } from 'react'; export interface RootSiblingManager { update(id: string, element: ReactNode, callback?: () => void): void; destroy(id: string, callback?: () => void): void; } export default function wrapRootComponent(Root: ComponentType, renderSibling?: (sibling: ReactNode) => ReactNode): { Root: ComponentType; manager: RootSiblingManager; };