export declare const LIST_AGENTS = "\n  SELECT a.*,\n    COALESCE(s.sub_count, 0)::int AS subscription_count,\n    s.sub_topics\n  FROM lt_agents a\n  LEFT JOIN LATERAL (\n    SELECT COUNT(*)::int AS sub_count,\n           array_agg(topic ORDER BY created_at) AS sub_topics\n    FROM lt_agent_subscriptions\n    WHERE agent_id = a.id AND enabled = true\n  ) s ON true\n  WHERE ($1::text IS NULL OR a.status = $1)\n    AND ($2::text IS NULL OR a.knowledge_domain = $2)\n  ORDER BY a.updated_at DESC\n  LIMIT $3 OFFSET $4\n";
export declare const COUNT_AGENTS = "\n  SELECT COUNT(*)::int AS total FROM lt_agents\n  WHERE ($1::text IS NULL OR status = $1)\n    AND ($2::text IS NULL OR knowledge_domain = $2)\n";
export declare const GET_AGENT = "\n  SELECT * FROM lt_agents WHERE id = $1\n";
export declare const INSERT_AGENT = "\n  INSERT INTO lt_agents (id, description, status, user_id, knowledge_domain,\n    capabilities, behaviors, goals, rules, workflow_type, pipeline_id, metadata)\n  VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12)\n  RETURNING *\n";
export declare const UPDATE_AGENT = "\n  UPDATE lt_agents SET\n    description = COALESCE($2, description),\n    status = COALESCE($3, status),\n    user_id = COALESCE($4, user_id),\n    knowledge_domain = COALESCE($5, knowledge_domain),\n    capabilities = COALESCE($6, capabilities),\n    behaviors = COALESCE($7, behaviors),\n    goals = COALESCE($8, goals),\n    rules = COALESCE($9, rules),\n    workflow_type = COALESCE($10, workflow_type),\n    pipeline_id = COALESCE($11, pipeline_id),\n    metadata = COALESCE($12, metadata),\n    last_run_at = COALESCE($13, last_run_at)\n  WHERE id = $1\n  RETURNING *\n";
export declare const DELETE_AGENT = "\n  DELETE FROM lt_agents WHERE id = $1\n";
export declare const SEED_AGENT = "\n  INSERT INTO lt_agents (id, description, status, user_id, knowledge_domain,\n    capabilities, behaviors, goals, rules, workflow_type, pipeline_id, metadata)\n  VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12)\n  ON CONFLICT (id) DO NOTHING\n";
export declare const KNOWLEDGE_COUNT = "\n  SELECT COUNT(*)::int AS count FROM lt_knowledge WHERE domain = $1\n";
export declare const ESCALATION_COUNT = "\n  SELECT COUNT(*)::int AS count FROM lt_escalations\n  WHERE status = 'pending' AND created_by = $1\n";
