import type { Database } from "bun:sqlite";
import type { Task } from "../types/index.js";
export interface PatrolIssue {
    type: "stuck" | "low_confidence" | "orphaned" | "needs_review" | "zombie_blocked";
    task_id: string;
    task_title: string;
    severity: "low" | "medium" | "high" | "critical";
    detail: string;
}
export interface PatrolResult {
    issues: PatrolIssue[];
    total_issues: number;
    scanned_at: string;
}
/**
 * Patrol tasks for issues:
 * - stuck: in_progress for longer than threshold
 * - low_confidence: completed with confidence below threshold
 * - orphaned: no project, no agent, not completed
 * - needs_review: requires_approval but not approved, and completed
 * - zombie_blocked: pending tasks whose blockers are all failed/cancelled
 */
export declare function patrolTasks(opts?: {
    stuck_minutes?: number;
    confidence_threshold?: number;
    project_id?: string;
}, db?: Database): PatrolResult;
/**
 * Get review queue: tasks that need human/agent review.
 */
export declare function getReviewQueue(opts?: {
    project_id?: string;
    limit?: number;
}, db?: Database): Task[];
//# sourceMappingURL=patrol.d.ts.map