import type { KeyManagement } from "../types.js"; /** * Database-agnostic interfaces for key storage operations. * These interfaces abstract away the specific database implementation. */ export interface KeyStorage { findActiveKey(params: { partition: string; keyRef: string; }): Promise<{ keyId: string; keyVersion: number; keyMaterial: Uint8Array; } | null>; findKeyById(params: { partition: string; keyId: string; }): Promise<{ keyId: string; keyVersion: number; keyMaterial: Uint8Array; } | null>; findCurrentActiveKeyVersion(params: { partition: string; keyRef: string; }): Promise; insertKey(params: { keyId: string; partition: string; keyMaterial: Uint8Array; keyVersion: number; }): Promise; deactivateKeys(params: { partition: string; keyRef: string; }): Promise; destroyPartitionKeys(params: { partition: string; }): Promise; } /** * Utility functions for key management (database-agnostic) */ export declare function randomKey(): Uint8Array; export declare function generateKeyId(partition: string, keyRef: string, version: number): string; /** * Database-agnostic KeyManagement implementation. */ export declare function createKeyManagement(storage: KeyStorage): KeyManagement; //# sourceMappingURL=keys.core.d.ts.map