/** * API route registration. * * Extracted from start.ts (Task 11 Part B). * Registers ALL REST endpoints, middleware, static file serving, * and wires Dashboard + Wiki agents via AgentProcessManager. */ import express from 'express'; import { AgentLoop } from '../../agent/index.js'; import { GatewayToolExecutor } from '../../agent/gateway-tool-executor.js'; import type { MessageRouter } from '../../gateways/index.js'; import type { SQLiteDatabase } from '../../sqlite.js'; import type { ApiServer } from '../../api/index.js'; import type { OAuthManager } from '../../auth/index.js'; import type { DiscordGateway } from '../../gateways/discord.js'; import type { SlackGateway } from '../../gateways/slack.js'; import type { MAMAConfig } from '../config/types.js'; import type { MAMAApiShape } from './types.js'; import type { AgentEventBus } from '../../multi-agent/agent-event-bus.js'; export interface RegisterApiRoutesParams { config: MAMAConfig; apiServer: ApiServer; eventBus: AgentEventBus; oauthManager: OAuthManager; mamaApi: MAMAApiShape; messageRouter: MessageRouter; agentLoop: AgentLoop; toolExecutor: GatewayToolExecutor; discordGateway: DiscordGateway | null; slackGateway: SlackGateway | null; graphHandler: (req: express.Request, res: express.Response) => Promise; /** mama-core getAdapter() — used for DB queries */ getAdapter: () => { prepare: (sql: string) => { get: (...args: unknown[]) => unknown; all: (...args: unknown[]) => unknown[]; }; exec: (sql: string) => void; }; /** Sessions DB for validation */ sessionsDb?: SQLiteDatabase; } export declare function registerApiRoutes(params: RegisterApiRoutesParams): Promise; //# sourceMappingURL=api-routes-init.d.ts.map