import React from 'react'; import { IPopupPosition, IStackPosition, ModalSize, AnimationStartPosition } from '../../types'; export interface IContentProps { children: React.ReactNode; /** this property will override default Header component*/ header?: React.ReactNode; /** this property will override default Footer component*/ footer?: React.ReactNode; /** set modal content style. content = header + body + footer*/ contentStyle?: React.CSSProperties; /** set body style. body part is the children of the Modal when using */ bodyStyle?: React.CSSProperties; /** close event, trigger after the complete of animation */ onAfterClose?: () => void; /** whether to prohibit the modal focus trap feature */ suppressFocusTrap?: boolean; /** modal has two type: stack, popup, just like StackWrapper and PopupWrapper before. If this property is omitted, position in stack way by default*/ position?: IPopupPosition | IStackPosition; /** we have three preset modalSize to apply to the content container*/ modalSize?: ModalSize; /** whether to show the modal */ visible: boolean; /** zIndex of the modal*/ zIndex?: number; /** divider under Header component */ isHeaderDividerShow?: boolean; /** divider on Footer component */ isFooterDividerShow?: boolean; animationStartPosition?: AnimationStartPosition; onVisibleChanged: (visible: boolean) => void; } export declare type ContentRef = { focus: () => void; changeActive: (next: boolean) => void; }; declare const Content: React.ForwardRefExoticComponent>; export default Content;