import { type ReactElement } from "react"; /** * @internal */ export interface IUiResizableSidebarCollapseToggleProps { isCollapsed: boolean; onToggle: () => void; /** * Accessible name while the sidebar is expanded, e.g. "Collapse sidebar". */ collapseLabel: string; /** * Accessible name while the sidebar is collapsed, e.g. "Expand sidebar". */ expandLabel: string; dataTestId?: string; } /** * Collapses and expands a {@link UiResizableSidebar}. Render it in the sidebar header, in a collapsed * rail, or anywhere under the same state, e.g. as the restore control of a fully hidden sidebar. * * @remarks * Under a {@link UiResizableSidebarProvider}, a toggle that becomes unusable by its own activation (it is * unmounted, or turns inert with a completely hidden sidebar) hands keyboard focus to another toggle under * the same provider, even one that mounts later. A sidebar that hides completely therefore needs a second * toggle outside it, e.g. in a page header. * * @internal */ export declare function UiResizableSidebarCollapseToggle({ isCollapsed, onToggle, collapseLabel, expandLabel, dataTestId, }: IUiResizableSidebarCollapseToggleProps): ReactElement; //# sourceMappingURL=UiResizableSidebarCollapseToggle.d.ts.map