import type { Fiber, FiberRoot } from '../../../core'; export declare class HydrationCursor { n: ChildNode | null; p: Node; e: ChildNode | null; constructor(parent?: Node, _s?: ChildNode | null, _e?: ChildNode | null); take(): ChildNode | null; head(): ChildNode | null; has(): boolean; } export type BoundaryInfo = [0 | 1, number, Comment, Comment]; export declare function beginHydration(_root: FiberRoot): void; export declare function endHydration(_root: FiberRoot): void; export declare function tryConsumeBoundary(_parent: Fiber): BoundaryInfo | null; export declare function advanceCursorPast(_parent: Fiber, _node: Node): void; export declare function getHydrationCursor(_hostFiber: Fiber): HydrationCursor | undefined; export declare function setHydrationCursor(_hostFiber: Fiber, _cursor: HydrationCursor): void; export declare function clearHydrationCursor(_hostFiber: Fiber): void; export declare function adoptHostDom(_fiber: Fiber, _parent: Fiber): boolean; export declare function adoptTextDom(_fiber: Fiber, _parent: Fiber, _text: string): boolean; export declare function findHostParent(fiber: Fiber): Fiber; export declare function installHydrationScrollGuard(): void; export declare function drainReplayQueue(): void; export interface HydrationBailoutError extends Error { f: Fiber | null; } export declare function isHydrationBailout(_error: unknown): _error is HydrationBailoutError; export declare function abortHydration(cause: unknown, fiber?: Fiber | null): never; export declare function hydrateRootImpl(): never;