import type Database from 'better-sqlite3';
export interface SquadActivity {
    id: string;
    squad_code: string;
    conversation_id: string | null;
    started_at: string;
    finished_at: string | null;
    duration_ms: number | null;
    status: 'running' | 'completed' | 'failed';
    user_message: string | null;
    result_summary: string | null;
    triggered_by: string;
    created_at: string;
}
export interface DailySummary {
    squad_code: string;
    activity_count: number;
    completed_count: number;
    failed_count: number;
    total_duration_ms: number;
    activities: SquadActivity[];
}
export declare function logActivityStart(db: Database.Database, params: {
    squadCode: string;
    conversationId?: string;
    userMessage?: string;
    triggeredBy?: string;
}): SquadActivity;
export declare function logActivityComplete(db: Database.Database, activityId: string, resultSummary?: string): void;
export declare function logActivityFail(db: Database.Database, activityId: string, error?: string): void;
export declare function getActivitiesByDate(db: Database.Database, date: string, squadCode?: string): SquadActivity[];
export declare function getDailySummary(db: Database.Database, date: string): DailySummary[];
export declare function getRecentActivities(db: Database.Database, limit?: number): SquadActivity[];
export declare function formatDailySummaryForPrompt(summaries: DailySummary[]): string;
//# sourceMappingURL=activity-service.d.ts.map