import type { ContextDefault, DatumDefault } from './types'; export interface AgDataSourceOptions { /** Asynchronous callback to load data into the chart. */ getData: (params: AgDataSourceCallbackParams) => Promise; } export interface AgDataSourceCallbackParams { /** The start of the visible window, if a time axis is available. */ windowStart?: Date; /** The end of the visible window, if a time axis is available. */ windowEnd?: Date; /** Chart context object. */ context?: TContext; }