declare namespace TimeSeriesJSON { type CompactHistoryDetail = (CompactHistoryOHLCV); type CompactJSON = Array; type CompactHistoryOHLCV = [ date: number, open: number, high: number, low: number, close: number, volume: number ]; interface CurrencyHistory { HistoryDetail: Array; } interface CurrencyHistoryDetail { EndDate: string; Value: Array; } interface CurrencyValue { CurrencyId: string; value: string; } interface History { HistoryDetail: Array; } interface HistoryDetail { EndDate: string; Value: string; } interface Response { TimeSeries: TimeSeriesResponse; } interface Security { CumulativeReturnSeries?: Array; DividendSeries?: Array; GrowthSeries?: Array; Id: string; RatingSeries?: Array; HistoryDetail?: Array; ReturnSeries?: Array; RollingReturn?: Array; } interface TimeSeriesResponse { Security: Array; } function isCompactJSONOHLCVResponse(json?: unknown): json is CompactJSON; function isHistory(json?: unknown): json is History; function isResponse(json?: unknown): json is Response; function isTimeSeriesResponse(json?: unknown): json is TimeSeriesResponse; } export default TimeSeriesJSON;