/** * HTTP for the item feed. Every handler is the same shape: resolve the tenant, * validate the path ids, delegate to a `CommentsDomain` service method, map its * result status to a status code, then emit audit. */ import type { PubSub } from '@mastra/core/events'; import type { ApiRoute } from '@mastra/core/server'; import type { RouteAuth } from '../../../routes/route.js'; import type { AuditEmitter } from '../audit/domain.js'; import type { FactoryProjectsStorage } from '../projects/base.js'; import type { WorkItemsStorage } from '../work-items/base.js'; import type { WorkItemCommentsStorage } from './base.js'; import type { CommentsDomain } from './domain.js'; export interface CommentRouteDependencies { domain: CommentsDomain; auth: RouteAuth; comments: WorkItemCommentsStorage; workItems: WorkItemsStorage; projects: FactoryProjectsStorage; pubsub: PubSub; audit?: AuditEmitter; } export declare function buildCommentRoutes(dependencies: CommentRouteDependencies): ApiRoute[]; //# sourceMappingURL=routes.d.ts.map