import type { HTMLAttributes, PointerEvent } from 'react';
import type { SxProp } from '../Layout/sx.js';
export type PanelDirection = 'horizontal' | 'vertical';
export interface PanelProps extends HTMLAttributes {
/** Initial size as a percentage of the group. */
defaultSize?: number;
/** Minimum size in percent. Default 10. */
minSize?: number;
/** Maximum size in percent. Default 90. */
maxSize?: number;
/**
* Style shorthand, as on Box: scalar values merge into inline style, a
* responsive value injects a scoped class.
*
* PanelGroup clones each panel with a style carrying its flex-basis, and
* withSx lets an explicit style win over sx — so sizing stays the group's
* to decide and a panel cannot pin its own width through sx.
*/
sx?: SxProp;
}
export declare const Panel: import("react").ForwardRefExoticComponent>;
interface HandleInternal {
direction: PanelDirection;
valueNow: number;
valueMin: number;
valueMax: number;
onResizeStart: (e: PointerEvent) => void;
onKeyResize: (dir: 1 | -1, toEdge?: boolean) => void;
}
export interface PanelResizeHandleProps extends HTMLAttributes {
disabled?: boolean;
/** One-off CSS, same as `Box`'s `sx` (scalar or responsive `{ base, sm, md, lg, xl }` map). */
sx?: SxProp;
/** @internal injected by PanelGroup */
__internal?: HandleInternal;
}
export declare const PanelResizeHandle: import("react").ForwardRefExoticComponent>;
export interface PanelGroupProps extends HTMLAttributes {
/** Layout axis. Default `'horizontal'`. */
direction?: PanelDirection;
/**
* One-off CSS, same as `Box`'s `sx`: each value may be a scalar or a
* responsive breakpoint map (`{ base, sm, md, lg, xl }`). Scalar-only sx
* merges into inline style; responsive sx injects a scoped class.
*/
sx?: SxProp;
}
export declare const PanelGroup: import("react").ForwardRefExoticComponent>;
/** No-op kept for drop-in compatibility with `react-resizable-panels`. */
export declare function disableGlobalCursorStyles(): void;
export {};