import { StateCreator } from 'zustand'; import { PanelGroupItemId } from '@perses-dev/core'; import { Middleware } from './common'; import { PanelGroupSlice } from './panel-group-slice'; export interface VirtualPanelRef { ref: string; repeatVariable?: [string, string]; } /** * Slice that handles viewing Panels in max size ("full screen"). */ export interface ViewPanelSlice { viewPanel: ViewPanelState; getViewPanel: () => PanelGroupItemId | undefined; setViewPanel: (panelGroupItemId?: PanelGroupItemId) => void; } export interface ViewPanelState { panelGroupItemId?: PanelGroupItemId; panelRef?: VirtualPanelRef; } /** * Curried function for viewing panel in max size ("full screen"). */ export declare function createViewPanelSlice(viewPanelRef?: VirtualPanelRef, setViewPanelRef?: (ref: VirtualPanelRef | undefined) => void): StateCreator; //# sourceMappingURL=view-panel-slice.d.ts.map