import type { CreateSearchArgs, CancelSearchArgs, ISearchModule, RequestParams, UpdateSearchArgs, DataSourceSubscription } from '@splunk/dashboard-types'; import type { ConstructableSearchModuleArgs } from './types'; export declare class SearchModule implements ISearchModule { private readonly registry; constructor({ registry }: ConstructableSearchModuleArgs); /** * Cancels the subscription to a search. Will tear down search if there are no remaining subscribers * @param {string} param0.dataSourceId An identifier for the datasource * @param {string} param0.consumerId An identifier for the consumer + binding */ cancel({ subscription }: CancelSearchArgs): void; create({ consumerId, dataSourceId, initialRequestParams, onData, onError, }: CreateSearchArgs): Promise<{ updateRequestParams: (newRequestParams: RequestParams) => void; cancel: () => void; refresh: ({ checkRiskyCommand }?: { checkRiskyCommand?: boolean | undefined; }) => Promise; getInitialCallbacks: () => { onData: import("@splunk/dashboard-types").OnDataCallback; onError: import("@splunk/dashboard-types").OnErrorCallback; }; getLastState: () => import("@splunk/dashboard-types").LastSubscriptionState; control: (action: import("@splunk/dashboard-types").SearchControlAction) => Promise; getPauseStatus: () => boolean; supportsControlActions: (action?: import("@splunk/dashboard-types").SearchControlAction) => boolean; }>; update({ consumerId, dataSourceId, subscription, initialRequestParams, }: UpdateSearchArgs): Promise<{ updateRequestParams: (newRequestParams: RequestParams) => void; cancel: () => void; refresh: ({ checkRiskyCommand }?: { checkRiskyCommand?: boolean | undefined; }) => Promise; getInitialCallbacks: () => { onData: import("@splunk/dashboard-types").OnDataCallback; onError: import("@splunk/dashboard-types").OnErrorCallback; }; getLastState: () => import("@splunk/dashboard-types").LastSubscriptionState; control: (action: import("@splunk/dashboard-types").SearchControlAction) => Promise; getPauseStatus: () => boolean; supportsControlActions: (action?: import("@splunk/dashboard-types").SearchControlAction) => boolean; }>; } //# sourceMappingURL=SearchModule.d.ts.map