@gamesberry/karmyc-core
Version:
A flexible and powerful layout management system for React applications
25 lines (24 loc) • 663 B
TypeScript
import { IKarmycOptions } from "../..";
import { StateCreator } from "zustand";
import { RootStateType } from "../store";
import { LayoutPreset } from "../types/karmyc";
import { IKarmycConfig } from "../types/karmyc";
/**
* État principal du store.
*/
export interface CoreState {
options: IKarmycOptions;
lastUpdated: number;
layout_preset: LayoutPreset[];
}
/**
* Actions principales du store.
*/
export interface CoreActions {
initialize: (config: IKarmycConfig) => void;
}
export type CoreSlice = CoreState & CoreActions;
export declare const createCoreSlice: StateCreator<RootStateType, // le type global du store
[
], [
], CoreSlice>;