export interface AgentSubscription { id: string; agent_id: string; topic: string; filter?: Record; reaction_type: 'durable' | 'pipeline' | 'mcp_query' | 'capability'; workflow_type?: string; pipeline_id?: string; mcp_prompt?: string; server_id?: string; tool_name?: string; input_mapping: Record; execute_as?: string; enabled: boolean; created_at: string; updated_at: string; } export interface ActiveSubscription extends AgentSubscription { agent_name: string; agent_user_id?: string; } export declare function listSubscriptions(agentId: string): Promise; export declare function getSubscription(id: string): Promise; export declare function createSubscription(agentId: string, data: Partial): Promise; export declare function updateSubscription(id: string, data: Partial): Promise; export declare function deleteSubscription(id: string): Promise; export declare function listActiveSubscriptions(): Promise; /** * Seed a subscription at startup (insert-if-absent). * Conflict on (agent_id, topic) — DB is source of truth after first boot. */ export declare function seedSubscription(agentId: string, data: Partial): Promise;