import { EventEmitter, OnInit, OnDestroy, ChangeDetectorRef } from '@angular/core';
import { MJActionCategoryEntity } from '@memberjunction/core-entities';
import { ActionExplorerStateService } from '../../services/action-explorer-state.service';
import { BaseAngularComponent } from '@memberjunction/ng-base-types';
import * as i0 from "@angular/core";
export declare class NewCategoryPanelComponent extends BaseAngularComponent implements OnInit, OnDestroy {
    StateService: ActionExplorerStateService;
    private cdr;
    Categories: MJActionCategoryEntity[];
    PreselectedParentId: string | null;
    CategoryCreated: EventEmitter<MJActionCategoryEntity>;
    Close: EventEmitter<void>;
    IsOpen: boolean;
    IsSaving: boolean;
    Name: string;
    Description: string;
    ParentID: string | null;
    Errors: {
        [key: string]: string;
    };
    private destroy$;
    constructor(StateService: ActionExplorerStateService, cdr: ChangeDetectorRef);
    ngOnInit(): void;
    ngOnDestroy(): void;
    private resetForm;
    onClose(): void;
    onBackdropClick(event: MouseEvent): void;
    validate(): boolean;
    onSave(): Promise<void>;
    getParentOptions(): Array<{
        text: string;
        value: string | null;
    }>;
    private getCategoryPath;
    static ɵfac: i0.ɵɵFactoryDeclaration<NewCategoryPanelComponent, never>;
    static ɵcmp: i0.ɵɵComponentDeclaration<NewCategoryPanelComponent, "mj-new-category-panel", never, { "Categories": { "alias": "Categories"; "required": false; }; "PreselectedParentId": { "alias": "PreselectedParentId"; "required": false; }; }, { "CategoryCreated": "CategoryCreated"; "Close": "Close"; }, never, never, false, never>;
}
//# sourceMappingURL=new-category-panel.component.d.ts.map