import { P as PartialCustomServiceSchema } from '../types-Cdh7thEZ.mjs'; import { buildClient, NodeCachingMaterialsManager } from '@aws-crypto/client-node'; import 'moleculer'; import 'bson'; import 'zod/v4'; import 'ajv/dist/2019.js'; import 'pino'; import 'pino-pretty'; declare const kCmm: unique symbol; type EncryptorMixinSettings = { keyId: string | undefined; cacheMaxAge: number; cacheCapacity: number; cacheMaxBytesEncrypted?: number; cacheMaxMessagesEncrypted?: number; localMasterKey?: string; }; declare function EncryptorMixin({ keyId, cacheMaxMessagesEncrypted, cacheMaxAge, cacheCapacity, cacheMaxBytesEncrypted, localMasterKey, }: EncryptorMixinSettings): PartialCustomServiceSchema; /** * Get a keyring for a specific key ID * This keyring is wrapped in a caching manager in order to reduce KMS calls. * * More info: https://docs.aws.amazon.com/encryption-sdk/latest/developer-guide/data-key-caching.html */ getEncryptorCmm(): NodeCachingMaterialsManager; encrypt(plainData: Buffer | string): Promise; decrypt(encryptedData: Uint8Array | string): Promise; }, unknown>; export { EncryptorMixin, kCmm }; export type { EncryptorMixinSettings };