TeaSpeak-Client/imports/shared-app/ui/modal/ModalGroupPermissionCopy.d.ts

31 lines
880 B
TypeScript
Raw Normal View History

2021-02-20 12:55:36 -05:00
import { ConnectionHandler } from "tc-shared/ConnectionHandler";
export declare type GroupInfo = {
id: number;
name: string;
type: "query" | "template" | "normal";
};
export interface GroupPermissionCopyModalEvents {
action_set_source: {
group: number;
};
action_set_target: {
group: number;
};
action_cancel: {};
action_copy: {
source: number;
target: number;
};
query_available_groups: {};
query_available_groups_result: {
groups: GroupInfo[];
};
query_client_permissions: {};
notify_client_permissions: {
createTemplateGroup: boolean;
createQueryGroup: boolean;
};
notify_destroy: {};
}
export declare function spawnModalGroupPermissionCopy(connection: ConnectionHandler, target: "channel" | "server", sourceGroup?: number, targetGroup?: number): void;