/* * Copyright (c) 2025, Salesforce, Inc. * All rights reserved. * For full license text, see the LICENSE.txt file */ /** * The `lightning/modal` component displays a dialog that focuses the user's attention on a single task or piece of information. * @see {@link https://developer.salesforce.com/docs/component-library/bundle/lightning-modal/documentation |Lightning Modal Documentation} */ declare module "lightning/modal" { import { LightningElement } from "lwc"; /** * Displays a dialog that focuses the user's attention on content, options, or tasks. */ export default class LightningModal extends LightningElement { /** * The size of the modal. Valid values include: * - small: Displays a small modal window * - medium: Displays a medium modal window (default) * - large: Displays a large modal window * - full: Displays a full-screen modal window */ size: "small" | "medium" | "large" | "full"; /** The text displayed in the modal header. */ label: string; /** The description of the modal. This text is displayed below the header. */ description: string; /** If true, the modal cannot be closed by clicking outside or using the close button. */ disableClose: boolean; /** * Closes the modal and returns the specified result. * @param result The value to return when the modal is closed. * @returns A Promise that resolves when the modal is closed. */ close(result: unknown): Promise; } }