import { Keystore } from './keystore'; import { AuditLog } from './audit'; export interface KeyRotationRecord { oldDid: string; newDid: string; rotatedAt: string; reason?: string; credentialsReissued: number; status: 'pending' | 'completed' | 'failed'; } export interface KeyRotationHistory { version: number; identity: string; rotations: KeyRotationRecord[]; } export declare class KeyRotationManager { private basePath; private keystore; private auditLog?; constructor(basePath: string, keystore: Keystore, auditLog?: AuditLog); private getRotationHistoryPath; /** * Load rotation history */ private loadHistory; /** * Save rotation history */ private saveHistory; /** * Rotate a key for an identity */ rotateKey(oldDid: string, reason?: string): Promise<{ newDid: string; record: KeyRotationRecord; }>; /** * Get rotation history for a DID */ getRotationHistory(did: string): Promise; /** * Get current DID (after all rotations) */ getCurrentDid(originalDid: string): Promise; /** * Check if a DID has been rotated */ isRotated(did: string): Promise; /** * Mark old identity as deprecated */ markDeprecated(oldDid: string): Promise; /** * List all rotations */ listRotations(): Promise; } //# sourceMappingURL=rotation.d.ts.map