@datalayer/core
Version:
**Datalayer Core**
34 lines (33 loc) • 1.53 kB
TypeScript
import { coreStore } from './substates/CoreState';
import { cellStore } from './substates/CellState';
import { documentStore } from './substates/DocumentState';
import { gradeStore } from './substates/GradeState';
import { iamStore } from './substates/IAMState';
import { runtimesStore } from './substates/RuntimesState';
import { layoutStore } from './substates/LayoutState';
import { nbformatStore } from './substates/NbformatState';
import { organizationStore } from './substates/OrganizationState';
import { spaceStore } from './substates/SpaceState';
import { surveysStore } from './substates/SurveysState';
import { teamStore } from './substates/TeamState';
export type DatalayerRunState = {
version: string;
setVersion: (version: string) => void;
isDev: boolean;
core: typeof coreStore.getState;
cell: typeof cellStore.getState;
document: typeof documentStore.getState;
grade: typeof gradeStore.getState;
iam: typeof iamStore.getState;
kernels: typeof runtimesStore.getState;
layout: typeof layoutStore.getState;
nbformat: typeof nbformatStore.getState;
organization: typeof organizationStore.getState;
space: typeof spaceStore.getState;
success: typeof surveysStore.getState;
team: typeof teamStore.getState;
};
export declare const runStore: import("zustand").StoreApi<DatalayerRunState>;
export declare function useRunStore(): DatalayerRunState;
export declare function useRunStore<T>(selector: (state: DatalayerRunState) => T): T;
export default useRunStore;