/** * Copyright (c) 2020-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 DepotServerClient } from '@finos/legend-server-depot'; import { ActionState, type GeneratorFn } from '@finos/legend-shared'; import type { DepotEntityWithOrigin } from '@finos/legend-storage'; import { ResolvedDataSpaceEntityWithOrigin } from '@finos/legend-extension-dsl-data-space/application'; import type { DataSpaceOption } from '@finos/legend-extension-dsl-data-space/application-query'; import type { LegendQueryApplicationStore } from '../LegendQueryBaseStore.js'; export type DataProductOption = { label: string; value: DepotEntityWithOrigin; }; export type DataProductWithLegacyOption = DataSpaceOption | DataProductOption; export declare const buildDataSpaceOrProductOption: (value: ResolvedDataSpaceEntityWithOrigin | DepotEntityWithOrigin) => DataProductWithLegacyOption; export declare class DataProductSelectorState { legacyDataProducts: ResolvedDataSpaceEntityWithOrigin[] | undefined; dataProducts: DepotEntityWithOrigin[] | undefined; readonly loadProductsState: ActionState; readonly depotServerClient: DepotServerClient; readonly applicationStore: LegendQueryApplicationStore; disableDataProducts: boolean; constructor(depotServerClient: DepotServerClient, applicationStore: LegendQueryApplicationStore); setLegacyDataProducts(val: ResolvedDataSpaceEntityWithOrigin[]): void; setDataProducts(val: DepotEntityWithOrigin[]): void; clearProducts(): void; get isFetchingProducts(): boolean; get isCompletelyLoaded(): boolean; loadProducts(): GeneratorFn; get dataProductOptions(): DataProductWithLegacyOption[]; } //# sourceMappingURL=DataProductSelectorState.d.ts.map