import type { DatabaseEntityId, EntityId, SchemaEntityId, TableEntityId } from "../../../../../admin/permissions/types";
import { DataPermission, DataPermissionValue } from "../../../../../admin/permissions/types";
import type { GroupsPermissions } from "../../../../../../metabase-types/api";
export declare function getPermissionPath(groupId: number, databaseId: number, permission: DataPermission, nestedPath?: Array<string | number>): (string | number)[];
export declare function getRawPermissionsGraphValue(permissions: GroupsPermissions, groupId: number, entityId: EntityId, permission: DataPermission): any;
export declare const getSchemasPermission: (permissions: GroupsPermissions, groupId: number, { databaseId }: DatabaseEntityId, permission: DataPermission) => DataPermissionValue;
export declare const getTablesPermission: (permissions: GroupsPermissions, groupId: number, { databaseId, schemaName }: SchemaEntityId, permission: DataPermission) => DataPermissionValue;
export declare const getFieldsPermission: (permissions: GroupsPermissions, groupId: number, { databaseId, schemaName, tableId }: TableEntityId, permission: DataPermission) => DataPermissionValue;
export declare const getEntityPermission: (permissions: GroupsPermissions, groupId: number, entityId: EntityId, permission: DataPermission) => DataPermissionValue;
