import { TreeItem } from '@/lib/useUser';
interface GroupTreeItem extends TreeItem {
    objectId: string;
    pId: string | null;
}
interface Response {
    message: string;
}
declare type PromiseResponse = Promise<Response>;
interface UpdateGroupParams {
    objectId?: string;
    parentId?: string;
    name: string;
    key: string;
    userIds: string[];
}
export declare const alterGroup: (data: UpdateGroupParams) => PromiseResponse;
export declare const deleteGroup: (id: string) => PromiseResponse;
export declare const getGroupTree: (keyword?: string) => Promise<GroupTreeItem[]>;
export declare const getGroupsForUser: (userId: string) => Promise<string[]>;
export {};
