import { MemoryMaintenanceRepository } from './maintenance-repository.js';
import { MemoryMaintenanceService } from './maintainer.js';
import type { RunMaintenanceForRecordedCandidatesOptions, RunMaintenanceForRecordedCandidatesResult } from './types.js';
/**
 * Bridges turn traces into serialized memory maintenance runs.
 */
export declare class MemoryMaintenanceIntegrationService {
    private readonly memoryRoot;
    private readonly repository;
    private readonly maintenance;
    constructor(memoryRoot: string, repository?: MemoryMaintenanceRepository, maintenance?: MemoryMaintenanceService);
    runForRecordedCandidates(options: Omit<RunMaintenanceForRecordedCandidatesOptions, 'memoryRoot'>): Promise<RunMaintenanceForRecordedCandidatesResult>;
    private runNow;
    private acquireLock;
    private releaseLock;
    private removeStaleLock;
    private enqueue;
    private static candidateIdsFromTrace;
    private static createEvent;
    private static nextMemoryStep;
    private static sleep;
}
//# sourceMappingURL=maintenance-integration.d.ts.map