import { type ReactElement, type ReactNode } from "react"; import { type IUiResizableSidebarState } from "./types.js"; /** * @internal */ export interface IUiResizableSidebarProps { /** * Width state to render. Defaults to the state of the nearest {@link UiResizableSidebarProvider}; one * of the two is required. `setWidth` is called once per gesture with the width to commit: on pointer * release, or on every key press. */ state?: IUiResizableSidebarState; /** * Pixels one arrow key press resizes by. Defaults to 10. */ keyboardStep?: number; dataTestId?: string; /** * The sidebar content. Render {@link UiResizableSidebarHandle} as a direct child of the sidebar, next to * the content, so it spans the sidebar's full height and tracks its right edge. */ children: ReactNode; } /** * Drag-to-resize wrapper for a sidebar. Owns only the in-progress drag: the sidebar keeps its committed * width during the gesture while the handle shows the indicated width, and the width is committed on * release. Escape cancels the drag. * * @remarks * The width transition can be kept in step with sibling layout transitions by setting the * `--resizable-sidebar-slide-duration` custom property on the sidebar element. A sidebar collapsed to * zero width is inert, so its collapse toggle cannot restore it: render a second * {@link UiResizableSidebarCollapseToggle} or a {@link UiResizableSidebarExpandTrigger} outside it. * * @internal */ export declare function UiResizableSidebar({ state, keyboardStep, dataTestId, children, }: IUiResizableSidebarProps): ReactElement; //# sourceMappingURL=UiResizableSidebar.d.ts.map