import { AppError, Result } from '../utils/result';

export interface WidgetDataLoaderInterface<DLP, DBP, R> {
  isMyConfig(dataLoaderParams: DLP): boolean;
  load(
    dataLoaderParams: DLP,
    dashboardParams: DBP,
    dashboardId: string,
    widgetId: string,
  ): Promise<Result<R, AppError>>;
}
