/// export declare const contexts: { default: import("react").Context<{}>; }; export declare type ProviderProps = { /** Store API key */ apiKey: string; /** * Externally created agent * [immutable: true] should be set in Agent options */ agent?: any; /** Additional Agent configuration eq: method */ options?: { [key: string]: any; }; /** If no Agent provided you can manually provide user to analytics */ user?: { uid: string; sid: string; }; /** Default request params */ defaults?: { [key: string]: any; }; /** * Configuration object which will be provided tho` context */ config?: any; /** Request params. On change will send request */ query?: any; /** * Yse this option to not mix context of different features in one tree * You should provide same key in connectors eq: `useItems(storeKey)` or `connectItems(storeKey)` */ storeKey?: string; children?: React.ReactChild; }; /** * Used to create a Provider Component to be rendered with React to further pass down Agent data to Connectors * @param type Provider data type. Autocomplete, Search, SmartCollection, Content * @param onCreate Callback to be called with Agent instance once the provider has been initialized */ export declare const createProvider: (type: any, onCreate?: ((agent: any) => void) | undefined) => ({ apiKey, agent, options, user, defaults, config, storeKey, query, children, }: ProviderProps) => import("react").CElement<{ value: { analytics: import("@findify/analytics").Client; agent: any; config: any; }; }, import("react").Component<{ value: { analytics: import("@findify/analytics").Client; agent: any; config: any; }; }, any, any>>;