import { RecipeIngredientVariable } from '../recipe'; import { Datapoint } from './TimeData'; export declare type TimeSeriesType = 'ingredient' | 'custom'; export declare type DatapointUnit = 'value' | 'pctOf100' | 'negToPos' | 'pctOf100NegToPos' | 'price'; export declare type TimeSeriesName = string; export declare type TimeSeriesData = Record; export interface TimeSeries { type: TimeSeriesType; data: Datapoint[]; /** Defaults to value */ unit?: DatapointUnit; } export interface IngredientTimeSeries extends TimeSeries { type: 'ingredient'; data: Datapoint[]; detail: RecipeIngredientVariable; } export interface CustomTimeSeries extends TimeSeries { type: 'custom'; data: Datapoint[]; detail: { title: string; description?: string; abbreviation?: string; }; }