import type { AgentRecord } from "../utils/types.js"; import type { IAgentStore } from "./interfaces.js"; export declare class AgentStore implements IAgentStore { private readonly registryPath; private readonly agentsDir; constructor(twiningDir: string); /** Read the registry, returning empty array if file doesn't exist. */ private readRegistry; /** Write the registry, ensuring agents/ directory exists. */ private writeRegistry; /** * Create or update an agent record. * - If agent_id exists: merge capabilities (union), overwrite role/description if provided * - If agent_id doesn't exist: create new record */ upsert(input: { agent_id: string; capabilities?: string[]; role?: string; description?: string; }): Promise; /** * Update last_active timestamp, creating a minimal record if agent doesn't exist. * This is the auto-register path (REG-01). */ touch(agentId: string): Promise; /** Get a single agent by agent_id, or null if not found. */ get(agentId: string): Promise; /** Get all agents from registry. */ getAll(): Promise; /** * Find agents with any matching capability tag (OR match). * Input tags are normalized before matching. */ findByCapabilities(tags: string[]): Promise; } //# sourceMappingURL=agent-store.d.ts.map