import { Drawer as BaseDrawer } from '@base-ui/react/drawer'; import { type ReactNode } from 'react'; export interface DrawerProps extends Omit { open: boolean; onClose: () => void; /** The header's heading, which names the drawer. Without one, name it with `aria-label`. */ title?: ReactNode; /** A line under the title. */ description?: ReactNode; /** Adds a back arrow before the title, for a view the drawer opened over its first, such as * a form; the drawer stays one drawer rather than another stacking on it. */ onBack?: (() => void) | undefined; /** Names the back arrow; defaults to the provider's `back`. */ backLabel?: string | undefined; /** Actions along the bottom edge, such as Cancel and Save; they stay in view as the body scrolls. */ footer?: ReactNode; /** The edge it slides in from, and the way a swipe dismisses it. */ side?: 'left' | 'right'; /** Its width: pixels, or any CSS length such as `'100%'` for as wide as the space allows. */ width?: number | string; /** Adds a handle on the inner edge that drags, or arrow keys move, to change the width. */ resizable?: boolean; /** The narrowest a drag leaves it, in pixels. */ minWidth?: number; /** False ignores the backdrop and Escape, so typed input isn't lost to a stray * click; the drawer's own buttons still close it. */ dismissible?: boolean; /** True dims the page behind it, locks its scroll and keeps focus inside; * `'trap-focus'` dims and keeps focus but leaves the page's scroll alone, as an * embedded panel wants; false is a side panel the page stays usable beside. */ modal?: boolean | 'trap-focus'; /** False drops the header's close button, for a drawer whose footer closes it. */ closeButton?: boolean; /** Covers its nearest positioned ancestor instead of the window, as a drawer * inside an embedded panel does. */ contained?: boolean; /** Keeps the content mounted while closed, so its scroll and state survive. */ keepMounted?: boolean; /** False drops the body's padding, for content that fills the drawer edge to edge. */ padded?: boolean; /** On the body. */ className?: string; children: ReactNode; } /** A panel that slides in from an edge over the page. A swipe toward that edge, * Escape or a press outside closes it, and focus returns where it was. * * It leaves the host's fixed chrome uncovered: it starts below * `--app-inset-top` (a top bar's height), and at its widest leaves the strip * `--app-inset-start` (a start-side sidebar's width, at least 2.5rem). Set both * on the document root. */ export declare function Drawer({ open, onClose, title, description, onBack, backLabel, footer, side, width, resizable, minWidth, dismissible, modal, closeButton, contained, keepMounted, padded, className, children, ...popupProps }: DrawerProps): import("react").JSX.Element;