/**
 * Identity management utilities for key rotation and archiving
 */
import type { CLIIdentityFile } from "@kya-os/contracts/cli";
/**
 * Generate a new Ed25519 keypair
 */
export declare function generateKeyPair(): {
    privateKey: string;
    publicKey: string;
    kid: string;
};
/**
 * Generate a new DID based on the current environment
 */
export declare function generateDID(kid: string): string;
/**
 * Load current identity from file or environment
 */
export declare function loadCurrentIdentity(): CLIIdentityFile | null;
/**
 * Archive old key to .mcpi/keys/YYYY-MM-DD.json
 */
export declare function archiveOldKey(identity: CLIIdentityFile, reason?: string): string;
/**
 * Generate new identity with optional DID preservation
 */
export declare function generateNewIdentity(preserveDID?: string): CLIIdentityFile;
/**
 * Save identity to development file
 */
export declare function saveIdentityToDev(identity: CLIIdentityFile): void;
/**
 * Clear development identity file
 */
export declare function clearDevIdentity(): void;
/**
 * Generate audit line for key rotation
 */
export declare function generateAuditLine(oldKeyId: string, newKeyId: string, did: string, mode: "dev" | "prod", delegated: boolean, forced: boolean): string;
//# sourceMappingURL=identity-manager.d.ts.map