/** * UC-UI Library - AI Summary Button Component * * A reusable button component that opens the AI Summary dialog. * * @example * ```html * * * ``` */ import { EventEmitter, OnChanges, SimpleChanges } from '@angular/core'; import { Proposal } from '../../../models/loan-summary.model'; import * as i0 from "@angular/core"; /** * Configuration for the AI Summary dialog */ export interface AiSummaryDialogConfig { /** Dialog width */ width?: string; /** Dialog height */ height?: string; /** Maximum width */ maxWidth?: string; /** Maximum height */ maxHeight?: string; /** Panel CSS classes */ panelClass?: string | string[]; /** Whether dialog is modal */ disableClose?: boolean; } export declare class AiSummaryButtonComponent implements OnChanges { private readonly dialog; /** * The proposal data to generate summary for. * Required input. */ proposal: Proposal; /** * Custom dialog configuration. * Merged with defaults if provided. */ dialogConfig?: Partial; /** * The dialog component to open. * Must be provided if using outside the library context. */ dialogComponent?: unknown; /** * Button label text. * @default 'AI Summary' */ label: string; /** * Button icon name (Material icon). * @default 'psychology' */ icon: string; /** * Whether the button is disabled. * @default false */ disabled: boolean; /** * Emitted when the summary dialog is opened. * Emits the proposal data. */ summaryOpened: EventEmitter; /** * Emitted when the summary dialog is closed. * Emits the result from the dialog (if any). */ summaryClosed: EventEmitter; /** * Lifecycle hook that responds to changes in input properties. * Handles updates to proposal and documents data. */ ngOnChanges(changes: SimpleChanges): void; /** * Opens the AI Summary dialog. */ openAiSummary(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; }