/**
 * 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 Type, type ValueSpecification, VariableExpression, SimpleFunctionExpression } from '@finos/legend-graph';
import { type Hashable, type GeneratorFn, type PlainObject, ActionState } from '@finos/legend-shared';
import type { QueryBuilderState } from './QueryBuilderState.js';
import { LambdaEditorState } from './shared/LambdaEditorState.js';
export declare abstract class QueryBuilderConstantExpressionState implements Hashable {
    readonly queryBuilderState: QueryBuilderState;
    readonly uuid: string;
    variable: VariableExpression;
    constructor(queryBuilderState: QueryBuilderState, variable: VariableExpression);
    get hashCode(): string;
    buildLetExpression(): SimpleFunctionExpression;
    abstract buildLetAssignmentValue(): ValueSpecification;
}
export declare class QueryBuilderSimpleConstantExpressionState extends QueryBuilderConstantExpressionState implements Hashable {
    value: ValueSpecification;
    constructor(queryBuilderState: QueryBuilderState, variable: VariableExpression, value: ValueSpecification);
    changeValSpecType(type: Type): void;
    setValueSpec(value: ValueSpecification): void;
    buildLetAssignmentValue(): ValueSpecification;
    get hashCode(): string;
}
export declare class QueryBuilderConstantLambdaEditorState extends LambdaEditorState {
    readonly queryBuilderState: QueryBuilderState;
    calculatedState: QueryBuilderCalculatedConstantExpressionState;
    convertingLambdaToStringState: ActionState;
    constructor(calculatedState: QueryBuilderCalculatedConstantExpressionState);
    buildEmptyValueSpec(): PlainObject;
    get lambdaId(): string;
    convertLambdaGrammarStringToObject(): GeneratorFn<void>;
    convertLambdaObjectToGrammarString(options?: {
        pretty?: boolean | undefined;
        preserveCompilationError?: boolean | undefined;
    } | undefined): GeneratorFn<void>;
}
export declare class QueryBuilderCalculatedConstantExpressionState extends QueryBuilderConstantExpressionState implements Hashable {
    value: PlainObject;
    lambdaState: QueryBuilderConstantLambdaEditorState;
    constructor(queryBuilderState: QueryBuilderState, variable: VariableExpression, value: PlainObject);
    setLambdaState(val: QueryBuilderConstantLambdaEditorState): void;
    setValue(val: PlainObject): void;
    buildLetAssignmentValue(): ValueSpecification;
}
export declare class QueryBuilderConstantsState implements Hashable {
    readonly queryBuilderState: QueryBuilderState;
    showConstantPanel: boolean;
    constants: QueryBuilderConstantExpressionState[];
    selectedConstant: QueryBuilderConstantExpressionState | undefined;
    constructor(queryBuilderState: QueryBuilderState);
    get isEmpty(): boolean;
    setShowConstantPanel(val: boolean): void;
    addConstant(val: QueryBuilderConstantExpressionState): void;
    removeConstant(val: QueryBuilderConstantExpressionState): void;
    setSelectedConstant(val: QueryBuilderConstantExpressionState | undefined): void;
    isValueSpecConstant(value: ValueSpecification): boolean;
    convertToCalculated(val: QueryBuilderSimpleConstantExpressionState): void;
    get hashCode(): string;
}
export declare const cloneQueryBuilderConstantLambdaEditorState: (state: QueryBuilderConstantLambdaEditorState) => QueryBuilderConstantLambdaEditorState;
//# sourceMappingURL=QueryBuilderConstantsState.d.ts.map