/**
 * 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 Hashable } from '@finos/legend-shared';
import { type AbstractProperty, type ValueSpecification, type PureModel, AbstractPropertyExpression, DerivedProperty, VariableExpression, type ObserverContext } from '@finos/legend-graph';
import type { QueryBuilderState } from './QueryBuilderState.js';
export declare const getPropertyChainName: (propertyExpression: AbstractPropertyExpression, humanizePropertyName: boolean) => string;
export declare const getPropertyPath: (propertyExpression: AbstractPropertyExpression) => string;
/**
 * TODO: this currently ignores the multiplicity of the parameters
 * we should check for the multiplicity and adaptively produce
 * either simple primitive/enum instance value or collection
 */
export declare const generateValueSpecificationForParameter: (parameter: VariableExpression, graph: PureModel, initializeDefaultValue: boolean, observerContext: ObserverContext) => ValueSpecification;
export declare class QueryBuilderDerivedPropertyExpressionState {
    queryBuilderState: QueryBuilderState;
    path: string;
    title: string;
    readonly propertyExpression: AbstractPropertyExpression;
    readonly derivedProperty: DerivedProperty;
    readonly parameters: VariableExpression[];
    readonly propertyExpressionState: QueryBuilderPropertyExpressionState;
    constructor(queryBuilderState: QueryBuilderState, propertyExpression: AbstractPropertyExpression, propertyExpressionState: QueryBuilderPropertyExpressionState);
    get property(): AbstractProperty;
    get parameterValues(): ValueSpecification[];
    get isValid(): boolean;
}
export declare class QueryBuilderPropertyExpressionState implements Hashable {
    readonly queryBuilderState: QueryBuilderState;
    readonly propertyExpression: AbstractPropertyExpression;
    path: string;
    title: string;
    isEditingDerivedPropertyExpression: boolean;
    derivedPropertyExpressionStates: QueryBuilderDerivedPropertyExpressionState[];
    /**
     * If at least one property in the chain is of multiplicity greater than 1,
     * the property might have multiple values and can cause row explosions.
     *
     * In other words, saying `$x.b == 1` is not quite accurate if `$x.b` is multi
     * is multi. Instead, we should do something like `$x.b->exists($x1 | $x1 == 1)`
     */
    requiresExistsHandling: boolean;
    constructor(queryBuilderState: QueryBuilderState, propertyExpression: AbstractPropertyExpression);
    get isValid(): boolean;
    setIsEditingDerivedProperty(val: boolean): void;
    private initDerivedPropertyExpressionStates;
    get hashCode(): string;
}
//# sourceMappingURL=QueryBuilderPropertyEditorState.d.ts.map