import type Database from "better-sqlite3"; import type { Config, ProjectIdentity, ResolutionSource } from "./config.js"; export interface ProjectContext extends Config, ProjectIdentity { db: Database.Database; resolutionSource: ResolutionSource; binding: string; } export declare class ProjectRuntime { private readonly dataDir?; private active; private readonly leases; constructor(root: string, source?: ResolutionSource, dataDir?: string | undefined); get current(): ProjectContext; /** Publish the entire target context only after it has opened successfully. */ switchTo(root: string, source?: ResolutionSource): ProjectContext; /** In-flight asynchronous work retains its original database until completion. */ run(name: string, work: (context: ProjectContext) => Promise): Promise; } //# sourceMappingURL=active-project.d.ts.map