import type { DiscoveredSource } from '../ir.ts'; import { adapterByKey } from '../formats/index.ts'; export interface MigrateOptions { /** Only import these source keys (default: every detected source). */ sources?: string[]; /** Where sessions go; default `$DSH_HOME/sessions` or `~/.dsh/sessions`. */ outRoot?: string; /** Home directory to scan (default: the real home). */ home?: string; /** Also append imported memories to this project's AGENTS.md. */ instructionsProject?: string; /** Cap on sessions per source (most recent win). */ limit?: number; /** Report one line per imported session. */ verbose?: boolean; } export interface MigrateReport { detected: DiscoveredSource[]; sessions: { source: string; id: string; path: string; events: number; }[]; memorySessions: { source: string; id: string; path: string; events: number; }[]; instructionsFile?: string; skipped: { source: string; reason: string; }[]; } /** The default DSH session root for imported logs (raw JSONL encoding). */ export declare function defaultSessionsRoot(home: string): string; /** Run detection across all adapters. */ export declare function detect(home: string, sources?: string[]): Promise; /** Run the full migration. */ export declare function migrate(options?: MigrateOptions): Promise; /** Append (or replace) the dsh-migrate block in a project's AGENTS.md. */ export declare function appendAgentsBlock(projectDir: string, block: string): Promise; export { adapterByKey };