/** * Copyright (c) 2026-present, Goldman Sachs * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ import type { UserDataService } from '@finos/legend-application'; /** * Keys of what Marketplace keeps for the user in this browser, in Legend's user * data storage. */ export declare enum LEGEND_MARKETPLACE_USER_DATA_KEY { HOME_PAGE_DISMISSED_BANNER_IDS = "marketplace.home-page.dismissedBannerIds" } /** * How many closed banner ids to keep: past this, the oldest ones are dropped, so * the stored list can't grow without bound as banners come and go. */ export declare const USER_DATA_HOME_PAGE_DISMISSED_BANNER_IDS_LIMIT = 50; export declare class LegendMarketplaceUserDataHelper { static homePage_getDismissedBannerIds(service: UserDataService): string[]; /** * Remembers that the user closed the home page banner with this id. Returns the * ids of all the closed banners, newest first. */ static homePage_addDismissedBannerId(service: UserDataService, bannerId: string): string[]; } //# sourceMappingURL=LegendMarketplaceUserDataHelper.d.ts.map