/** * `/import-session` slash-command surface (issue #3709). * * The documented CLI contract: * * /import-session [--provider codex|claude] * * The file argument is an explicit user-selected Codex rollout transcript, * Claude Code transcript, or claude.ai export. Provider detection is automatic; * `--provider` narrows it and fails closed on a mismatch. */ import type { SessionImportCompleted, SessionImportProviderId } from "./types"; export declare const IMPORT_SESSION_USAGE = "Usage: /import-session [--provider codex|claude]"; export type ParsedImportSessionArgs = { kind: "ok"; sourcePath: string; provider?: SessionImportProviderId; } | { kind: "error"; message: string; }; export declare function parseImportSessionArgs(args: string): ParsedImportSessionArgs; export type SessionImportCommandOutcome = { kind: "imported"; result: SessionImportCompleted; } | { kind: "error"; message: string; }; /** * Shared non-UI flow for both the text/ACP handler and the TUI handler: * import into a NEW session file; the caller decides how to present/switch. * Never mutates the current session. */ export declare function runSessionImportCommand(args: string, cwd: string): Promise;