import { type AgentIntegrationConfig, type AgentIntegrationDisconnectWarning, type RichCardComponentType } from '@n8n/api-types'; import { Logger } from '@n8n/backend-common'; import { OutboundHttp } from '@n8n/backend-network'; import type { ActionEvent, Message } from 'chat'; import { InstanceSettings } from 'n8n-core'; import { AgentRepository } from '../../../repositories/agent.repository'; import { AgentChatIntegration, type AgentChannelPreconditionContext, type AgentIntegrationRemovalContext, type AgentChatIntegrationContext, type ActionDecisionMessageParams, type PlatformActionParams, type PlatformContextQueryParams, type BridgeMessageContextParams, type BridgeResumeExecutionContext, type UnauthenticatedWebhookContext, type UnauthenticatedWebhookResponse } from '../../agent-chat-integration'; import { ChannelRateLimitGuard } from '../../channel-rate-limit.guard'; import { type NormalizeComponentsContext, type SuspendComponent } from '../../component-mapper'; import type { IntegrationActionResult, ReplyExpectation } from '../../integration-tool-types'; import { WhatsAppOptionPagesStore } from './whatsapp-option-pages.store'; import { WhatsAppSetupTelemetryService } from './whatsapp-setup-telemetry.service'; import { WhatsAppWebhookVerificationStore } from './whatsapp-webhook-verification.store'; import type { DecodedThread, OriginInput } from '../../integration-origin-support'; export declare class WhatsAppIntegration extends AgentChatIntegration { private readonly logger; private readonly agentRepository; private readonly instanceSettings; private readonly channelRateLimitGuard; private readonly webhookVerification; private readonly outboundHttp; private readonly optionPages; private readonly setupTelemetry; readonly type = "whatsapp"; readonly credentialTypes: string[]; readonly displayLabel = "WhatsApp"; readonly displayIcon = "whatsapp"; readonly internal = true; readonly builderGuidance: { capabilities: string[]; useIntegrationWhen: string[]; useNodeToolWhen: string[]; }; readonly supportedComponents: readonly RichCardComponentType[]; readonly contextToolDefinitions: import("../../integration-tool-types").IntegrationContextQueryDefinition[]; readonly actionToolDefinitions: import("../../integration-tool-types").IntegrationActionDefinition[]; readonly actionToolGuidance: string[]; readonly disableStreaming = true; readonly deleteActionMessageBeforeResume = false; readonly defaultSessionIdleTimeoutMinutes = 30; constructor(logger: Logger, agentRepository: AgentRepository, instanceSettings: InstanceSettings, channelRateLimitGuard: ChannelRateLimitGuard, webhookVerification: WhatsAppWebhookVerificationStore, outboundHttp: OutboundHttp, optionPages: WhatsAppOptionPagesStore, setupTelemetry: WhatsAppSetupTelemetryService); executeContextQuery(params: PlatformContextQueryParams): Promise; executeAction(params: PlatformActionParams): Promise; assertStartupPreconditions(ctx: AgentChannelPreconditionContext): Promise; onBeforeConnect(ctx: AgentChatIntegrationContext): Promise; onRemove(ctx: AgentIntegrationRemovalContext): Promise; private lookUpDisplayPhoneNumber; handleUnauthenticatedWebhook(context: UnauthenticatedWebhookContext): UnauthenticatedWebhookResponse | undefined; createResumeExecutionContext(params: { thread: BridgeMessageContextParams['thread']; logger: BridgeMessageContextParams['logger']; agentId: string; integration?: AgentIntegrationConfig; }): Promise; shouldDownloadAttachments(integration: AgentIntegrationConfig): boolean; buildOriginDraft(_input: OriginInput, decoded: DecodedThread): import("../../integration-origin-support").OriginDraft; resolveEpisodicScope(): null; createAdapter(ctx: AgentChatIntegrationContext): Promise; getFailedSendReport(message: Message): { messageId: string; chatNotice: string; } | undefined; getReplyExpectation({ message }: { message: Message; }): ReplyExpectation; formatActionDecisionMessage({ approved, selectedLabel, user, }: ActionDecisionMessageParams): string; normalizeComponents(components: SuspendComponent[], context: NormalizeComponentsContext): Promise; private foldButtonsIntoSelect; private createTemplateFetcher; private paginateSelect; private buildMoreOption; claimAction(event: ActionEvent): Promise; private createAdapterLogger; private extractAccessToken; private extractPhoneNumberId; private extractBusinessAccountId; private extractAppSecret; private deriveVerifyToken; private requireCredentialField; }