import { ComponentLike } from './types'; /** * Push a component onto the parent context stack. * Split into push/pop for hot path performance - avoids null check on every call. */ export declare const pushParentContext: (value: ComponentLike) => void; /** * Pop a component from the parent context stack. */ export declare const popParentContext: () => void; /** * Set or clear the parent context (backward compatibility wrapper). */ export declare const setParentContext: (value: ComponentLike | null) => void; /** * Get the current parent context component. * Return type is 'any' to avoid type dependency on Component. */ export declare const getParentContext: () => any; /** * Snapshot the parent-context stack contents (root-boundary only, never per-node). */ export declare function snapshotParentContext(): number[]; /** * Refill the parent-context stack from a snapshot. Keeps the `const` binding * (and the dev-mode `window.parentContext` reference) valid by mutating in place * rather than reassigning. At a balanced root boundary the depth is ~0. */ export declare function restoreParentContext(s: readonly number[]): void;