// @flow import * as React from "react"; import type { ReactComponentStyled } from "styled-components"; import type { Globals } from "../../common/common.js.flow"; import typeof CardSectionHeaderType from "./CardSectionHeader/index.js.flow"; import typeof CardSectionContentType from "./CardSectionContent/index.js.flow"; export type Props = {| +children: React$Node, +expandable?: boolean, +initialExpanded?: boolean, +onClose?: () => void | Promise, +onExpand?: () => void | Promise, ...Globals, |}; declare export var StyledCardSection: ReactComponentStyled; export type ContextType = {| +expandable: boolean, +expanded: boolean, +handleToggleSection: () => void, +onKeyDownHandler: (ev: SyntheticKeyboardEvent) => void | Promise, |}; declare export var CardSectionContext: React.Context; declare export default React$ComponentType; declare export var CardSectionHeader: CardSectionHeaderType; declare export var CardSectionContent: CardSectionContentType;