import { DrawerTriggerProps } from "./DrawerTrigger.mjs"; import { DrawerHeaderProps } from "./DrawerHeader.mjs"; import { DrawerTitleProps } from "./DrawerTitle.mjs"; import { DrawerDescriptionProps } from "./DrawerDescription.mjs"; import { DrawerContentProps } from "./DrawerContent.mjs"; import { DrawerActions } from "./DrawerActions.mjs"; import { AriaLandmarkRole } from "@react-aria/landmark"; import { DialogProps } from "react-aria-components/Dialog"; export interface DrawerProps extends Omit { /** * Size of the component. Which values exist is defined by the theme and listed * in the "Appearance" section of the component's documentation. */ size?: 'xsmall' | 'small' | 'medium' | (string & {}); /** * Visual variant of the component. Which values exist is defined by the theme * and listed in the "Appearance" section of the component's documentation. */ variant?: string; /** * Whether the drawer is open (controlled). Works with or without * `Drawer.Trigger`. Inside a trigger, this takes precedence over the * trigger's state. * @default undefined */ open?: boolean; /** * Whether the drawer is open by default (uncontrolled). * @default undefined */ defaultOpen?: boolean; /** * Handler that is called when the drawer's open state changes, e.g. when * it is closed via the close button, Escape or because another * drawer opens. When the drawer is inside a `Drawer.Trigger` that owns the * state, set this on the trigger instead. */ onOpenChange?: (isOpen: boolean) => void; /** * Whether pressing the escape key closes the modal. * @default true */ keyboardDismissable?: boolean; /** * Show the close button. */ closeButton?: boolean; /** * The `role` property sets the ARIA landmark role for this component, * enhancing accessibility by clarifying its purpose to assistive technologies. * * Only ARIA landmark roles (e.g., "complementary", "search", "banner", "navigation") * can be used to ensure proper semantic context. Defaults to `"complementary"` * for secondary content (e.g., filters, sidebar) that supports the main content. * @default "complementary" */ role?: Exclude; } export declare const Drawer: { ({ children, size, variant, open, defaultOpen, onOpenChange, keyboardDismissable, closeButton, role, "aria-label": ariaLabel, ...props }: DrawerProps): import("react").JSX.Element; Trigger: ({ open, children, ...props }: DrawerTriggerProps) => import("react").JSX.Element; Header: ({ children }: DrawerHeaderProps) => import("react").JSX.Element; Title: ({ children }: DrawerTitleProps) => import("react").JSX.Element; Description: ({ children }: DrawerDescriptionProps) => import("react").JSX.Element; Content: ({ variant, size, children, bleed }: DrawerContentProps) => import("react").JSX.Element; Actions: ({ variant, size, children }: DrawerActions) => import("react").JSX.Element; };