import { type SearchContextValue } from '@splunk/dashboard-context'; import type { SearchData, RequestParams, RefreshFunction, DataSourceBindingMap, BindingType, SearchControlFunction } from '@splunk/dashboard-types'; type Action = { type: 'binding/remove'; bindingType: string; } | { type: 'binding/reset'; bindingType: string; } | { type: 'binding/update'; bindingType: BindingType; payload: SearchData; }; export type DataSources = Record; export interface UseSubscribeToSearchesReturnType { dataSources: DataSources; loading: boolean; updateRequestParams: (bindingType: BindingType, newRequestParams: RequestParams) => void; refresh: RefreshFunction; control: SearchControlFunction; } type UseSubscribeToSearchesType = ({ consumerId, bindings, subscribeFn, refreshKey, }: { consumerId: string; bindings: DataSourceBindingMap; subscribeFn?: SearchContextValue['subscribe']; refreshKey?: string; }) => UseSubscribeToSearchesReturnType; export declare const reducer: (state: DataSources, action: Action) => DataSources; export declare const useSubscribeToSearches: UseSubscribeToSearchesType; export {}; //# sourceMappingURL=useSubscribeToSearches.d.ts.map