export declare const RELEASE_STATE_SCHEMA_VERSION = 1; export interface ReleaseState { schemaVersion: typeof RELEASE_STATE_SCHEMA_VERSION; current?: string; previous?: string; lastKnownGood?: string; } export declare class ReleaseStore { readonly botDirectory: string; readonly releasesDirectory: string; readonly packagesDirectory: string; readonly stateFile: string; constructor(botDirectory: string); ensureDirectories(): void; readState(): ReleaseState; stateExistsRecovering(): boolean; writeState(state: ReleaseState): void; releaseDirectory(id: string): string; packageDirectory(id: string): string; activate(id: string): ReleaseState; markLastKnownGood(id: string): ReleaseState; restoreLastKnownGood(): string | undefined; migrateLegacyLinks(): ReleaseState; cleanup(options?: { protectedRuntimePaths?: string[]; keepRecent?: number; keepPackages?: number; }): void; private assertUsableRelease; private readLegacyLink; releaseIdForRuntimePath(runtimePath: string): string | undefined; private assertReleaseId; }