import { ReactNode } from 'react'; import { AdaptiveLayoutContext } from '../../contexts/AdaptiveLayoutContext'; import { AdaptiveLayoutProps } from './types'; /** * Context for sharing adaptive layout state and controls. */ type AdaptiveLayoutContextValue = unknown; type AdaptiveLayoutContextValueInternal = unknown; /** * Hook to access the adaptive layout context. * * @throws Error if used outside AdaptiveLayout */ export declare function useAdaptiveLayoutContext(): AdaptiveLayoutContextValue; /** * AdaptiveLayout is the main wrapper component for the adaptive layout system. * It provides content-aware layout selection, smooth morph transitions, and * CLS prevention for its children. * * @example * ```tsx * console.log('Mode changed:', mode)} * > * * {items.map(item => ( * {item.content} * ))} * * * ``` */ export declare function AdaptiveLayout({ children, initialMode, config, transitionConfig, clsConfig, constraints, onModeChange, onLayoutComputed, className, style, testId, }: AdaptiveLayoutProps): ReactNode; export { AdaptiveLayoutContext }; export type { AdaptiveLayoutContextValueInternal as AdaptiveLayoutContextValue };