/** * Configuration options for displaying a modal dialog. * * @see openModal - SDK/platform utility that accepts this type */ export type ModalOption = { title?: string; description?: string; customMarkup?: string; imageSrc?: string; icon?: string; iconStrokePrimary?: string; iconStrokeSecondary?: string; iconFillColor?: string; iconStrokeWidth?: string; closeable?: boolean; }; /** * Response data returned when a modal is closed. */ export type ModalResponse = { appearance: 'message'; type: 'info' | 'success' | 'warning' | 'error'; title?: string; description?: string; }; /** * Function signature for showing a modal dialog. * * @see openModal - Implementation in q2-tecton-common/utility */ export type ShowModalFn = (data: ModalOption) => Promise; /** * Extended HTMLElement interface for the q2-modal custom element. * Provides type-safe access to the modal's properties and methods. * * @see q2-modal - Component in q2-tecton-elements */ export interface HTMLQ2ModalElement extends HTMLElement { open: () => Promise; option: ModalOption; } //# sourceMappingURL=modal.d.ts.map