import type { PersonaTree } from "../types.js";
export declare function migrateToTypedInsights(persona: PersonaTree): PersonaTree;
export declare class PersonaStore {
    private readonly configDir;
    constructor(configDir: string);
    /**
     * Migrate legacy flat persona files from `persona/{userId}.json`
     * to the new directory layout `persona/main/{userId}.json`.
     * Safe to call multiple times — no-ops if already migrated.
     */
    migrateFromFlatLayout(): Promise<{
        migrated: string[];
        skipped: string[];
    }>;
    private personaPath;
    load(agentId: string, userId: string): Promise<PersonaTree | undefined>;
    save(agentId: string, userId: string, persona: PersonaTree): Promise<void>;
    loadOrCreate(agentId: string, userId: string): Promise<PersonaTree>;
    listUserIds(agentId: string): Promise<string[]>;
    listAgentIds(): Promise<string[]>;
}
export declare function createDefaultPersona(): PersonaTree;
