/// <reference types="node" />
import { IPermission } from '../../permission/type';
import { AnyPermissionNode, PermissionNode } from '../../types';
interface IQueryRole {
    currentPage: number;
    name?: string;
    description?: string;
    code?: string;
}
/**
 * 左侧菜单查询
 */
export declare const queryMenus: () => Promise<any[]>;
/**
 * 查询角色列表
 */
export declare const queryRoleList: (options?: IQueryRole) => Promise<any[]>;
/**
 * 查询分组
 */
export declare const queryGroups: (options: {
    nodeType: string;
    resourceId: string;
    path: string;
}) => Promise<{
    runtimeGroups: any;
    managementGroups: any;
}>;
/**
 * 创建/修改分组
 */
export declare const createOrUpdateGroup: (options?: {
    id: string;
    name: string;
    comment: string;
    roles: any[];
    fieldPermissions: any[];
    actionPermissions: any[];
    rowPermission: any;
    module: string;
    nodeType?: string;
    resourceId?: string;
    path?: string;
}) => Promise<unknown>;
/**
 * 修改访问权限组角色
 */
export declare const modifyRole: (options?: {
    name: string;
    roles: any[];
    module: string;
    id: string;
}) => Promise<Record<string, unknown>>;
/**
 * 修改管理权限组角色
 */
export declare const modifyManagementRole: (options?: {
    name: string;
    roles: any[];
    module: string;
    id: string;
}) => Promise<Record<string, unknown>>;
/**
 * 批量修改角色
 */
export declare const batchModifyRole: (options: {
    permissions: PermissionNode[];
    roles: {
        id: string;
    }[];
}) => Promise<{
    roles: any[];
}>;
/**
 * 查询菜单下的动作
 */
export declare const queryActionsByMenu: (node: AnyPermissionNode, groupId?: string | undefined) => Promise<{
    nodesJson: string;
}>;
/**
 * 查询权限组字段权限和行权限
 */
export declare const queryGroupData: (node: AnyPermissionNode, groupId?: string | undefined) => Promise<{
    fieldPermissions: any[];
    rowPermission: any;
}>;
/**
 * 查询数据权限
 */
export declare const queryDataPermission: (authGroupId: string) => Promise<IPermission[]>;
/**
 * 启用/禁用权限组
 */
export declare const activeOrCancelGroup: (id: string, value: boolean) => Promise<Record<string, unknown>>;
/**
 * 删除分组
 */
export declare const deleteGroupById: (id: string) => Promise<Record<string, unknown>>;
/**
 * 收集权限项
 */
export declare const collectionPermissionItems: (node: PermissionNode) => Promise<{
    id: string;
}>;
export {};
