import type { AgentBackend, AgentSession } from "../agent/types.js"; export declare const SESSION_ARCHIVE_MANIFEST = "manifest.json"; export type SessionArchiveSource = { path: string; role: string; format: "native-jsonl"; } | { path: string; role: string; format: "opencode-db"; }; export interface SessionArchiveManifest { schema_version: 1; session_id: string; chat_id: string; source: string; backend: string; agent_session_id: string; started_at: string; archived_at: string; timezone: string; sources: SessionArchiveSource[]; } export interface SessionArchiveMetadata { botId: string; chatId: string; sessionId: string; source: string; backend: string; startedAt: string; archivedAt: string; } export declare function archiveAgentSession(niubotHome: string, backend: AgentBackend, agentSession: AgentSession, metadata: SessionArchiveMetadata): Promise; export declare function getSessionArchiveDirectory(niubotHome: string, botId: string, chatId: string): string; export declare function buildArchiveDirectoryName(metadata: Pick): string;