/** * Helpers for building DM/security policy resolvers. */ import type { Config } from '../config/schema.js'; export declare function createScopedDmSecurityResolver(params: { channelKey: string; resolvePolicy: (account: ResolvedAccount) => string | undefined; resolveAllowFrom: (account: ResolvedAccount) => Array | undefined; defaultPolicy?: string; normalizeEntry?: (raw: string) => string; }): (ctx: { cfg: Config; accountId?: string; account: ResolvedAccount; }) => { policy: string; allowFrom: string[]; isAllowed: (senderId: string) => boolean; };