import { WorkspaceScopedResource } from './base.js';
/**
 * Analytics — aggregate metrics about calls, agents, quality, and usage.
 */
export declare class AnalyticsResource extends WorkspaceScopedResource {
    /** High-level dashboard summary — pass `days` (default: 7) for the lookback window */
    getDashboard(params?: {
        days?: number;
    }): Promise<{
        [x: string]: unknown;
    } & import("../index.js").ResponseMetadata>;
    /** Call volume and duration metrics */
    getCalls(params?: {
        days?: number;
        date_from?: string | null;
        date_to?: string | null;
        interval?: '1h' | '1d' | '1w';
        service_id?: string | null;
    }): Promise<{
        avg_duration_seconds: number;
        calls_by_date: {
            avg_duration_seconds?: number | null | undefined;
            count: number;
            date: string;
        }[];
        period_end: string;
        period_start: string;
        total_calls: number;
        total_duration_seconds: number;
        workspace_id: string;
    } & import("../index.js").ResponseMetadata>;
    /** Per-agent performance breakdown */
    getAgents(params?: {
        period?: string;
    }): Promise<{
        agents: {
            agent_id: string;
            agent_name: string;
            avg_duration_seconds: number;
            completed_calls: number;
            completion_rate: number;
            total_calls: number;
        }[];
        period?: string | null | undefined;
    } & import("../index.js").ResponseMetadata>;
    /** Call quality — sentiment, transcription confidence, flagged calls */
    getCallQuality(params?: {
        days?: number;
        date_from?: string | null;
        date_to?: string | null;
        interval?: '1h' | '1d' | '1w';
        service_id?: string | null;
    }): Promise<{
        [x: string]: unknown;
    } & import("../index.js").ResponseMetadata>;
    /** Emotion trend data over time */
    getEmotionTrends(params?: {
        days?: number;
        date_from?: string | null;
        date_to?: string | null;
        interval?: '1h' | '1d' | '1w';
        service_id?: string | null;
    }): Promise<{
        [x: string]: unknown;
    } & import("../index.js").ResponseMetadata>;
    /** Voice pipeline latency metrics (TTFB, response time) */
    getLatency(params?: {
        days?: number;
        date_from?: string | null;
        date_to?: string | null;
        interval?: '1h' | '1d' | '1w';
        service_id?: string | null;
    }): Promise<{
        [x: string]: unknown;
    } & import("../index.js").ResponseMetadata>;
    /** Tool call performance — success rates and latency per tool */
    getToolPerformance(params?: {
        days?: number;
    }): Promise<{
        [x: string]: unknown;
    } & import("../index.js").ResponseMetadata>;
    /** Data quality metrics for the workspace world model */
    getDataQuality(params?: {
        days?: number;
    }): Promise<{
        confidence_by_source: {
            [x: string]: {
                confidence_range: string;
                count: number;
            }[];
        };
        confidence_distribution: {
            confidence_range: string;
            count: number;
        }[];
        period_end: string;
        period_start: string;
        review_pipeline: {
            [x: string]: unknown;
        };
        timeseries: {
            [x: string]: unknown;
        }[];
        total_events: number;
        workspace_id: string;
    } & import("../index.js").ResponseMetadata>;
    /** Usage summary — API requests, call minutes, storage */
    getUsage(params?: {
        days?: number;
        date_from?: string | null;
        date_to?: string | null;
        interval?: '1h' | '1d' | '1w';
        service_id?: string | null;
        direction?: string | null;
    }): Promise<{
        buckets: {
            avg_duration_seconds?: number | null | undefined;
            count: number;
            event_date: string;
            event_type: string;
            total_duration_seconds?: number | null | undefined;
        }[];
        period_end: string;
        period_start: string;
        total_events: number;
        workspace_id: string;
    } & import("../index.js").ResponseMetadata>;
    /** Event type breakdown — counts and trends per event type */
    getEventBreakdown(params?: {
        days?: number;
    }): Promise<{
        by_source: {
            count: number;
            key: string;
        }[];
        by_type: {
            count: number;
            key: string;
        }[];
        period_end: string;
        period_start: string;
        total_events: number;
        workspace_id: string;
    } & import("../index.js").ResponseMetadata>;
    /** Safety and escalation trends — risk distribution and time-series data */
    getSafetyTrends(params?: {
        days?: number;
        date_from?: string | null;
        date_to?: string | null;
        interval?: '1h' | '1d' | '1w';
        service_id?: string | null;
    }): Promise<{
        risk_distribution: {
            [x: string]: number;
        };
        summary: {
            escalation_rate: number;
            total_calls: number;
            total_escalations: number;
            total_safety_flagged: number;
            total_safety_matches: number;
        };
        trend: {
            date: string;
            escalated_count: number;
            safety_flagged: number;
            total_calls: number;
        }[];
    } & import("../index.js").ResponseMetadata>;
    /** Operator escalation performance and quality comparison */
    getOperatorPerformance(params?: {
        days?: number;
        date_from?: string | null;
        date_to?: string | null;
        interval?: '1h' | '1d' | '1w';
        service_id?: string | null;
    }): Promise<{
        summary: {
            avg_escalated_duration_seconds?: number | null | undefined;
            avg_escalated_quality_score?: number | null | undefined;
            avg_non_escalated_quality_score?: number | null | undefined;
            escalated_count: number;
            escalation_rate: number;
            operator_handled_count: number;
            total_calls: number;
        };
        trend: {
            date: string;
            escalated_count: number;
            total_calls: number;
        }[];
    } & import("../index.js").ResponseMetadata>;
    /** Advanced call statistics (abandonment, transfers, silence, hour-of-day) */
    getAdvancedCallStats(params?: {
        days?: number;
        date_from?: string | null;
        date_to?: string | null;
        interval?: '1h' | '1d' | '1w';
        service_id?: string | null;
    }): Promise<{
        [x: string]: unknown;
    } & import("../index.js").ResponseMetadata>;
    /** Compare two time periods side by side */
    compareCallPeriods(params: {
        current_from: string;
        current_to: string;
        previous_from: string;
        previous_to: string;
        service_id?: string;
    }): Promise<{
        [x: string]: unknown;
    } & import("../index.js").ResponseMetadata>;
}
//# sourceMappingURL=analytics.d.ts.map