/**
 * @module        console/routes/chat
 * @description   Chat sessions — REST CRUD 走 ChatService；流式 daemon 消息走 delivery-local emitter
 *
 * @layer         console
 *
 * v0.50.1 重构：
 *   - CRUD (list / create / get / getMessages / delete / interrupt) 改走 ChatService
 *   - 流式事件（chunk.text / tool_use / tool_update / complete）走本模块内的 EventEmitter
 *     —— 这些事件是 SSE 连接作用域内的短暂广播，不属于跨服务共享的 DomainEvent
 *   - 干掉原 console/sse/eventBus.ts（所有 chat-specific publish 挪到 chatBus 里）
 */
import { Hono } from 'hono';
import type { Logger } from '../../core/logger.js';
import type { ChatService } from '../../services/ChatService.js';
export type ChatMessageBlock = {
    type: 'text';
    text: string;
} | {
    type: 'tool_use';
    id: string;
    title: string;
    kind: string;
    status: string;
};
export interface ChatMessage {
    id: string;
    role: 'user' | 'assistant' | 'error';
    content: string;
    blocks?: ChatMessageBlock[];
    truncated?: boolean;
    ts: string;
    status?: 'streaming' | 'complete' | 'error';
    /** v0.51.8: 附件绝对路径列表（仅 user 消息有） */
    attachments?: string[];
}
export declare function createChatRoute(log: Logger, chat: ChatService): Hono;
export declare function createChatStreamRoute(): Hono;
//# sourceMappingURL=chat.d.ts.map