import type { Embedder } from './embedders/types.js';
import type { Lesson } from './types.js';
/**
 * Parse one engine `mem-*.md` into a `Lesson`. Verified frontmatter: id, description, created_at,
 * [updated_at], consumed_by_user_lessons, scope (scalar), origin (NESTED). We carry the semantic
 * payload (description + body) + `scope` (as an FTS-discoverable tag) + createdAt; nested `origin`
 * and other provenance stay in the retained source files (the migration is additive).
 */
export declare function parseMemoryFile(raw: string, fallbackId: string): Lesson;
/**
 * Copy every `mem-*.md` in `memDir` into the libSQL store: write each as a per-file record (the
 * source of truth), then rebuild the derived index. Returns the number migrated.
 */
export declare function migrateMemories(opts: {
    memDir: string;
    sourceDir: string;
    dbUrl: string;
    embedder: Embedder;
}): Promise<{
    migrated: number;
}>;
//# sourceMappingURL=migrate_memories.d.ts.map