import { HTMLAttributes, PropsWithChildren, ReactNode, default as React } from 'react'; import { OverlayProps } from '../../'; import { SlideOverDirection, SlideOverWidthSize } from '../SlideOver'; export interface CartSidebarProps extends HTMLAttributes { /** * ID to find this component in testing tools (e.g.: cypress, * testing-library, and jest). */ testId?: string; /** * Title for the CartSidebar component. */ title?: string; /** * Represents the side that the CartSidebar comes from. */ direction?: SlideOverDirection; /** * Represents the size of the CartSidebar. */ size?: SlideOverWidthSize; /** * Total of item in the Cart. */ totalItems: number; /** * A React component that will be rendered as an icon on the Alert component. */ alertIcon?: ReactNode; /** * The content for Alert component. */ alertText?: string; /** * Props forwarded to the `Overlay` component. */ overlayProps?: OverlayProps; /** * Function called when Close Button is clicked. */ onClose: () => void; } declare function CartSidebar({ testId, title, size, direction, totalItems, children, alertIcon, alertText, overlayProps, onClose, ...otherProps }: PropsWithChildren): React.JSX.Element; export default CartSidebar; //# sourceMappingURL=CartSidebar.d.ts.map