import { IEntityEditorContext } from "../core/types/HubEntityEditor";
import { Catalog } from "../search/Catalog";
import type { IArcGISContext } from "../types/IArcGISContext";
import { HubItemEntity } from "../core/HubItemEntity";
import { InitiativeEditorType } from "./_internal/initiativeEditorTypes";
import { IWithMetricsBehavior } from "../core/behaviors/IWithMetricsBehavior";
import { IConvertToCardModelOpts, IHubCardViewModel } from "../core/types/IHubCardViewModel";
import { IEditorConfig } from "../core/schemas/types";
import { IWithCardBehavior } from "../core/behaviors/IWithCardBehavior";
import { IWithCatalogBehavior } from "../core/behaviors/IWithCatalogBehavior";
import { IWithEditorBehavior } from "../core/behaviors/IWithEditorBehavior";
import { IWithSharingBehavior } from "../core/behaviors/IWithSharingBehavior";
import { IWithStoreBehavior } from "../core/behaviors/IWithStoreBehavior";
import { IHubInitiative, IHubInitiativeEditor } from "../core/types/IHubInitiative";
import { IResolvedMetric } from "../core/types/Metrics";
/**
 * Hub Initiative Class
 */
export declare class HubInitiative extends HubItemEntity<IHubInitiative> implements IWithStoreBehavior<IHubInitiative>, IWithCatalogBehavior, IWithMetricsBehavior, IWithSharingBehavior, IWithCardBehavior, IWithEditorBehavior {
    private _catalog;
    /**
     * Private constructor so we don't have `new` all over the place. Allows for
     * more flexibility in how we create the HubInitiativeManager over time.
     * @param context
     */
    private constructor();
    /**
     * Catalog instance for this Initiative. Note: Do not hold direct references to this object; always access it from the Initiative.
     * @returns Catalog
     */
    get catalog(): Catalog;
    /**
     * Create an instance from an IHubInitiative object
     * @param json - JSON object to create a HubInitiative from
     * @param context - ArcGIS context
     * @returns
     */
    static fromJson(json: Partial<IHubInitiative>, context: IArcGISContext): HubInitiative;
    /**
     * Create a new HubInitiative, returning a HubInitiative instance.
     * Note: This does not persist the Initiative into the backing store
     * @param partialInitiative
     * @param context
     * @returns
     */
    static create(partialInitiative: Partial<IHubInitiative>, context: IArcGISContext, save?: boolean): Promise<HubInitiative>;
    /**
     * Fetch an Initiative from the backing store and return a HubInitiative instance.
     * @param identifier - slug or item id
     * @param context
     * @returns
     */
    static fetch(identifier: string, context: IArcGISContext): Promise<HubInitiative>;
    private static applyDefaults;
    /**
     * Apply a new state to the instance
     * @param changes
     */
    update(changes: Partial<IHubInitiative>): void;
    /**
     * Save the HubInitiative to the backing store.
     * Currently Initiatives are stored as Items in Portal
     * @returns
     */
    save(): Promise<void>;
    /**
     * Delete the HubInitiative from the store
     * set a flag to indicate that it is destroyed
     * @returns
     */
    delete(): Promise<void>;
    /**
     * Resolve a single metric for this metric
     * @param metricId
     * @returns
     */
    resolveMetric(metricId: string): Promise<IResolvedMetric>;
    /**
     * Convert the initiative entity into a card view model that
     * can be consumed by the suite of hub gallery components
     *
     * @param opts view model options
     */
    convertToCardModel(opts?: IConvertToCardModelOpts): IHubCardViewModel;
    getEditorConfig(i18nScope: string, type: InitiativeEditorType): Promise<IEditorConfig>;
    /**
     * Return the initiative as an editor object
     * @param editorContext
     * @returns
     */
    toEditor(editorContext?: IEntityEditorContext, include?: string[]): Promise<IHubInitiativeEditor>;
    /**
     * Load the initiative from the editor object
     * @param editor
     * @returns
     */
    fromEditor(editor: IHubInitiativeEditor): Promise<IHubInitiative>;
}
