import React from 'react';
type TaskStatus = 'success' | 'pending' | 'loading' | 'error';
type TaskItem = {
key: string;
title?: string;
content: React.ReactNode | React.ReactNode[];
status: TaskStatus;
};
/**
* TaskList 组件属性
*/
type ThoughtChainProps = {
/** 任务列表数据 */
items: TaskItem[];
/** 自定义类名 */
className?: string;
/** 受控模式:指定当前展开的任务项 key 数组 */
expandedKeys?: string[];
/** 受控模式:展开状态变化时的回调函数 */
onExpandedKeysChange?: (expandedKeys: string[]) => void;
};
/**
* TaskList 组件
*
* 显示任务列表,支持展开/折叠、状态管理等功能
* 支持受控和非受控两种模式
*
* @example
* ```tsx
* // 非受控模式
*
*
* // 受控模式
*
* ```
*/
export declare const TaskList: React.MemoExoticComponent<({ items, className, expandedKeys, onExpandedKeysChange, }: ThoughtChainProps) => React.JSX.Element>;
export {};