import React, { Component } from "react"; import type { Truth } from "./truth"; import type { MapUpdate } from "./types"; interface State { data: StoreState; update: Truth["update"]; getState: Truth["getState"]; replace: Truth["replace"]; } declare const createTruth: (store: Truth) => { Provider: typeof Component; ProviderContext: React.Context>; store: Truth; useTruthSelector: (selector: (s: StoreState) => TProp, deps?: unknown[] | undefined) => TProp; useTruthState: () => StoreState; useTruthStore: () => Truth; useTruthUpdate: () => (deepSelector: (state: StoreState) => TProp_1, setter: (oldVal: TProp_1) => TProp_1) => StoreState; connect: (BaseComponent: React.ComponentType, mapStateToProps?: ((s: StoreState, p: Omit) => Pick) | null | undefined, mapUpdateToProps?: ((u: (deepSelector: (state: StoreState) => TProp_1, setter: (oldVal: TProp_1) => TProp_1) => StoreState, p: Omit) => MapUpdate>) | null | undefined) => React.ComponentType>; }; export { createTruth }; //# sourceMappingURL=createTruth.d.ts.map