import { Permission } from "../../core/resources/permissions/permission.resource";
import { PermissionPackageToPermission } from "../../core/resources/permissions/permission-package-to-permission.resource";
import { PermissionDto } from "../../core/types/permission-dto";
import { PermissionType } from "../../core/resources/enums/permission-enums";
import { WithIndexer } from "../../../../fd-toolbox-core/server/types/with-indexer";
export declare function getUserRoleIdsToRoleLevels(): Promise<WithIndexer<WithIndexer<number>>>;
export declare function saveRoleToPermissionsToCache(rolePackageToPermissions: WithIndexer<string[]>, ids: string[], type: PermissionType): Promise<WithIndexer<string[]>>;
export declare function getRoleToPermissionList(): Promise<any>;
export declare function getUserPermissionCacheKey(type: PermissionType, userId: string): Promise<string>;
export declare function getUserResourcePermissionCacheKey(type: PermissionType, resourceName: string, userId: string): Promise<string>;
export declare function saveUserPermissionsToMemoryCache(userPermissionKey: string, type: PermissionType, userPermissions: WithIndexer<PermissionDto>): Promise<void>;
export declare function getUserRoleIdsToRolePermissionLevels(userId: string): Promise<any>;
export declare function savePackageToPermissionsToCache(rolePackageToPermissions: WithIndexer<string[]>, ids: string[], type: PermissionType): Promise<WithIndexer<string[]>>;
export declare function getPermission(resourceId: string): Promise<Permission>;
export declare function addPackageToPermissions(rolesToPermissions: Map<string, string[]>, packageToPermissionList: PermissionPackageToPermission[], type: PermissionType): Promise<void>;
export declare function mapRawPermissionToPermission(): Promise<Permission[]>;
export declare function savePermissionsToCache(): Promise<void>;
export declare function getRoleToPackages(ids: string[]): Promise<WithIndexer<string[]>>;
