import type { FileSystem, JsonlSessionMetadata, SessionStorage, SessionTreeEntry } from "../types.ts"; type JsonlSessionStorageFileSystem = Pick; export declare function loadJsonlSessionMetadata(fs: JsonlSessionStorageFileSystem, filePath: string): Promise; export declare class JsonlSessionStorage implements SessionStorage { private readonly fs; private readonly filePath; private readonly metadata; private entries; private byId; private labelsById; private currentLeafId; private constructor(); static open(fs: JsonlSessionStorageFileSystem, filePath: string): Promise; static create(fs: JsonlSessionStorageFileSystem, filePath: string, options: { cwd: string; sessionId: string; parentSessionPath?: string; }): Promise; getMetadata(): Promise; getLeafId(): Promise; setLeafId(leafId: string | null): Promise; createEntryId(): Promise; appendEntry(entry: SessionTreeEntry): Promise; getEntry(id: string): Promise; findEntries(type: TType): Promise>>; getLabel(id: string): Promise; getPathToRoot(leafId: string | null): Promise; getEntries(): Promise; } export {}; //# sourceMappingURL=jsonl-storage.d.ts.map