/** * * This file may have been modified by Bytedance Inc. (“Bytedance Inc.'s Modifications”). * All Bytedance Inc.'s Modifications are Copyright (year) Bytedance Inc.. * * This source code is licensed under the Apache license. * See LICENSE file in the project root for license information. * */ import * as React from 'react'; import CollapsePanel, { CollapsibleType } from './CollapsePanel'; export declare type ExpandIconPosition = 'left' | 'right' | undefined; export interface CollapseProps { activeKey?: Array | string | number; defaultActiveKey?: Array | string | number; accordion?: boolean; destroyInactivePanel?: boolean; onChange?: (key: string | string[]) => void; style?: React.CSSProperties; className?: string; bordered?: boolean; prefixCls?: string; expandIcon?: (panelProps: PanelProps) => React.ReactNode; expandIconPosition?: ExpandIconPosition; ghost?: boolean; collapsible?: CollapsibleType; } interface PanelProps { isActive?: boolean; header?: React.ReactNode; className?: string; style?: React.CSSProperties; showArrow?: boolean; forceRender?: boolean; disabled?: boolean; extra?: React.ReactNode; collapsible?: CollapsibleType; } interface CollapseInterface extends React.FC { Panel: typeof CollapsePanel; } declare const Collapse: CollapseInterface; export default Collapse;