/**
 * 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, type PlainObject, ActionState } from '@finos/legend-shared';
import type { EditorStore } from '../editor/EditorStore.js';
import { EntityDiff, type ProjectConfiguration, Project, Review, type Patch, ReviewApproval } from '@finos/legend-server-sdlc';
import type { Entity } from '@finos/legend-storage';
export declare class ProjectReviewReport {
    diffs: EntityDiff[];
    fromEntities: Entity[];
    toEntities: Entity[];
    private fromConfig;
    private toConfig;
    fromToProjectConfig: [PlainObject<ProjectConfiguration>, PlainObject<ProjectConfiguration>] | undefined;
    constructor(diffs: EntityDiff[]);
    addFromConfig(config: PlainObject<ProjectConfiguration>): void;
    addToConfig(config: PlainObject<ProjectConfiguration>): void;
    private createFromToConfigIfPossible;
    findFromEntity(entityPath: string): Entity | undefined;
    addFromEntity(entity: Entity): ProjectReviewReport;
    addToEntity(entity: Entity): ProjectReviewReport;
    findToEntity(entityPath: string): Entity | undefined;
}
export declare class ProjectReviewerStore {
    readonly editorStore: EditorStore;
    currentProjectId?: string | undefined;
    currentProject?: Project | undefined;
    currentPatch?: Patch | undefined;
    currentReviewId?: string | undefined;
    currentReview?: Review | undefined;
    buildReviewReportState: ActionState;
    reviewReport?: ProjectReviewReport | undefined;
    fetchCurrentReviewState: ActionState;
    approveState: ActionState;
    reviewApproval: ReviewApproval | undefined;
    closeState: ActionState;
    commitState: ActionState;
    reOpenState: ActionState;
    constructor(editorStore: EditorStore);
    get projectId(): string;
    get patchReleaseVersionId(): string | undefined;
    get reviewId(): string;
    get review(): Review;
    get approvalString(): string | undefined;
    setProjectIdAndReviewId(projectId: string, reviewId: string): void;
    initialize(): void;
    initializeEngine(): GeneratorFn<void>;
    openReviewChange(diff: EntityDiff): void;
    refresh(): void;
    /**
     * To save load time, this function will levergae the reviewId coming from the URl and doesn't
     * assume the review has completed been fetched
     */
    fetchReviewComparison(): GeneratorFn<void>;
    fetchProject(): GeneratorFn<void>;
    fetchReviewApprovals(): GeneratorFn<void>;
    fetchReview(): GeneratorFn<void>;
    approveReview(): GeneratorFn<void>;
    commitReview(): GeneratorFn<void>;
    reOpenReview(): GeneratorFn<void>;
    closeReview(): GeneratorFn<void>;
}
//# sourceMappingURL=ProjectReviewerStore.d.ts.map