import { StateCreator } from 'zustand'; import { PanelGroupItemId } from '@perses-dev/core'; import { Middleware } from './common'; import { PanelGroupSlice } from './panel-group-slice'; import { PanelSlice } from './panel-slice'; /** * Slice that handles the visual editor state and actions for deleting Panels. */ export interface DeletePanelSlice { /** * Delete panels */ deletePanel: (panelGroupItemId: PanelGroupItemId) => void; /** * State for the delete panel dialog when it's open, otherwise undefined when it's closed. */ deletePanelDialog?: DeletePanelDialogState; /** * Open delete panel dialog */ openDeletePanelDialog: (panelGroupItemId: PanelGroupItemId) => void; /** * Close delete panel dialog */ closeDeletePanelDialog: () => void; } export interface DeletePanelDialogState { panelGroupItemId: PanelGroupItemId; panelName: string; panelGroupName: string; } /** * Curried function for creating the PanelDeleteSlice. */ export declare function createDeletePanelSlice(): StateCreator; //# sourceMappingURL=delete-panel-slice.d.ts.map