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