declare const handlers: { pauseTracking: () => void; enableTracking: () => void; resumeTracking: () => boolean; resetTracking: () => void; pauseTriggering: () => void; enableTriggering: () => void; resumeTriggering: () => boolean; resetTriggering: () => void; pausePacking: () => void; enablePacking: () => void; resumePacking: () => boolean; resetPacking: () => void; }; declare const toRaw: (x: T) => T; declare const isProxy: (x: any) => boolean; type Patch = { path: string; value: any; }; declare function produce(baseObject: State, operation: (x: State) => Ret, patchCallback?: (patch: Patch) => any): { patches: Patch[]; deps: string[]; result: Ret; }; type Listener = (state: State, patches: Patch[]) => void; declare class Store { private state; private listeners; setState(partial: Partial | ((x: T) => Partial)): void; getState(): T; subscribe(listener: Listener): () => boolean; dispose(): void; } type SetFn = (x: Partial | ((x: T) => Partial)) => void; type GetFn = () => T; type SetupFn = (set: SetFn, get: GetFn) => T; type Middleware = (set: SetFn, get: GetFn) => [typeof set, typeof get]; type Selector = (x: T) => S; type SelectorPath = keyof T; type UseStore = { (selector: Selector): T; (selector: Selector): State;

>(selector: P): State[P]; (): State; set: SetFn; get: GetFn; subscribe: (listener: Listener) => () => void; _store: Store; }; /** * Binds a state and effect manager to a React component. * * @param {() => { createState: (x: any) => [() => any, (x: any) => any]; createEffect: (eff: () => () => any) => any; symbol: symbol; }} build - A function that builds the state and effect manager. * @return {function} A function that creates a state and effect manager. */ declare function bind(build: () => { createState: (x: any) => [() => any, (x: any) => any]; createEffect: (eff: () => () => any) => any; symbol: symbol; }): (setup: SetupFn, ...middlewares: Middleware[]) => UseStore; /** * Binds the given React library to create a state and effect manager. * * @param {any} react - The React library to bind. * @return {function} A function that creates a state and effect manager. */ declare const bindReact: (react: any) => (setup: SetupFn, ...middlewares: Middleware[]) => UseStore; /** * Creates a store with the given setup and middlewares. * * @param {SetupFn} setup - The function that sets up the initial state and effects. * @param {Middleware[]} middlewares - The array of middlewares to apply to the store. * @return {UseStore} The store object with the specified setup and middlewares. */ declare const create: (setup: SetupFn, ...middlewares: Middleware[]) => UseStore; export { type Middleware, type Patch, type Selector, type SelectorPath, type SetupFn, type UseStore, bind, bindReact, create, handlers, isProxy, produce, toRaw };