export type AgentSource = "project" | "user" | "builtin"; export interface DiscoveredAgent { name: string; description: string; source: AgentSource; filePath?: string; } /** Returns the absolute path to Pi's user-level agents directory. */ export declare function getUserAgentsDir(): string; export declare function findNearestProjectAgentsDir(cwd: string): string | null; export declare function discoverAgents(cwd: string): DiscoveredAgent[]; export interface AgentFrontmatter { name: string; description: string; filePath: string; tools?: string[]; output?: string; skills?: string[]; maxSubagentDepth?: number; thinking?: string; model?: string; } export declare function parseAgentFile(filePath: string): { name: string; description: string; filePath: string; } | undefined; export declare function parseAgentFileFull(filePath: string): AgentFrontmatter | undefined;