/** * 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 NetworkClient, type PlainObject } from '@finos/legend-shared'; import { type DataCubeSpecification, type CompletionItem } from '@finos/legend-data-cube'; import { type V1_RelationType, type PersistentDataCube, type V1_Lambda, type V1_ValueSpecification } from '@finos/legend-graph'; type GetValueSpecificationCodeInput = { value: PlainObject; pretty?: boolean | undefined; }; type ParseValueSpecificationInput = { code: string; returnSourceInformation?: boolean | undefined; }; type QueryTypeaheadInput = { code: string; baseQuery?: PlainObject; }; type GetQueryRelationReturnTypeInput = { query: PlainObject; }; type GetQueryCodeRelationReturnTypeInput = { code: string; baseQuery?: PlainObject; }; type ExecutionInput = { query: PlainObject; debug?: boolean | undefined; }; type ExecutionResult = { result: string; executedQuery: string; executedSQL: string; }; type InfrastructureInfo = { currentUser?: string | undefined; gridClientLicense?: string | undefined; queryServerBaseUrl?: string | undefined; hostedApplicationBaseUrl?: string | undefined; }; export declare class LegendREPLServerClient { private readonly networkClient; constructor(networkClient: NetworkClient); get baseUrl(): string; private get dataCube(); getInfrastructureInfo(): Promise; getQueryTypeahead(input: QueryTypeaheadInput): Promise; parseValueSpecification(input: ParseValueSpecificationInput): Promise>; getValueSpecificationCode(input: GetValueSpecificationCodeInput): Promise; getBaseSpecification(): Promise>; getQueryRelationReturnType(input: GetQueryRelationReturnTypeInput): Promise>; getQueryCodeRelationReturnType(input: GetQueryCodeRelationReturnTypeInput): Promise>; executeQuery(input: PlainObject): Promise; publishQuery(query: PlainObject, queryStoreBaseUrl: string): Promise>; } export {}; //# sourceMappingURL=LegendREPLServerClient.d.ts.map