/** * 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 { ActionState, type PlainObject } from '@finos/legend-shared'; import type { LegendDataCubeApplicationStore } from '../../LegendDataCubeBaseStore.js'; import type { LegendDataCubeDataCubeEngine } from '../../LegendDataCubeDataCubeEngine.js'; import { LocalFileDataCubeSourceFormat } from '../../model/LocalFileDataCubeSource.js'; import { LegendDataCubeSourceLoaderState } from './LegendDataCubeSourceLoaderState.js'; import type { DataCubeAlertService } from '@finos/legend-data-cube'; import type { PersistentDataCube } from '@finos/legend-graph'; import { LegendDataCubeSourceBuilderType } from './LegendDataCubeSourceBuilderState.js'; export declare class LocalFileDataCubeSourceLoaderState extends LegendDataCubeSourceLoaderState { readonly processState: ActionState; fileName?: string | undefined; fileFormat?: LocalFileDataCubeSourceFormat | undefined; fileData?: string | undefined; previewText?: string | undefined; rowCount?: number | undefined; columnNames?: string[] | undefined; constructor(application: LegendDataCubeApplicationStore, engine: LegendDataCubeDataCubeEngine, alertService: DataCubeAlertService, sourceData: PlainObject, persistentDataCube: PersistentDataCube, onSuccess: () => Promise, onError: (error: unknown) => Promise); setFileName(fileName: string | undefined): void; setColumnNames(columnNames: string[] | undefined): void; setFileFormat(format: LocalFileDataCubeSourceFormat | undefined): void; setFileData(data: string | undefined): void; setRowCount(count: number | undefined): void; setPreviewText(text: string | undefined): void; reset(): void; processFile(file: File | undefined): Promise; get isValid(): boolean; get label(): LegendDataCubeSourceBuilderType; load(source: PlainObject | undefined): Promise>; } //# sourceMappingURL=LocalFileDataCubeSourceLoaderState.d.ts.map