export type AgentFormat = 'filetree' | 'typescript'; export interface AgentContext { agentPath: string; agentId: string; packageName: string; hasBrain: boolean; /** Agent format: 'filetree' (v7+) or 'typescript' (legacy) */ format: AgentFormat; } /** * Detect an agent in the given directory. * Checks for file-tree agent (agent.yaml) first, then legacy TS agent (package.json). * Returns null if the directory is not a valid agent project. */ export declare function detectAgent(dir?: string): AgentContext | null;