import { UntypedFormControl } from "@angular/forms"; import { MatLegacyDialogRef as MatDialogRef } from "@angular/material/legacy-dialog"; import { StarkPromptDialogContent } from "./prompt-dialog-content.intf"; import * as i0 from "@angular/core"; /** * Possible results of the {@link StarkPromptDialogComponent} after being closed. * * - `string`: The value provided by the user in the dialog's input after clicking the "Ok" button. * - "cancel": The dialog was cancelled by clicking on the "Cancel" button * - `undefined`: The dialog was cancelled either by clicking outside of dialog or by pressing the ESC key */ export type StarkPromptDialogResult = string | "cancel" | undefined; /** * Prompt dialog component to be opened via the Angular Material's {@link MatDialog} service */ export declare class StarkPromptDialogComponent { dialogRef: MatDialogRef; content: StarkPromptDialogContent; /** * @ignore */ formControl: UntypedFormControl; /** * Class constructor * @param dialogRef - Reference this dialog instance * @param content - Content to be shown in the prompt dialog (dynamically translated via the [@link TranslateService} service if the * provided text is defined in the translation keys) */ constructor(dialogRef: MatDialogRef, content: StarkPromptDialogContent); /** * Callback method to be triggered when the "Cancel" button is clicked */ onCancel(): void; /** * Callback method to be triggered when the "Ok" button is clicked */ onOk(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; }