import { Map } from 'immutable'; import { Agent } from '@findify/agent/types/core/Agent'; import { Client as Analytics } from '@findify/analytics/types/types'; import { Immutable, Config, BaseFeature } from '@findify/store-configuration'; declare type ConfigType = T extends Immutable.FeatureConfig ? T : Immutable.Factory; declare type Handler = (...args: any[]) => any; declare type CreatorProps = { field: string; handlers?: { [fnName: string]: Handler; }; mapProps?: (field: Map, meta: Map, update: (field: string, update?: any) => Agent, analytics: Analytics, config: Map) => Record; }; declare type HookReturns = { meta: Map; update: Agent['set']; analytics: Analytics; config: ConfigType; }; declare type HookProps = { key?: string; force?: boolean; field?: string; }; export declare const useFeatureContext: ({ key, }?: HookProps) => Pick, "update" | "config" | "analytics">; declare const _default: ({ field, handlers, mapProps }: CreatorProps) => { hook: ({ key, field, }?: HookProps) => HookReturns & H; connect: (connector: any | { feature?: string; key?: string | number; }) => any; }; export default _default;