import { ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core'; import { Observable } from 'rxjs'; import { DbConfigDialogValue, DbConfigTestResult, DbDriver } from './new-db-config-dialog.models'; import * as i0 from "@angular/core"; export declare class NewDbConfigDialogComponent implements OnInit, OnDestroy { private readonly cdr; mode: 'create' | 'edit'; initialValue?: Partial; existingNames: string[]; envName: string; testFn?: (value: DbConfigDialogValue) => Observable; readonly driverOptions: { label: string; value: DbDriver; }[]; connectionName: string; driver: DbDriver; host: string; port: number | null; database: string; username: string; password: string; connectionNameError: string | null; hostError: string | null; portError: string | null; databaseError: string | null; isTesting: boolean; testResult: DbConfigTestResult | null; private readonly destroy$; constructor(cdr: ChangeDetectorRef); ngOnInit(): void; ngOnDestroy(): void; get title(): string; get subtitle(): string; get primaryButtonLabel(): string; get passwordPlaceholder(): string; get connectionNameErrorsArray(): string[]; get hostErrorsArray(): string[]; get portErrorsArray(): string[]; get databaseErrorsArray(): string[]; get canTest(): boolean; onConnectionNameChange(value: string): void; onDriverChange(value: any): void; onHostChange(value: string): void; onPortChange(value: string): void; onDatabaseChange(value: string): void; onUsernameChange(value: string): void; onPasswordChange(value: string): void; onTestClick(): void; /** * Returns the validated form value, or null if validation fails (inline * errors are populated and the dialog stays open). */ getValue(): DbConfigDialogValue | null; private captureForm; private isDuplicateName; private defaultPortForDriver; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; }