import type { EntityId } from "../../../../../frontend/src/metabase/admin/permissions/types";
import { DataPermission, DataPermissionValue } from "../../../../../frontend/src/metabase/admin/permissions/types";
import type Database from "../../../../../frontend/src/metabase-lib/v1/metadata/Database";
import type { GroupsPermissions, NativePermissions } from "../../../../../frontend/src/metabase-types/api";
export declare function shouldRestrictNativeQueryPermissions(permissions: GroupsPermissions, groupId: number, entityId: EntityId, _permission: DataPermission, value: DataPermissionValue, _database: Database): boolean;
export declare function upgradeViewPermissionsIfNeeded(permissions: GroupsPermissions, groupId: number, entityId: EntityId, value: NativePermissions, database: Database): GroupsPermissions;
