import { ChangeDetectorRef, EventEmitter } from '@angular/core'; import * as i0 from "@angular/core"; export interface NamePromptSubmitPayload { name: string; } /** * Generic single-input prompt modal. Used wherever a flow needs to ask the * user for a single name (or short text) and confirm with a primary button. * * Examples: New Folder, Clone Suite, Rename, New Plan, etc. * * All copy is configurable through Inputs — see `title`, `description`, * `label`, `placeholder`, `submitButtonText`, `cancelButtonText`. Defaults * preserve the legacy "New Folder" wording for callers that haven't migrated. */ export declare class NamePromptModalComponent { private cdr; isOpen: boolean; title: string; description: string | null; label: string; placeholder: string; /** Submit (primary) button text. Lets consumers reuse this modal for * "Create folder", "Clone Suite", "Rename", etc. */ submitButtonText: string; /** Cancel (secondary) button text. Most consumers can leave the default. */ cancelButtonText: string; /** When true, locks the modal: spinner on the submit button, all dismiss * paths (cancel, close X, backdrop, ESC) become no-ops, and submit() bails * out so a fast Enter press can't double-fire while the parent is mid-API. */ isSubmitting: boolean; private _name; set name(value: string); get name(): string; nameChange: EventEmitter; submitted: EventEmitter; cancelled: EventEmitter; private nameTouched; constructor(cdr: ChangeDetectorRef); onNameChange(value: string): void; get nameErrors(): string[]; get isValid(): boolean; submit(): void; onCancel(): void; onClose(): void; onBackdropClick(): void; onEscape(event: Event): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; }