import { type ReactNode, type MutableRefObject } from 'react'; import type { BindingType, SearchData, DataSourceBindingMap } from '@splunk/dashboard-types'; import { type DataSources } from './hooks'; interface OnSubscriberUpdateArgs extends SearchData { binding: BindingType; } type OnSubscriberUpdate = (args: OnSubscriberUpdateArgs) => void; export interface DataSourceApi { subscribe: (bindingType: string, callback: OnSubscriberUpdate) => () => void; } interface Props { consumerId: string; bindings: DataSourceBindingMap; children: ReactNode; } export type Subscribers = Record; export declare const DEFAULT_REQUEST_PARAMS: { count: number; offset: number; }; export declare const createSubscribe: (subscribers: MutableRefObject, results: MutableRefObject) => (bindingType: string, callback: OnSubscriberUpdate) => (() => void); export declare const DataSourceContextProvider: ({ consumerId, bindings, children, }: Props) => JSX.Element; export { default as DataSourceContext } from '@splunk/visualization-context/DataSourceContext'; //# sourceMappingURL=DataSourceContext.d.ts.map