import type { ReactNode } from '../core'; import { flushSyncWork, batchedUpdates } from './reconcile'; export interface RootOptions { identifierPrefix?: string; onRecoverableError?: (error: unknown) => void; onCaughtError?: (error: unknown) => void; onUncaughtError?: (error: unknown) => void; } export interface Root { render(children: ReactNode): void; unmount(): void; } export declare function createRoot(container: Element | DocumentFragment, options?: RootOptions): Root; export declare function hydrateRoot(container: Element | Document, initialChildren: ReactNode, options?: RootOptions): Root; export { flushSyncWork as flushSync, batchedUpdates };