/** * 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 LegendREPLServerClient } from './LegendREPLServerClient.js'; import { DataCubeEngine, type DataCubeSource, type DataCubeExecutionOptions } from '@finos/legend-data-cube'; import { TDSExecutionResult, type V1_AppliedFunction, type V1_Lambda, type V1_ValueSpecification } from '@finos/legend-graph'; import { LogEvent, type PlainObject, type TimingsRecord, type StopWatch } from '@finos/legend-shared'; import { LegendREPLDataCubeSource } from './LegendREPLDataCubeSource.js'; import type { LegendREPLApplicationStore } from '../application/LegendREPLApplicationStore.js'; export declare class LegendREPLDataCubeEngine extends DataCubeEngine { private readonly _application; private readonly _client; constructor(application: LegendREPLApplicationStore, client: LegendREPLServerClient); processSource(sourceData: PlainObject): Promise; getDataFromSource(source?: DataCubeSource): PlainObject; finalizeTimingRecord(stopWatch: StopWatch, timings?: TimingsRecord): TimingsRecord | undefined; parseValueSpecification(code: string, returnSourceInformation?: boolean): Promise; getValueSpecificationCode(value: V1_ValueSpecification, pretty?: boolean): Promise; getQueryTypeahead(code: string, baseQuery: V1_Lambda, context: DataCubeSource | PlainObject): Promise; getQueryRelationReturnType(query: V1_Lambda, source: DataCubeSource): Promise<{ columns: { name: string; type: string; }[]; }>; getQueryCodeRelationReturnType(code: string, baseQuery: V1_ValueSpecification, source: DataCubeSource): Promise<{ columns: { name: string; type: string; }[]; }>; executeQuery(query: V1_Lambda, source: DataCubeSource, options?: DataCubeExecutionOptions | undefined): Promise<{ result: TDSExecutionResult; executedQuery: string; executedSQL: string; executionTime: number; }>; buildExecutionContext(source: DataCubeSource): V1_AppliedFunction | undefined; private _getQueryRelationType; logDebug(message: string, ...data: unknown[]): void; debugProcess(processName: string, ...data: [string, unknown][]): void; logInfo(event: LogEvent, ...data: unknown[]): void; logWarning(event: LogEvent, ...data: unknown[]): void; logError(event: LogEvent, ...data: unknown[]): void; logUnhandledError(error: Error): void; logIllegalStateError(message: string, error?: Error): void; getDocumentationEntry(key: string): import("@finos/legend-shared").DocumentationEntry | undefined; openLink(url: string): void; sendTelemetry(event: string, data: PlainObject): void; } //# sourceMappingURL=LegendREPLDataCubeEngine.d.ts.map