UNPKG

@liquidcommerceteam/elements-sdk

Version:

LiquidCommerce Elements SDK

25 lines (24 loc) 602 B
import { BaseCommand } from '@/core/base-command.service'; import type { IDrawerContentConfig } from '@/core/store'; export declare class UICommands extends BaseCommand { /** * Open drawer */ openDrawer(contentType: IDrawerContentConfig['type'], data?: Record<string, any>): void; /** * Close drawer */ closeDrawer(): void; /** * Open modal */ openModal(modalId: string): void; /** * Close modal */ closeModal(modalId: string): void; /** * Set loading state */ setLoading(key: string, loading: boolean): void; }