/**
 * Chat / Agent SSE routes
 *
 * POST /api/chat       — send a message, await full response
 * POST /api/chat/stream — SSE stream of agent events with session persistence
 *
 * Single agent instance per server process (single-user v1).
 */
import type { FastifyInstance } from 'fastify';
import { AgentOrchestrator } from '../../agent/orchestrator.js';
import type { MemoryService } from '../../services/memory-service.js';
import type { WsHub } from '../ws-hub.js';
import type { AuthService, AuthUser } from '../../services/auth-service.js';
export declare function buildChatContextPrefix(context: string | undefined, user: AuthUser | undefined, agent: Pick<AgentOrchestrator, 'getWorkspaceManager'>, authService: AuthService): string;
export declare function registerChatRoutes(fastify: FastifyInstance, agent: AgentOrchestrator, wsHub: WsHub, authService: AuthService, memoryService?: MemoryService): Promise<void>;
