import { ReactNode } from 'react';
export type Side = 'left' | 'top' | 'right' | 'bottom';
/** Callback to dismiss an overlay panel */
export type OverlayDismissCallback = () => void;
/**
 * Actions context - stable functions and configuration that don't change.
 * Separating these from state prevents unnecessary re-renders when only state changes.
 */
export interface LayoutActionsContextValue {
    /** Register a panel on a specific side with initial size */
    registerPanel: (side: Side, size: number) => void;
    /** Unregister a panel from a specific side */
    unregisterPanel: (side: Side) => void;
    /** Update the size of a registered panel */
    updatePanelSize: (side: Side, size: number) => void;
    /** Set global dragging state (when any panel is being resized) */
    setDragging: (isDragging: boolean) => void;
    /** Mark the layout as ready (after initial mount) */
    markReady: () => void;
    /** Register an overlay panel's dismiss callback. Returns unregister function. */
    registerOverlayPanel: (dismiss: OverlayDismissCallback) => () => void;
    /** Dismiss all overlay panels */
    dismissOverlayPanels: () => void;
    /** Whether transitions are enabled for panels (stable config value) */
    hasTransition: boolean;
}
/** State context - reactive state that triggers re-renders */
export interface LayoutStateContextValue {
    panelSizes: Record<Side, number>;
    isDragging: boolean;
    isReady: boolean;
    hasOverlayPanels: boolean;
}
export declare const LayoutActionsContext: import("react").Context<LayoutActionsContextValue | null>;
export declare const LayoutStateContext: import("react").Context<LayoutStateContextValue | null>;
export declare function useLayoutActionsContext(): LayoutActionsContextValue | null;
export declare function useLayoutStateContext(): LayoutStateContextValue | null;
export interface LayoutProviderProps {
    children: ReactNode;
    /** Whether transitions are enabled for panels */
    hasTransition?: boolean;
}
export declare function LayoutProvider({ children, hasTransition, }: LayoutProviderProps): import("react/jsx-runtime").JSX.Element;
/**
 * Provider that resets the layout context for sub-components.
 * Used to prevent panels in nested Layouts from affecting parent layouts.
 */
export declare function LayoutContextReset({ children }: {
    children: ReactNode;
}): import("react/jsx-runtime").JSX.Element;
export interface LayoutPanelContextValue {
    /** Callback to change the panel's open state */
    onOpenChange: (isOpen: boolean) => void;
    /** Current open state of the panel */
    isOpen: boolean;
}
export declare const LayoutPanelContext: import("react").Context<LayoutPanelContextValue | null>;
export declare function useLayoutPanelContext(): LayoutPanelContextValue | null;
