import { EPermissionType, IResourcePermission, TRole, TRolesDict, TById } from '@ws-ui/shared';
export declare function createWithResource(name: string, resource: string, type: EPermissionType, action: IResourcePermission['name'], dict: TById): TById;
export declare function togglePrivilegePermission(id: string, resource: string, type: EPermissionType, permission: IResourcePermission['name'], dict: TById): TById;
export declare const toState: (rolesArray: TRole[]) => TRolesDict;
export declare const editRole: (id: string, newName: string, roles: TRolesDict) => TRolesDict;
