UNPKG

@zubridge/electron

Version:

A streamlined state management library for Electron applications using Zustand.

15 lines (14 loc) 535 B
import type { StoreApi } from 'zustand/vanilla'; import type { AnyState, Handler, RootReducer, StateManager } from '@zubridge/types'; /** * Options for the Zustand bridge and adapter */ export interface ZustandOptions<S extends AnyState> { exposeState?: boolean; handlers?: Record<string, Handler>; reducer?: RootReducer<S>; } /** * Creates a state manager adapter for Zustand stores */ export declare function createZustandAdapter<S extends AnyState>(store: StoreApi<S>, options?: ZustandOptions<S>): StateManager<S>;