import type { Database } from "bun:sqlite";
import type { TaskHistory } from "../types/index.js";
export declare function logTaskChange(taskId: string, action: string, field?: string, oldValue?: string | null, newValue?: string | null, agentId?: string | null, db?: Database): TaskHistory;
export declare function getTaskHistory(taskId: string, db?: Database): TaskHistory[];
export declare function getRecentActivity(limit?: number, db?: Database): TaskHistory[];
export interface RecapSummary {
    hours: number;
    since: string;
    completed: {
        id: string;
        short_id: string | null;
        title: string;
        assigned_to: string | null;
        completed_at: string | null;
        duration_minutes: number | null;
    }[];
    created: {
        id: string;
        short_id: string | null;
        title: string;
        agent_id: string | null;
        created_at: string;
    }[];
    in_progress: {
        id: string;
        short_id: string | null;
        title: string;
        assigned_to: string | null;
        started_at: string | null;
    }[];
    blocked: {
        id: string;
        short_id: string | null;
        title: string;
        assigned_to: string | null;
    }[];
    stale: {
        id: string;
        short_id: string | null;
        title: string;
        assigned_to: string | null;
        updated_at: string;
    }[];
    agents: {
        name: string;
        completed_count: number;
        in_progress_count: number;
        last_seen_at: string;
    }[];
}
export declare function getRecap(hours?: number, projectId?: string, db?: Database): RecapSummary;
//# sourceMappingURL=audit.d.ts.map