import * as React from 'react'; import * as PropTypes from 'prop-types'; import { OverlayProps } from '../Overlay/Overlay'; import { SidebarContainerProps } from './SidebarContainer'; import { SidebarCloseProps } from './SidebarClose'; import { SidebarHideProps } from './SidebarHide'; import { SidebarShowProps } from './SidebarShow'; import { AnimateProps, RestrictHideProps } from '../types'; export declare type LocalSidebarProps = { align?: 'left' | 'right'; backdropFade?: boolean; children: React.ReactNode | (({ initialFocusRef }: { initialFocusRef: React.RefObject; }) => React.ReactNode); className?: string; isVisible?: boolean; hide?(): void; hideCloseButton?: boolean; onClickClose?(): void; width?: string; } & RestrictHideProps & AnimateProps; export declare type SidebarProps = OverlayProps & LocalSidebarProps; export declare type SidebarComponents = { Container: React.FunctionComponent; Close: React.FunctionComponent; Hide: React.FunctionComponent; Show: React.FunctionComponent; }; export declare const Sidebar: React.FunctionComponent & SidebarComponents; export declare const sidebarPropTypes: { hideOnEsc: PropTypes.Requireable; hideOnClickOutside: PropTypes.Requireable; delay: PropTypes.Requireable; duration: PropTypes.Requireable; expand: PropTypes.Validator; fade: PropTypes.Requireable; slide: PropTypes.Validator; timing: PropTypes.Requireable; align: PropTypes.Requireable; backdropFade: PropTypes.Requireable; children: PropTypes.Requireable; className: PropTypes.Requireable; isVisible: PropTypes.Requireable; hide: PropTypes.Requireable<(...args: any[]) => any>; hideCloseButton: PropTypes.Requireable; onClickClose: PropTypes.Requireable<(...args: any[]) => any>; width: PropTypes.Requireable; }; export declare const sidebarDefaultProps: Partial; declare const C: React.FunctionComponent & SidebarComponents; export default C;