UNPKG

@codeperate/app-asset

Version:

Codeperate App Asset

24 lines (23 loc) 887 B
import { CdpModalConfig } from '@codeperate/cdp-ui-library/dist/types/components/cdp/cdp-modal/cdp-modal.interface'; export interface IModal { close?: boolean; config?: CdpModalConfig; content: HTMLElement | string; onClosed?: (e: CustomEvent) => void; onOpened?: (e: CustomEvent) => void; } export interface CdpModalState { modals: IModal[]; } export declare const CdpModalModel: { state: CdpModalState; reducers: { clear(state: CdpModalState, payload: number[]): CdpModalState; pushModal(state: CdpModalState, payload: IModal): CdpModalState; popModal(state: CdpModalState): CdpModalState; popAllModal(state: CdpModalState): CdpModalState; closeModal(state: CdpModalState): CdpModalState; closeAllModal(state: CdpModalState): CdpModalState; popModalByTag(state: CdpModalState, payload: string): CdpModalState; }; };