import type { ApiRoute } from '@mastra/core/server'; import type { FactorySandbox } from '@mastra/core/workspace'; import type { RouteAuth } from '../../routes/route.js'; import type { AuditEmitter } from '../../storage/domains/audit/domain.js'; import type { IntakeStorage } from '../../storage/domains/intake/base.js'; import type { GitLabIntegrationBase } from './integration.js'; import type { GitLabWebhookHandlerOptions, ParsedGitLabWebhook } from './webhook.js'; export interface BuildGitLabRoutesOptions { gitlab?: GitLabIntegrationBase; auth?: RouteAuth; intake?: IntakeStorage; sandbox?: FactorySandbox; emitAudit?: AuditEmitter['emit']; webhookSecret?: string; ingestFactoryEvent?: (event: ParsedGitLabWebhook) => Promise; /** Mounted agent controller; enables webhook delivery to subscribed sessions. */ controller?: GitLabWebhookHandlerOptions['controller']; } export declare function buildGitLabRoutes(options: BuildGitLabRoutesOptions): ApiRoute[]; //# sourceMappingURL=routes.d.ts.map