export default useConnect; export type StoreObject = import("reshow-flux-base").StoreObject; export type UseConnectWithStore = { store: StoreObject; }; export type CalculateStateCallback = (prevState: StateType | any, calculateOptions: any) => StateType; export type GetStateCallback = (props: any) => StateType; export type UseConnectOption = { calculateState: CalculateStateCallback; shouldComponentUpdate?: boolean; storeLocator?: (arg0: any) => StoreObject; displayName?: string; }; /** * @template StateType * @template ActionType * @typedef {import("reshow-flux-base").StoreObject} StoreObject */ /** * @template StateType * @template ActionType * @typedef {object} UseConnectWithStore * @property {StoreObject} store */ /** * @template StateType * * @callback CalculateStateCallback * @param {StateType|any} prevState * @param {any} calculateOptions * @returns {StateType} */ /** * @template StateType * * @callback GetStateCallback * @param {any} props * @returns {StateType} */ /** * @template StateType * @template ActionType * * @typedef {object} UseConnectOption * @property {CalculateStateCallback} calculateState * @property {boolean} [shouldComponentUpdate] * @property {function(any):StoreObject} [storeLocator] * @property {string} [displayName] */ declare function useConnect(inputOptions: UseConnectOption): GetStateCallback;