import React, { PureComponent, ReactNode, CSSProperties } from 'react'; import PropTypes from 'prop-types'; import '@douyinfe/semi-foundation/lib/es/card/card.css'; import Meta from './meta'; export type Shadows = 'hover' | 'always'; export type { MetaProps } from './meta'; export type { CardGroupProps } from './cardGroup'; export interface CardProps { /** Operation group at the bottom of the card content area */ actions?: ReactNode[]; /** Card content area inline style */ bodyStyle?: CSSProperties; /** Whether there is an outer border */ bordered?: boolean; /** Style class name */ className?: string; children?: React.ReactNode; /** Cover */ cover?: ReactNode; /** Additional additions to the right of the title */ headerExtraContent?: ReactNode; /** Custom end of page */ footer?: ReactNode; /** Whether there is an edge between the bottom of the page and the content area */ footerLine?: boolean; /** Inline style at the end of the page */ footerStyle?: CSSProperties; /** Custom head */ header?: ReactNode; /** Whether there is an edge line between the head and the content area */ headerLine?: boolean; /** Head inline style */ headerStyle?: CSSProperties; /** Whether to preload */ loading?: boolean; /** Set shadow */ shadows?: Shadows; /** Card inline style */ style?: CSSProperties; /** Title */ title?: ReactNode; /** aria label */ 'aria-label'?: string; } declare class Card extends PureComponent { static Meta: typeof Meta; static propTypes: { actions: PropTypes.Requireable; bodyStyle: PropTypes.Requireable; bordered: PropTypes.Requireable; children: PropTypes.Requireable; className: PropTypes.Requireable; cover: PropTypes.Requireable; footer: PropTypes.Requireable; footerLine: PropTypes.Requireable; footerStyle: PropTypes.Requireable; header: PropTypes.Requireable; headerExtraContent: PropTypes.Requireable; headerLine: PropTypes.Requireable; headerStyle: PropTypes.Requireable; loading: PropTypes.Requireable; shadows: PropTypes.Requireable; style: PropTypes.Requireable; title: PropTypes.Requireable; 'aria-label': PropTypes.Requireable; }; static defaultProps: { bordered: boolean; footerLine: boolean; headerLine: boolean; loading: boolean; }; renderHeader: () => ReactNode; renderCover: () => ReactNode; renderBody: () => ReactNode; renderFooter: () => ReactNode; render(): ReactNode; } export default Card;