import type { AxiosInstance } from 'axios'; export type QuickRange = 'last24Hours' | 'last7Days' | 'last30Days' | 'thisWeek' | 'thisMonth' | 'lastWeek' | 'lastMonth'; export declare const quickRangeValues: QuickRange[]; export type GroupBy = 'runLocation' | 'statusCode'; export interface AnalyticsSeriesEntry { data: Record[] | Record; runLocation?: string; statusCode?: number; } export interface AnalyticsResponse { checkId: string; name: string; checkType: string; activated: boolean; muted: boolean; frequency: number; from: string; to: string; tags: string[]; series: AnalyticsSeriesEntry[]; metadata: Record; requestedMetrics?: string[]; } export interface GetAnalyticsOptions { quickRange?: QuickRange; metrics?: string[]; groupBy?: GroupBy; filterByStatus?: 'success' | 'failure'; } declare class Analytics { api: AxiosInstance; constructor(api: AxiosInstance); get(checkId: string, checkType: string, options?: GetAnalyticsOptions): Promise<{ data: AnalyticsResponse; }>; } export default Analytics;