import type { StoreApi } from '../store/types'; import type { InferStoreState, StoreActions } from '../types'; import type { FunctionRecord } from '../types/functions'; import type { NoOverlap } from '../types/objects'; /** * Given a store instance, produces a new object containing only its actions. * * Intended for export alongside the associated store. * * @param store - The store to create actions for. * @param bundledMethods - Optional extra methods to bundle into the actions object. * * @example * export const useCounterStore = createRainbowStore(set => ({ * count: 0, * increment: () => set(state => ({ count: state.count + 1 })), * })); * * export const exampleActions = createStoreActions(useExampleStore); * exampleActions.increment(); */ export declare function createStoreActions>(store: Store): StoreActions; export declare function createStoreActions, Bundled extends FunctionRecord>(store: Store, bundledMethods: NoOverlap, Bundled>): StoreActions & Bundled;