import { Type } from '@angular/core';
import { SectionConfig } from '../../shared/models/config';

export interface WidgetRenderContext {
  pageId: string;
  sectionId: string;
  locale?: string;
}

export interface RegisteredWidget {
  type: string;
  version: string;
  component: Type<unknown>;
}

export interface ResolvedWidget {
  type: string;
  version: string;
  component: Type<unknown>;
  section: SectionConfig;
  data: unknown;
}
