import { CSSProperties, HTMLAttributes, ReactNode } from 'react';
export declare const SIDE_MODAL_BACKDROP = "rgba(0, 0, 0, 0.5)";
export interface SideModalProps extends Omit, 'children'> {
children?: ReactNode;
isOpen: boolean;
onClose: () => void;
/** A number is % of the viewport; a string any CSS width (`'704px'`). */
width?: number | string;
/** A number is px; a string any CSS length. */
minWidth?: number | string;
/** Which edge it slides in from. */
side?: 'left' | 'right';
/**
* Side padding of `SideModalHeader`/`Body`/`Footer` (px or CSS length). A pair is [below tablet, tablet and up].
* Default [24, 32].
*/
padding?: number | string | [number | string, number | string];
zIndex?: number;
dataCy?: string;
/** Below 768px the panel is 90% wide; this makes it 100%. */
fullWidthOnMobile?: boolean;
/**
* `dim`: modal, the page behind is covered and its scroll locked. `none`: a drawer, the page stays visible,
* scrollable and clickable while the panel is open.
*/
backdrop?: 'dim' | 'none';
/** Colour of the `dim` backdrop. */
backdropColor?: string;
/** Clicking the backdrop calls `onClose` (only with `backdrop="dim"`). */
closeOnDimmerClick?: boolean;
showCloseButton?: boolean;
/** `filled`: blue square in the corner (current default). `outlined`: round outlined button of the new design. */
closeButtonVariant?: 'filled' | 'outlined';
/** Accessible name of the panel, e.g. its title. Set it: without it screen readers announce an unnamed dialog. */
label?: string;
/** Id of the element that names the panel (its visible title). Use instead of `label`. */
labelledBy?: string;
/** Accessible name of the close button. */
closeLabel?: string;
containerStyle?: CSSProperties;
}
/**
* Panel that slides in from the right, rendered in a portal. Controlled: open it with `isOpen`; the close button,
* Escape and (by default) a click on the backdrop call `onClose`.
*/
export declare const SideModal: ({ children, isOpen, onClose, width, minWidth, side, padding, zIndex, dataCy, fullWidthOnMobile, backdrop, backdropColor, closeOnDimmerClick, showCloseButton, closeButtonVariant, label, labelledBy, closeLabel, className, containerStyle, ...props }: SideModalProps) => import('react').ReactPortal;
export default SideModal;