import { BotInstance } from '../../BotInstance'; import { ChannelRoleListResponseInternal, ChannelRoleUpdateResponseInternal } from './channelRole.types'; export declare class ChannelRoleAPI { private self; constructor(self: BotInstance); /** * 频道角色权限详情 * @param channelId 频道id */ index(channelId: string): Promise; /** * 创建频道角色权限 * @param channelId 频道id, 如果频道是分组的id,会同步给所有sync=1的子频道 * @param type value的类型,只能为"role_id","user_id",不传则默认为"role_id" * @param value value的值 */ create(channelId: string, type: 'role_id' | 'user_id', value: string): Promise; update(channelId: string, type: 'role_id' | 'user_id', value: string, allow: number | undefined, deny?: number): Promise; /** * 删除频道角色权限 * @param channelId 频道id, 如果频道是分组的id,会同步给所有sync=1的子频道 * @param type value的类型,只能为"role_id","user_id",不传则默认为"role_id" * @param value value的值,默认为0 */ delete(channelId: string, type: string, value?: string): Promise; }