import type { EntityId } from "@metabase/embedding-sdk-react/dist/frontend/src/metabase/admin/permissions/types";
import { DataPermission, DataPermissionValue } from "@metabase/embedding-sdk-react/dist/frontend/src/metabase/admin/permissions/types";
import type Database from "@metabase/embedding-sdk-react/dist/frontend/src/metabase-lib/v1/metadata/Database";
import type { GroupsPermissions, NativePermissions } from "@metabase/embedding-sdk-react/dist/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;
