interface AgentConfig { agentId: string; agent?: string; harness?: string; model?: string; created?: string; memoryPaths?: Record; dreamWeaver?: Record; } declare function loadAgentConfig(id: string): AgentConfig | null; declare function saveAgentConfig(id: string, config: AgentConfig): void; declare function getAgentId(harnessHint?: 'claude-code' | 'openclaw'): string; interface LdmPaths { root: string; bin: string; secrets: string; state: string; config: string; crystalDb: string; crystalLance: string; agentRoot: string; transcripts: string; sessions: string; daily: string; journals: string; workspace: string; } declare function ldmPaths(agentId?: string): LdmPaths; declare function scaffoldLdm(agentId?: string): LdmPaths; /** Copy crystal-capture.sh from the package's scripts/ dir to ~/.ldm/bin/. */ declare function deployCaptureScript(): string; /** Install the crystal-capture cron entry. Idempotent: replaces existing entry if present. */ declare function installCron(): void; /** Remove the crystal-capture cron entry. */ declare function removeCron(): void; /** Copy ldm-backup.sh from the package's scripts/ dir to ~/.ldm/bin/. */ declare function deployBackupScript(): string; /** Install a LaunchAgent for daily backups at 03:00. */ declare function installBackupLaunchAgent(): string; /** Resolve a path that might exist at the legacy .openclaw location. * Returns the LDM path if the file exists there, otherwise checks legacy. * For writing, always use the ldmPath directly. */ declare function resolveStatePath(filename: string): string; /** Get the write path for state files (always LDM). */ declare function stateWritePath(filename: string): string; /** Resolve a secrets path. Checks ~/.ldm/secrets first, then ~/.openclaw/secrets. */ declare function resolveSecretPath(filename: string): string; declare function ensureLdm(agentId?: string): LdmPaths; export { type AgentConfig, type LdmPaths, deployBackupScript, deployCaptureScript, ensureLdm, getAgentId, installBackupLaunchAgent, installCron, ldmPaths, loadAgentConfig, removeCron, resolveSecretPath, resolveStatePath, saveAgentConfig, scaffoldLdm, stateWritePath };