/**
 * Subagent Persistent Memory
 *
 * Scoped memory system for subagents with user/project/local scopes,
 * topic files, and context injection support.
 */
export type MemoryScope = 'user' | 'project' | 'local';
export interface SubagentMemoryConfig {
    agentName: string;
    scope: MemoryScope;
    maxLines: number;
    memoryDir?: string;
}
export declare class SubagentMemory {
    private config;
    private memoryPath;
    constructor(config: SubagentMemoryConfig);
    /**
     * Get memory directory path based on scope
     */
    static getMemoryDir(agentName: string, scope: MemoryScope): string;
    /**
     * Ensure the memory directory exists
     */
    private ensureDir;
    /**
     * Get the MEMORY.md file path
     */
    private getMemoryFilePath;
    /**
     * Read MEMORY.md (first maxLines lines)
     */
    readMemory(): string;
    /**
     * Write to MEMORY.md (replace all content)
     */
    writeMemory(content: string): void;
    /**
     * Append to MEMORY.md
     */
    appendMemory(entry: string): void;
    /**
     * Read a specific topic file
     */
    readTopic(topicName: string): string | null;
    /**
     * Write a topic file
     */
    writeTopic(topicName: string, content: string): void;
    /**
     * List all memory files
     */
    listMemoryFiles(): string[];
    /**
     * Check if memory exists (MEMORY.md file)
     */
    hasMemory(): boolean;
    /**
     * Get memory size in bytes
     */
    getMemorySize(): number;
    /**
     * Clear all memory
     */
    clearMemory(): void;
    /**
     * Generate context injection (first maxLines lines of MEMORY.md)
     */
    getContextInjection(): string;
    getAgentName(): string;
    getScope(): MemoryScope;
    getMemoryPath(): string;
}
