import { Entity, IEntitySettings, IEntityPrivate, IEntityEvents } from "./Entity"; export interface IModalSettings extends IEntitySettings { /** * HTML content of the modal. */ content?: string; /** * Disables interaction with the chart while the modal is open. * * @default true * @since 5.2.11 */ deactivateRoot?: boolean; /** * Name of the dialog for screen readers. * * If not set, the first heading (`

` - `

`) in the content is used. * * @since 5.21.0 */ ariaLabel?: string; } export interface IModalPrivate extends IEntityPrivate { container: HTMLDivElement; curtain: HTMLDivElement; wrapper: HTMLDivElement; content: HTMLDivElement; } export interface IModalEvents extends IEntityEvents { /** * The modal was opened. */ "opened": {}; /** * The modal was closed with `close()`. */ "closed": {}; /** * The modal was cancelled: closed with `cancel()`, a click outside its * content, or the Escape key. */ "cancelled": {}; } /** * A modal dialog with HTML content, shown over the chart. * * @see {@link https://www.amcharts.com/docs/v5/concepts/common-elements/modal-popups/} for more info */ export declare class Modal extends Entity { static className: string; static classNames: Array; _settings: IModalSettings; _privateSettings: IModalPrivate; _events: IModalEvents; protected _afterNew(): void; protected _opener?: Element | null; protected _getFocusables(): Array; protected _updateLabel(): void; protected _restoreFocus(): void; _beforeChanged(): void; /** * Returns `true` if the modal is open. * * @return Modal open? */ isOpen(): boolean; /** * Opens the modal. */ open(): void; /** * Closes the modal and dispatches `"closed"`. */ close(): void; /** * Closes the modal and dispatches `"cancelled"` instead of `"closed"`. */ cancel(): void; /** * Disposes modal. */ protected _dispose(): void; } //# sourceMappingURL=Modal.d.ts.map