/**
 * Messages API routes
 *
 * Folder-scoped messaging endpoints.
 * Auth: checks folder access via authService, admin/owner bypass.
 * @agent mentions trigger async agent invocation in the folder thread.
 */
import type { FastifyInstance } from 'fastify';
import { AuthService } from '../../services/auth-service.js';
import { MessageService } from '../../services/message-service.js';
import type { WsHub } from '../ws-hub.js';
import type { WorkspaceManager } from '../../core/workspace-manager.js';
import type { AgentOrchestrator } from '../../agent/orchestrator.js';
import type { HeartbeatService } from '../../services/heartbeat.js';
export declare function registerMessagesApiRoutes(fastify: FastifyInstance, messageService: MessageService, authService: AuthService, wsHub: WsHub, workspaceManager: WorkspaceManager, agent?: AgentOrchestrator | null, heartbeatService?: HeartbeatService | null): Promise<void>;
