import type { SlackAgentAppManifest } from '@n8n/api-types'; import { Logger } from '@n8n/backend-common'; import { OutboundHttp } from '@n8n/backend-network'; import type { User } from '@n8n/db'; import { Cipher } from 'n8n-core'; import { CredentialsService } from '../../../../../credentials/credentials.service'; import { BadRequestError } from '../../../../../errors/response-errors/bad-request.error'; import { CacheService } from '../../../../../services/cache/cache.service'; import { UrlService } from '../../../../../services/url.service'; import { type SlackAppSetupSession } from './slack-setup.types'; import { AgentIntegrationManagementService } from '../../../agent-integration-management.service'; import type { Agent } from '../../../entities/agent.entity'; import { AgentRepository } from '../../../repositories/agent.repository'; export declare class SlackMethodsService { private readonly credentialsService; private readonly agentRepository; private readonly integrationManagementService; private readonly urlService; private readonly outboundHttp; private readonly cacheService; private readonly cipher; private readonly logger; constructor(credentialsService: CredentialsService, agentRepository: AgentRepository, integrationManagementService: AgentIntegrationManagementService, urlService: UrlService, outboundHttp: OutboundHttp, cacheService: CacheService, cipher: Cipher, logger: Logger); callSlackApi(method: string, params: Record | FormData, headers?: Record): Promise<({ ok: true; } & T) | { ok: false; error: string; }>; slackError(action: string, response: Record): BadRequestError; getAgent(agentId: string, projectId: string): Promise; buildManifest(agentName: string, projectId: string, agentId: string, options?: { redirectUrl?: string; managed?: boolean; }): SlackAgentAppManifest; callbackUrl(projectId: string, agentId: string): string; installUrl(oauthAuthorizeUrl: string, state: string, redirectUrl: string): string; storeSession(state: string, session: SlackAppSetupSession): Promise; connectBotCredential(agent: Agent, user: User, accessToken: string, session: SlackAppSetupSession): Promise; private deleteUnreferencedCredential; private clearManagedAppSession; private webhookUrl; private managedAppUrl; private credentialName; private sanitiseSlackAppName; }