import { AfterViewInit, OnDestroy, OnChanges, QueryList } from '@angular/core';
import { FormBuilder } from '@angular/forms';
import { ColorService, ConfigService, ContextService, ErrorService } from '@nakedobjects/services';
import { DomainObjectViewModel, MenuViewModel, ParameterViewModel, ViewModelFactoryService } from '@nakedobjects/view-models';
import { BaseDialogComponent } from '../base-dialog/base-dialog.component';
import { EditParameterComponent } from '../edit-parameter/edit-parameter.component';
import { IActionHolder } from '../action/action.component';
import * as i0 from "@angular/core";
export declare class CreateNewDialogComponent extends BaseDialogComponent implements AfterViewInit, OnDestroy, OnChanges {
    private readonly colorService;
    private readonly configService;
    constructor(viewModelFactory: ViewModelFactoryService, error: ErrorService, context: ContextService, colorService: ColorService, configService: ConfigService, formBuilder: FormBuilder);
    parmComponents?: QueryList<EditParameterComponent>;
    set toCreateClass(cls: string);
    set parentMenu(parent: MenuViewModel | DomainObjectViewModel);
    get parentMenu(): MenuViewModel | DomainObjectViewModel;
    private pendingColor;
    get color(): string;
    toCreate: string;
    private saveButton;
    private cancelButton;
    private saveButtons;
    get actionHolders(): IActionHolder[];
    get parametersProperties(): (ParameterViewModel | string)[];
    isParameter(parmprop: ParameterViewModel | string): parmprop is ParameterViewModel;
    asParameter(parmprop: ParameterViewModel | string): ParameterViewModel;
    isProperty(parmprop: ParameterViewModel | string): boolean;
    asProperty(parmprop: ParameterViewModel | string): string;
    private hasHint;
    classes(parmprop: ParameterViewModel): {
        [x: string]: boolean;
        parameter: boolean;
    };
    ngAfterViewInit(): void;
    focus(): boolean;
    static ɵfac: i0.ɵɵFactoryDeclaration<CreateNewDialogComponent, never>;
    static ɵcmp: i0.ɵɵComponentDeclaration<CreateNewDialogComponent, "nof-create-new-dialog", never, { "toCreateClass": { "alias": "toCreateClass"; "required": true; }; "parentMenu": { "alias": "parentMenu"; "required": true; }; }, {}, never, never, false, never>;
}
