import type { AgentRuntimeConfig } from './runtime/runtime-types.js'; export interface ManagedAgentDiskConfig { agent_id: string; name: string; cli: string; working_dir: string; workspace_id?: string; model?: string | null; runtime_config?: AgentRuntimeConfig | null; last_spawn_at?: string; } export declare function managedAgentDir(agentId: string): string; export declare function configPathFor(agentId: string): string; export declare function apiKeyPathFor(agentId: string, workspaceId?: string): string; export declare function mcpConfigPathFor(agentId: string, workspaceId?: string, profile?: 'full' | 'compact'): string; export declare function credentialPathFor(agentId: string): string; export interface ManagedAgentCredential { credential_id: string; provider: string; fields: Record; } export declare function readAgentCredential(agentId: string): Promise; export declare function writeAgentCredential(agentId: string, credential: ManagedAgentCredential): Promise; export declare function eraseAgentCredential(agentId: string): Promise; export declare function subagentLogPathFor(agentId: string): string; export declare function cliHomeDirFor(agentId: string): string; export declare function ensureCliHomeDir(agentId: string): Promise; export declare function ensureManagedAgentDir(agentId: string): Promise; export declare function readManagedAgentConfig(agentId: string): Promise; export declare function writeManagedAgentConfig(cfg: ManagedAgentDiskConfig): Promise; export declare function readApiKey(agentId: string, workspaceId?: string): Promise; export declare function readApiKeyForRehydrate(agentId: string, workspaceId?: string): Promise; export declare function writeApiKey(agentId: string, raw: string, workspaceId?: string): Promise; export declare function writeMcpConfig(agentId: string, awbUrl: string, rawApiKey: string, workspaceId?: string, extraHeaders?: Record): Promise; export declare function readMcpConfigToolProfile(path: string): Promise; export declare function readMcpConfigServerNames(path: string): Promise; export declare function eraseSecrets(agentId: string): Promise; export declare function maskKey(raw: string): string; export declare function listManagedAgentDirs(): Promise;