import { ITimeSeries, AppPlotData } from './common.contracts'; /** * Basic YYYY-MM-DD format for dates */ export declare const API_DATE_FORMAT = "YYYY-MM-DD"; /** * Convert JS dates to the YYYY-MM-DD format * * @param d Date to be converted */ export declare const GetStandardizedDateKeyForApi: (d: Date) => string; /** * Convert dates from the YYYY-MM-DD format to JS dates * * @param d Date to be converted */ export declare const GetDateFromApiText: (d: string) => Date; /** * Figure out whether a series should be shown or hidden by default based on its display name * See https://plot.ly/javascript/reference/#scatter-visible handle visibility=legendonly for details * Returns true/visible by default * * @param ser Series to evaluate * @param evalShowHideState OPTIONAL function to evaluate the series name */ export declare const resolveSeriesShowHideState: (ser: ITimeSeries, evalShowHideState?: (nameIn: string) => string | boolean) => string | boolean; /** * Sample for how to map time series data from API to AppPlotData[], for line chart and such * NOTE: assumes that everything is a time series, for now * * @param seriesIn ITimeSeries[] from API * @param inputDateTimeFormat OPTIONALLY override fomrat to use when parsing input date for sort. Default: YYYY-MM-DD * @param evalShowHideState OPTIONAL function to evaluate whether a series should be shown/hidden based on the series name */ export declare const MapSeries: (seriesIn: ITimeSeries[], inputDateTimeFormat?: string, evalShowHideState?: (nameIn: string) => string | boolean) => AppPlotData[];