import type { ContextRecordV2 } from "../types.js";
import type { ContextStorageV2 } from "./index.js";
import type { ContextId } from "./types.js";
/**
 * Local filesystem storage backend for context records.
 *
 * Contexts are stored as JSON files in the following structure:
 * {rootDir}/.superblocks/context/{userId}/{contextName}.json
 *
 * This uses the same path structure as V1 for upload/download compatibility.
 * The migration system handles version detection and migration when loading.
 */
export declare class LocalContextStorageV2 implements ContextStorageV2 {
    readonly rootDir: string;
    private readonly SUPERBLOCKS_SYSTEM_DIR;
    constructor(rootDir: string);
    loadContext(id: ContextId): Promise<unknown | null>;
    saveContext(id: ContextId, record: ContextRecordV2): Promise<void>;
    deleteContext(id: ContextId): Promise<void>;
    deleteAllContexts(): Promise<void>;
    private getContextDir;
    private ensureBaseDirExists;
    private getFilePath;
}
//# sourceMappingURL=local.d.ts.map