export interface UsageFilters {
    since?: string;
    repo?: string;
    tool?: string;
    session_id?: string;
    limit?: number;
}
export interface RetroFilters {
    project?: string;
    skill?: string;
    friction_category?: string;
    since?: string;
    limit?: number;
    zuvo_dir?: string;
}
export interface InsightCandidate {
    kind: "tool_optimization" | "skill_gap" | "memory_candidate" | "routing_rule" | "missing_template";
    title: string;
    content: string;
    repo?: string;
    scope: "global_team" | "repo_team";
    confidence: number;
    impact_score: number;
    source: "usage" | "retro" | "analysis";
    evidence: Array<Record<string, unknown>>;
    suggested_action?: Record<string, unknown>;
}
interface RetroEntry {
    ts: number;
    project: string;
    skill: string;
    code_type?: string;
    friction_category?: string;
    missing_template?: string;
    context_gap?: string;
    turns_wasted: number;
    tool_calls: number;
    files_read: number;
    files_modified: number;
    branch?: string;
    sha7?: string;
    blind_audit?: string;
    adversarial?: string;
    codesift?: string;
    routing_status?: string;
    markdown_body?: string;
    proposals?: Array<{
        rank: number;
        content: string;
    }>;
    source_ref: string;
}
export declare function usageHotspots(filters?: UsageFilters): Promise<{
    usage_path: string;
    total_entries: number;
    slow_tools: {
        tool: string;
        calls: number;
        avg_elapsed_ms: number;
        max_elapsed_ms: number;
        total_tokens: number;
        avg_tokens: number;
    }[];
    token_heavy_tools: {
        tool: string;
        calls: number;
        avg_elapsed_ms: number;
        max_elapsed_ms: number;
        total_tokens: number;
        avg_tokens: number;
    }[];
    repeated_calls: Record<string, unknown>[];
    recommendations: {
        kind: string;
        tool: string;
        message: string;
    }[];
}>;
export declare function usageTraceSession(options: {
    session_id: string;
    limit?: number;
}): Promise<{
    session_id: string;
    calls: {
        index: number;
        ts: number;
        iso_time: string;
        tool: string;
        repo: string;
        elapsed_ms: number;
        result_tokens: number;
        result_chunks: number;
        args_summary: Record<string, unknown>;
    }[];
}>;
export declare function retrosList(filters?: RetroFilters): Promise<{
    zuvo_dir: string;
    total: number;
    retrospectives: RetroEntry[];
}>;
export declare function retrosAnalyze(filters?: RetroFilters): Promise<{
    zuvo_dir: string;
    total: number;
    by_friction: {
        friction_category: string;
        count: number;
        turns_wasted: number;
        tool_calls: number;
    }[];
    by_project: {
        project: string;
        count: number;
        turns_wasted: number;
    }[];
    missing_templates: {
        missing_template: string;
        count: number;
    }[];
}>;
export declare function memoryCandidateExtract(filters?: UsageFilters & RetroFilters): Promise<{
    total: number;
    candidates: InsightCandidate[];
}>;
export declare function optimizationCandidates(filters?: UsageFilters & RetroFilters): Promise<{
    generated_at: string;
    candidates: InsightCandidate[];
}>;
export declare function popeInsightsPushCandidates(options: {
    server?: string;
    api_key?: string;
    dry_run?: boolean;
    since?: string;
    repo?: string;
    zuvo_dir?: string;
}): Promise<unknown>;
export {};
//# sourceMappingURL=insights-tools.d.ts.map