/**
 * Auto-assign tasks to agents using local capability and workload data only.
 */
import type { Database } from "bun:sqlite";
import type { Task } from "../types/index.js";
export interface AutoAssignResult {
    task_id: string;
    assigned_to: string | null;
    agent_name: string | null;
    method: "capability_match" | "no_agents";
    reason?: string;
}
/**
 * Find the best agent to assign a task to (legacy simple version, no I/O).
 * Strategy: least-loaded agent with role "agent" (not admin/observer).
 */
export declare function findBestAgent(_task: Task, db?: Database): string | null;
/**
 * Auto-assign a task to the best available agent.
 * Uses only local SQLite state and never calls hosted provider APIs.
 */
export declare function autoAssignTask(taskId: string, db?: Database): Promise<AutoAssignResult>;
//# sourceMappingURL=auto-assign.d.ts.map