import type { Config } from '@xopcai/xopc/config/schema.js'; import type { SlackChannelRule } from '../schema/config-schema.js'; import type { ResolvedSlackAccount } from '../state/accounts.js'; import type { SlackRuntimeCaches } from '../state/caches.js'; export interface SlackChannelPolicyResolution { rule?: SlackChannelRule; wildcardRule?: SlackChannelRule; effectiveRule?: SlackChannelRule; explicitlyAllowed: boolean; explicitlyDisabled: boolean; } export declare function resolveSlackChannelRule(params: { account: ResolvedSlackAccount; channelId: string; channelName?: string; teamId?: string; isEnterpriseInstall?: boolean; }): SlackChannelPolicyResolution; export declare function matchesSlackSenderList(params: { entries: readonly string[]; senderId: string; senderName?: string; teamId?: string; allowNameMatching?: boolean; }): boolean; export interface SlackAccessDecision { allowed: boolean; reason?: string; pairingRequired?: boolean; channelRule?: SlackChannelRule; ambientOnly?: boolean; } export declare function evaluateSlackInboundAccess(params: { cfg: Config; account: ResolvedSlackAccount; channelId: string; channelType: 'im' | 'mpim' | 'channel' | 'group'; channelName?: string; senderId: string; senderName?: string; teamId?: string; isEnterpriseInstall?: boolean; isBotSender: boolean; threadTs?: string; caches: SlackRuntimeCaches; }): SlackAccessDecision;