/**
 * 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 GeneratorFn } from '@finos/legend-shared';
import { type ParserError, type CompilationError, SourceInformation, CodeCompletionResult } from '@finos/legend-graph';
/**
 * This is not strictly meant for lambda. The idea is to create an editor that allows
 * editing _something_ but allows user to edit via text.
 */
export declare abstract class LambdaEditorState {
    readonly uuid: string;
    lambdaPrefix: string;
    lambdaString: string;
    parserError?: ParserError | undefined;
    compilationError?: CompilationError | undefined;
    typeAheadEnabled: boolean;
    constructor(lambdaString: string, lambdaPrefix: string, options?: {
        typeAheadEnabled?: boolean | undefined;
    });
    abstract get lambdaId(): string;
    get fullLambdaString(): string;
    setLambdaString(val: string): void;
    setTypeAhead(val: boolean): void;
    clearErrors(options?: {
        preserveCompilationError?: boolean | undefined;
    }): void;
    setCompilationError(compilationError: CompilationError | undefined): void;
    setParserError(parserError: ParserError | undefined): void;
    processSourceInformation(sourceInformation: SourceInformation): SourceInformation;
    extractLambdaString(fullLambdaString: string): string;
    abstract convertLambdaGrammarStringToObject(): GeneratorFn<void>;
    abstract convertLambdaObjectToGrammarString(options?: {
        pretty?: boolean | undefined;
        preserveCompilationError?: boolean | undefined;
    }): GeneratorFn<void>;
    getCodeComplete(input: string): Promise<CodeCompletionResult>;
}
//# sourceMappingURL=LambdaEditorState.d.ts.map