import type { CSSProperties, DialogHTMLAttributes } from 'react';
import type { CSS } from '../utils/objectToCss';
export type DrawerStylingSelectors = 'root' | 'header' | 'content' | 'footer';
type DrawerSharedProps = {
classNames?: Partial>;
/**
* It is NOT recommended to use this prop, as the `classNames` prop is more flexible and has better performance.
* ___
* ***Note:** `styles[key]`'s value will be ignored if the related element's `style` property is provided.
*
* @example
* ```tsx
*
* Header
*
* ```
* In this case, `styles.header` will be ignored, the Drawer's header will have a blue background color.
*/
styles?: Partial>;
backdropProps?: {
/** @default rgba(0,0,0,0.4) */
background?: string;
/** @default 0 */
blur?: string | number;
/** @default 1 */
opacity?: number;
};
/**
* @default "modal"
* @description
* `modal`
*
* Act as a normal dialog.
* It will be rendered on the top-layer with a backdrop.
*
* Everything other than the drawer and
* its contents will be ignored by the browsers and can't be interact with.
* ___
* `non-modal`
*
* It has no backdrop and also doesn't render on the top-layer.
* It can not be closed by pressing the `ESC` key.
*
* The content below the non-modal drawer can be interacted.
*
* {@link https://developer.mozilla.org/docs/Web/HTML/Element/dialog#accessibility_considerations Read more}
*
*/
drawerMode?: 'non-modal' | 'modal';
/**
* If `true`, disable a default behavior of `