import type { ServerResponse } from "node:http"; import type { StudioDownloadEvent, StudioDownloadJob } from "./types.js"; export declare class StudioDownloadStore { private readonly projectRoot; private readonly emitter; private loaded; private storageAvailable; private storageError; private jobs; private events; constructor(projectRoot: string); init(): Promise; list(): StudioDownloadJob[]; get(id: string): StudioDownloadJob | null; eventsFor(id: string): StudioDownloadEvent[]; metrics(): { total: number; active: number; queued: number; storageAvailable: boolean; storageError: string | null; }; installNoteJob(input: { noteId?: string | null; source?: string | null; version?: string | null; catalogUrl?: string | null; }): Promise; writeEventsSSE(id: string, res: ServerResponse): void; private runInstall; private updateJob; private pushEvent; private persist; private downloadsDir; private storePath; }