import type { AgentMemoryEntrySourceDto, AgentMemoryEntrySourceKind, AgentMessageAuthor } from '@n8n/api-types'; import type { AgentMessageOrigin } from '../entities/agent-message.entity'; declare const INTEGRATION_KINDS: readonly ['slack', 'linear', 'discord', 'telegram', 'whatsapp', 'teams']; export type IntegrationSourceKind = (typeof INTEGRATION_KINDS)[number]; export declare function isIntegrationKind(type: string | undefined): type is IntegrationSourceKind; export interface MemorySourceMessage { author?: AgentMessageAuthor; origin?: AgentMessageOrigin; } export declare function chatSourceOwner(resourceId: string): { kind: AgentMemoryEntrySourceKind; userId: string; } | undefined; export declare function buildMemoryEntrySource(resourceId: string, message: MemorySourceMessage, userNames: ReadonlyMap, viewerId: string): AgentMemoryEntrySourceDto | undefined; export {};