import { type ScopePaths, workspaceKeyForPath } from "./paths.js"; import type { CurrentPointer, EvolutionArtifact, EvolutionProposal, EvolutionScope, GateEvidence, RevisionManifest } from "./types.js"; export { workspaceKeyForPath }; export declare function skillDirectoryName(id: string): string; export interface EvolutionStoreOptions { agentDir: string; cwd: string; sessionId: string; } export interface ActivationResult { revisionId: string; previousRevisionId: string | null; } export declare class EvolutionStore { private readonly options; private readonly paths; constructor(options: EvolutionStoreOptions); scopePaths(scope: EvolutionScope): Promise; inventory(scope: EvolutionScope): Promise<{ pendingCandidates: number; revisions: number; quarantined: number; }>; private ensureScope; private assertSafe; createCandidate(scope: EvolutionScope, proposal: EvolutionProposal): Promise; writeEvidence(scope: EvolutionScope, candidateId: string, evidence: GateEvidence): Promise; readProposal(scope: EvolutionScope, candidateId: string): Promise; getCurrent(scope: EvolutionScope): Promise; private readRevisionManifest; private recoverCurrentFromHistory; private writePointer; private appendHistory; private withActivationLock; private restorePointer; promote(_scope: EvolutionScope, _candidateId: string, _options?: { beforeActivate?: () => void; }): Promise; rollback(scope: EvolutionScope, revisionId: string): Promise; restoreActivation(scope: EvolutionScope, expectedRevisionId: string, previousRevisionId: string | null): Promise; readActiveManifest(scope: EvolutionScope): Promise; activeSkillPaths(scope: EvolutionScope): Promise>; }