import { ChannelPermission } from "../channel-permission";
/**
 * Utility to determine if User has privileges to create a channel with the defined permissions
 * @export
 * @param channel
 * @param user
 * @returns {boolean}
 */
export function canCreateChannelV2(channel, user = {}) {
    const channelPermission = new ChannelPermission(channel);
    return channelPermission.canCreateChannel(user);
}
//# sourceMappingURL=can-create-channel-v2.js.map