import type { CSSProperties } from 'react'; import type { AttachmentFile } from '../../../../MarkdownInputField/AttachmentButton/types'; import type { TaskListProps } from '../../../../TaskList/types'; import type { ToolCall } from '../../../../ToolUseBar/BarItem'; /** * 将 ```agentic-ui-task JSON 规范化为 TaskListProps(与 parseCode 解析结果一致) */ export declare function normalizeTaskListPropsFromJson(parsed: unknown): TaskListProps; /** * 将 ```agentic-ui-toolusebar JSON 规范化为 ToolUseBar 所需 props * * 支持 `tools` 数组;旧版 `items`(text/key,原为 SuggestionList)会映射为最小 ToolCall */ export interface NormalizedToolUseBarEmbedProps { tools: ToolCall[]; className?: string; style?: CSSProperties; light?: boolean; disableAnimation?: boolean; } export declare function normalizeToolUseBarPropsFromJson(parsed: unknown): NormalizedToolUseBarEmbedProps; export interface NormalizedFileMapEmbedProps { fileList: AttachmentFile[]; className?: string; style?: CSSProperties; } /** * 将 ```agentic-ui-filemap JSON 规范化为 FileMapView 所需 props * * @param parsed - 解析后的 JSON 数据 * @param normalizeFile - 可选的自定义文件规范化函数,接收原始 JSON 条目和默认生成的 * AttachmentFile,返回最终的 AttachmentFile;返回 null 时该条目被过滤掉 */ export declare function normalizeFileMapPropsFromJson(parsed: unknown, normalizeFile?: (raw: Record, defaultFile: AttachmentFile) => AttachmentFile | null): NormalizedFileMapEmbedProps;