import type { AgentMessageIntegrationOrigin } from '@n8n/api-types'; import type { Message, Thread } from 'chat'; import type { IntegrationMessageSubject } from './integration-tool-types'; export interface OriginInput { thread: Thread; message: Message; subject?: IntegrationMessageSubject; } export type DecodedThread = Record; export type OriginDraft = Record & { type: AgentMessageIntegrationOrigin['type']; }; export interface OriginNames { channelName?: string; teamName?: string; } export declare function text(value: unknown): string | undefined; export declare function fetchChannelName(thread: Thread): Promise; export declare function fetchSnapshotName(lookup: () => Promise): Promise;