import React, { FC, HTMLAttributes, ReactNode } from 'react';
export interface IIconType {
icon: string;
text: string;
disabled?: boolean;
}
export interface ISubTitleType extends Pick, 'style'> {
/** 锚点id */
id?: string;
/** 自定义类名 */
className?: string;
/**
* @description 标题名称
* @default 默认标题
*/
title?: ReactNode;
/** 标题文字(一般无需设置,仅作为标题点击事件的参数) */
titleText?: string;
/** 是否默认展开/收起 */
defaultOpen?: boolean;
/** 是否展开/收起,受控 */
open?: boolean;
/** 子标题类型 */
level?: '2' | '3' | '4';
/**
* @description 标题类型,outline-线式,solid-填充式(面式)
* @default outline
*/
type?: 'outline' | 'solid';
/**
* @description 是否支持展开收起样式
* @default false
*/
expandable?: boolean;
/**
* @description 展开收起的回调
* @param expanded 展开收起状态
*/
onExpand?: (expanded: boolean) => void;
/** 宽度 */
width?: string;
/** 是否展示底部边框(仅二级标题生效) */
showLine?: boolean;
/** 标题右侧插槽 */
leftSlotsDom?: React.ReactNode;
/** 右侧元素插槽 */
rightSlotDom?: React.ReactNode;
/** 标题右侧插槽距离右侧的偏移量 */
rightSlotDomOffset?: number;
/** 标题点击回调 */
onTitleClick?: (titleText?: string) => void;
}
declare const SubTitle: FC;
export default SubTitle;