/**
 * Wait for the createRoot detection to complete.
 * Call this before the first `renderToContainer` in async contexts.
 * @returns {Promise<void>}
 */
export function ensureReady(): Promise<void>;
/**
 * Render a React element into a container, using `createRoot` if available.
 *
 * @param {HTMLElement} container
 * @param {React.ReactNode} element
 * @returns {{ unmount: () => void }}
 */
export function renderToContainer(container: HTMLElement, element: React.ReactNode): {
    unmount: () => void;
};
/**
 * Unmount a React tree from a container.
 *
 * Looks up the handle from `renderToContainer`, or falls back to the legacy
 * `ReactDOM.unmountComponentAtNode` (for trees mounted outside the compat layer,
 * e.g. by Enzyme in tests).
 *
 * @param {HTMLElement} container
 * @returns {void}
 */
export function unmountFromContainer(container: HTMLElement): void;
