/** * 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 LightPersistentDataCube } from '@finos/legend-graph'; import { ActionState } from '@finos/legend-shared'; import type { LegendDataCubeBuilderStore } from './LegendDataCubeBuilderStore.js'; import { type DisplayState } from '@finos/legend-data-cube'; export declare const DATA_CUBE_LOADER_TYPEAHEAD_SEARCH_LIMIT = 50; export declare const DATA_CUBE_LOADER_DEFAULT_SEARCH_LIMIT = 10; export declare enum DataCubeSortByType { LAST_CREATED = "Last Created", LAST_VIEWED = "Last Viewed", LAST_UPDATED = "Last Updated" } export declare class LegendDataCubeLoaderState { private readonly _application; private readonly _store; private readonly _graphManager; private readonly _alertService; readonly display: DisplayState; readonly searchState: ActionState; readonly finalizeState: ActionState; searchResults: LightPersistentDataCube[]; selectedResult?: LightPersistentDataCube | undefined; searchText: string; showCurrentUserResultsOnly: boolean; showingDefaultResults: boolean; sortBy: DataCubeSortByType; constructor(store: LegendDataCubeBuilderStore); setSearchText(val: string): void; setSearchResults(results: LightPersistentDataCube[]): void; setSelectedResult(result: LightPersistentDataCube | undefined): void; setShowingDefaultResults(val: boolean): void; setShowCurrentUserResultsOnly(val: boolean): void; setSortBy(val: DataCubeSortByType): void; private getSearchSortBy; canPerformAdvancedSearch(searchText: string): boolean; searchDataCubes(searchText: string): Promise; finalize(): Promise; } //# sourceMappingURL=LegendDataCubeLoaderState.d.ts.map