import type * as React from 'react';
declare const MARK = "__semi_react_root__";
type CreateRootFn = (container: Element | DocumentFragment) => {
    render(children: React.ReactNode): void;
    unmount(): void;
};
type ContainerType = (Element | DocumentFragment) & {
    [MARK]?: ReturnType<CreateRootFn>;
};
export declare function render(node: React.ReactElement, container: ContainerType): void;
export declare function unmount(container: ContainerType): void;
/**
 * React 16/17/18: use ReactDOM.findDOMNode to resolve real DOM from component instance.
 * React 19: findDOMNode is removed; traverse Fiber tree to find DOM node.
 *
 * 注意：findDOMNode 可能返回 Text 节点，但我们只返回 Element 类型以保证类型安全。
 */
export declare function resolveDOM(instance: any): Element | null;
/**
 * React 16/17/18: ref is a top-level property on the element (element.ref).
 * React 19: ref is moved into element.props.ref.
 *
 * 使用版本检测来确定 ref 的位置，避免在 React 18 中错误地读取 props.ref。
 */
export declare function getRef(element: any): React.Ref<any> | null;
export {};
