UNPKG

@datalayer/core

Version:

[![Datalayer](https://assets.datalayer.tech/datalayer-25.svg)](https://datalayer.io)

17 lines (16 loc) 747 B
import { JupyterLabAppAdapter } from '@datalayer/jupyter-react'; import { JupyterFrontEndPlugin } from '@jupyterlab/application'; export type Plugin = JupyterFrontEndPlugin<any, any, any> & { service: any; }; export type IJupyterLabState = { jupyterLabAdapter?: JupyterLabAppAdapter; }; export type JupyterLabState = IJupyterLabState & { setJupyterLabAdapter: (jupyterLabAdapter?: JupyterLabAppAdapter) => void; plugin: (id: string) => Plugin | undefined; }; export declare const jupyterLabStore: import("zustand").StoreApi<JupyterLabState>; export declare function useJupyterLabStore(): JupyterLabState; export declare function useJupyterLabStore<T>(selector: (state: JupyterLabState) => T): T; export default useJupyterLabStore;