import type { ExternalMemoryBackend, ExternalMemoryRecord } from './universal.js';
interface MarkdownMemoryBackendOptions {
    name?: string;
    workspaceDir: string;
    rootFile?: string;
    memoryDir?: string;
}
/**
 * Generic markdown-file memory backend.
 *
 * Designed to complement file-based memory systems (OpenClaw, custom agents,
 * local notes-based memories) without replacing their native storage model.
 */
export declare class MarkdownMemoryBackend implements ExternalMemoryBackend {
    readonly name: string;
    private readonly workspaceDir;
    private readonly rootFile;
    private readonly memoryDir;
    constructor(options: MarkdownMemoryBackendOptions);
    save(record: ExternalMemoryRecord): Promise<{
        id: string;
    }>;
    search(query: string, options?: {
        limit?: number;
    }): Promise<ExternalMemoryRecord[]>;
    delete(id: string): Promise<boolean>;
    private listMemoryFiles;
}
/**
 * OpenClaw adapter built on top of markdown memory conventions.
 */
export declare class OpenClawMarkdownBackend extends MarkdownMemoryBackend {
    constructor(options?: {
        workspaceDir?: string;
    });
}
export {};
