import type { AgentMessage } from "@earendil-works/pi-agent-core"; import type { StorageNamespace } from "../context"; export interface ChatSession { id: string; workbookId: string; name: string; agentMessages: AgentMessage[]; createdAt: number; updatedAt: number; } export interface VfsFile { id: string; sessionId: string; path: string; data: Uint8Array; } export interface SkillFile { id: string; skillName: string; path: string; data: Uint8Array; } export declare function getSessionMessageCount(session: ChatSession): number; export declare function getOrCreateDocumentId(ns: StorageNamespace): Promise; export declare function listSessions(ns: StorageNamespace, workbookId: string): Promise; export declare function createSession(ns: StorageNamespace, workbookId: string, name?: string): Promise; export declare function getSession(ns: StorageNamespace, sessionId: string): Promise; export declare function saveSession(ns: StorageNamespace, sessionId: string, agentMessages: AgentMessage[]): Promise; export declare function renameSession(ns: StorageNamespace, sessionId: string, name: string): Promise; export declare function deleteSession(ns: StorageNamespace, sessionId: string): Promise; export declare function getOrCreateCurrentSession(ns: StorageNamespace, workbookId: string): Promise; export declare function saveVfsFiles(ns: StorageNamespace, sessionId: string, files: { path: string; data: Uint8Array; }[]): Promise; export declare function loadVfsFiles(ns: StorageNamespace, sessionId: string): Promise<{ path: string; data: Uint8Array; }[]>; export declare function deleteVfsFiles(ns: StorageNamespace, sessionId: string): Promise; export declare function saveSkillFiles(ns: StorageNamespace, skillName: string, files: { path: string; data: Uint8Array; }[]): Promise; export declare function loadSkillFiles(ns: StorageNamespace, skillName: string): Promise<{ path: string; data: Uint8Array; }[]>; export declare function loadAllSkillFiles(ns: StorageNamespace): Promise<{ skillName: string; path: string; data: Uint8Array; }[]>; export declare function deleteSkillFiles(ns: StorageNamespace, skillName: string): Promise; export declare function listSkillNames(ns: StorageNamespace): Promise; //# sourceMappingURL=db.d.ts.map