import type { CryptoContext, EncryptionPolicyResolver } from "../types.js"; /** * Database-agnostic policy data structure */ export interface PolicyData { encryptionAlgorithm: string | null; keyRotationIntervalDays: number | null; streamTypeClass: string; keyScope: string | null; } /** * Database-agnostic interface for policy storage operations. */ export interface PolicyStorage { findPolicy(params: { partition: string; streamType: string | null; }): Promise; } /** * Type for key scope configuration */ export type KeyScope = "stream" | "type" | "partition"; /** * Database-agnostic EncryptionPolicyResolver implementation. */ export declare function createPolicyResolver(storage: PolicyStorage, onError?: (error: unknown, ctx: CryptoContext) => void): EncryptionPolicyResolver; //# sourceMappingURL=policy.resolver.d.ts.map