import { ReactNode } from 'react'; import { DrawerProps } from 'antd'; import { ButtonProps } from '../Button'; type BottomDrawerAction = { label: string; onClick: () => void; btnProps?: ButtonProps; }; export interface BottomDrawerProps { open: boolean; onClose: () => void; type?: "full" | "float"; /** Drawer height. Bottom drawers size on the vertical axis (default 88). */ height?: number | string; /** Left-aligned description / status text (string is styled; nodes render as-is). */ label?: ReactNode; /** Right-aligned action buttons (e.g. Cancel + Confirm). */ actions?: BottomDrawerAction[]; /** * Where to mount the drawer. By default it portals to `document.body` (full * viewport width). Pass a positioned container (a node getter) or `false` to * render it inside a `position: relative` parent, scoped to that parent's width. */ getContainer?: DrawerProps["getContainer"]; /** * Whether the drawer grabs focus when it opens. Defaults to `false` so a bar * that appears while the user is typing (e.g. an unsaved-changes prompt) does * not steal focus and interrupt input. Set `true` to focus the drawer on open. */ autoFocus?: boolean; } /** * A slim slide-up drawer for user confirmation: a description on the left and * actions on the right. Shares SidePanel's slide-up + overlay behavior, but the * contents are intentionally trimmed to a single action row. */ declare const BottomDrawer: ({ open, onClose, type, height, label, actions, getContainer, autoFocus, }: BottomDrawerProps) => import("react/jsx-runtime").JSX.Element; export default BottomDrawer;