import type { AgentMessage } from "@pk-nerdsaver-ai/pi-agent-core";
import { BlobStore } from "./blob-store";
import type { FileEntry } from "./session-entries";
import { type SessionStorage } from "./session-storage";
/** Exported for compaction.test.ts */
export declare function parseSessionEntries(content: string): FileEntry[];
/** Exported for testing */
export declare function loadEntriesFromFile(filePath: string, storage?: SessionStorage): Promise<FileEntry[]>;
export declare function resolveBlobRefsInEntries(entries: FileEntry[], blobStore: BlobStore): Promise<void>;
/**
 * Read-only message view of a session file: load entries, migrate to the
 * current version, resolve blob refs, and build the context along the
 * persisted leaf path (last entry). Does NOT create a writer or take the
 * session lock — safe to call against a file another session is writing.
 */
export declare function loadSessionMessagesReadOnly(filePath: string): Promise<AgentMessage[]>;
