@empathyco/x-components
Version:
Empathy X Components
31 lines • 1.11 kB
TypeScript
import type { Result } from '@empathyco/x-types';
import type { Store } from 'vuex';
import type { RootXStoreState } from '../store/index';
import type { ResultsEnrichmentService } from './services.types';
/**
* Default implementation for the {@link ResultsEnrichmentService}.
*
* @public
*/
export declare class DefaultResultsEnrichmentService implements ResultsEnrichmentService {
/**
* Global instance of the {@link ResultsEnrichmentService}.
*/
static instance: ResultsEnrichmentService;
constructor();
protected get store(): Store<RootXStoreState>;
/**
* Fetches the enrichment results.
*
* @param results - The results to fetch the enrichment results for.
*/
fetchResults(_: Result[]): Promise<any[]>;
/**
* Updates the results with the enrichment results. Updates via mutation.
*
* @param results - The results to update.
* @param enrichmentResults - The enrichment results to update the results with.
*/
updateResults(_: Result[], __: any[]): void;
}
//# sourceMappingURL=results-enrichment.service.d.ts.map