/** * Copyright Daytona Platforms Inc. * SPDX-License-Identifier: Apache-2.0 */ import type { ProjectSessionData, SessionInfo } from './types'; export declare class ProjectDataStorage { private readonly storageDir; constructor(storageDir: string); /** * Get the file path for a project's session data */ private getProjectFilePath; /** * List known project IDs from storage. */ private listProjectIds; /** * Load project session data from disk */ load(projectId: string): ProjectSessionData | null; /** * Get a session for a project. If not found in the requested project, search all other * projects on disk and, if found, migrate it into the requested project. */ getSession(projectId: string, worktree: string, sessionId: string): SessionInfo | undefined; /** * Save project session data to disk */ save(projectId: string, worktree: string, sessions: Record): void; /** * Get branch number for a sandbox */ getBranchNumberForSandbox(projectId: string, sandboxId: string): number | undefined; /** * Update a single session in the project file */ updateSession(projectId: string, worktree: string, sessionId: string, sandboxId: string, branchNumber?: number): void; /** * Remove a session from the project file */ removeSession(projectId: string, worktree: string, sessionId: string): void; }