import { StateStore } from '@stream-io/state-store'; import type { SearchSource } from './BaseSearchSource'; export type SearchControllerState = { isActive: boolean; searchQuery: string; sources: SearchSource[]; }; export type InternalSearchControllerState = {}; export type SearchControllerConfig = { keepSingleActiveSource: boolean; }; export type SearchControllerOptions = { config?: Partial; sources?: SearchSource[]; }; export declare class SearchController { /** * Not intended for direct use by integrators, might be removed without notice resulting in * broken integrations. */ _internalState: StateStore; state: StateStore; config: SearchControllerConfig; constructor({ config, sources }?: SearchControllerOptions); get hasNext(): boolean; get sources(): SearchSource[]; get activeSources(): SearchSource[]; get isActive(): boolean; get searchQuery(): string; get searchSourceTypes(): Array; addSource: (source: SearchSource) => void; getSource: (sourceType: SearchSource["type"]) => SearchSource | undefined; removeSource: (sourceType: SearchSource["type"]) => void; activateSource: (sourceType: SearchSource["type"]) => void; deactivateSource: (sourceType: SearchSource["type"]) => void; activate: () => void; search: (searchQuery?: string) => Promise; cancelSearchQueries: () => void; clear: () => void; exit: () => void; } //# sourceMappingURL=SearchController.d.ts.map