export interface CustomBlock { type: 'custom'; data: Record; raw: string; } export interface TextBlock { type: 'text'; content: string; } export type ContentBlock = CustomBlock | TextBlock; /** * 解析消息内容,将 ```custom-component 代码块识别为自定义组件, * 其余部分作为普通 Markdown 文本。 * * AI prompt 示例: * 请使用以下格式输出自定义组件: * ```custom-component * {"type": "chart", "chartType": "bar", ...} * ``` */ export declare function parseCustomBlocks(content: unknown): ContentBlock[]; //# sourceMappingURL=parse-custom-blocks.d.ts.map