import * as React from "react"; import ReactModal from "react-modal"; import { SlideFromLeftRight, SlideFromTopBottom } from "../../common-types"; export type DrawerProps = DrawerBaseLeftRight | DrawerBaseTopBottom; export interface DrawerBaseLeftRight extends DrawerBaseProps { width?: string; /** * Which direction the drawer will appear from. * @default left * @param {String('left'|'right')} */ slideFrom?: SlideFromLeftRight; } export interface DrawerBaseTopBottom extends DrawerBaseProps { height?: string; /** * Which direction the drawer will appear from. * @default left * @param {String('top'|'bottom')} */ slideFrom?: SlideFromTopBottom; } interface DrawerBaseProps extends Omit { background?: string; /** * When true, there will be a gap between the drawer and the viewport. */ floating?: boolean; zIndex?: number; onRequestClose?: () => void; /** * Portal target, HTML element. If not set, portal is not used. */ portalTarget?: HTMLElement | null; } export declare const Drawer: React.FC; export {};