/** * Copyright IBM Corp. 2025 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. */ import React from 'react'; export declare const DEBOUNCE_DELAY = 100; export interface ResizerProps extends React.HTMLAttributes { /** Whether the resizer handle is oriented horizontally (resize up/down) or vertically (resize left/right). */ orientation: 'horizontal' | 'vertical'; /** * Called on every resize movement with the delta (px) from the drag/key start position. * When provided the component becomes fully controlled — sibling sizes are NOT updated automatically. */ onResize?: (event: React.MouseEvent | React.KeyboardEvent, delta: number) => void; /** Called once when a resize interaction ends (mouse-up or key-up debounced). Receives the resizer ref. */ onResizeEnd?: (event: React.MouseEvent | React.KeyboardEvent, ref: React.RefObject) => void; /** Called on double-click. When provided the default reset-to-initial-sizes behavior is suppressed. */ onDoubleClick?: (event: React.MouseEvent) => void; /** Additional className applied to the root element. */ className?: string; /** Optional children rendered inside the handle (e.g. custom drag icons). */ children?: React.ReactNode; /** Thickness of the handle in px. Defaults to 4. */ thickness?: number; } export declare const Resizer: React.ForwardRefExoticComponent>;