import { type FileError, type Result, type SessionMetadata, type SessionStorage, type SessionTreeEntry } from '../types.ts'; import { Session } from './session.ts'; export declare function createSessionId(): string; export declare function createTimestamp(): string; export declare function toSession(storage: SessionStorage): Session; export declare function getFileSystemResultOrThrow(result: Result, message: string): TValue; export declare function getEntriesToFork(storage: SessionStorage, options: { entryId?: string; position?: 'before' | 'at'; }): Promise;