/** * Copyright (c) 2026-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 { EditorStore } from '@finos/legend-application-studio'; import { RawLambda } from '@finos/legend-graph'; import { LambdaEditorState } from '@finos/legend-query-builder'; import { type GeneratorFn } from '@finos/legend-shared'; import type { DataSpaceExecutableTemplate } from '@finos/legend-extension-dsl-data-space/graph'; /** * A fully empty `RawLambda` (no body, no parameters) is not valid PURE and * will fail to compile once it's part of the graph — e.g. the very first * `analyzeMappingModelCoverage` call made when opening Query Builder sends * the full graph model to engine for compilation. A newly created inline * executable therefore needs a self-contained, always-valid placeholder * query (an empty string literal) rather than `stub_RawLambda()`. */ export declare const stub_DataSpaceExecutableTemplateQuery: () => RawLambda; export declare class DataSpaceExecutableTemplateLambdaState extends LambdaEditorState { readonly editorStore: EditorStore; readonly executableTemplate: DataSpaceExecutableTemplate; lastComputedLambdaString: string | undefined; constructor(editorStore: EditorStore, executableTemplate: DataSpaceExecutableTemplate); get lambdaId(): string; convertLambdaGrammarStringToObject(): GeneratorFn; convertLambdaObjectToGrammarString(options?: { pretty?: boolean | undefined; preserveCompilationError?: boolean | undefined; }): GeneratorFn; } export declare class DataSpaceExecutableTemplateStateCache { readonly editorStore: EditorStore; private readonly states; constructor(editorStore: EditorStore); getLambdaState(executableTemplate: DataSpaceExecutableTemplate): DataSpaceExecutableTemplateLambdaState; } //# sourceMappingURL=DataSpaceExecutableTemplateState.d.ts.map