/** What a data key is wrapped for: a KMS can bind it (AWS/GCP "encryption context"). */
export interface KmsContext {
    purpose: string;
}
/**
 * Envelope encryption: every sealed value gets a fresh data key, the KMS wraps it, and the wrapped
 * key is stored inside the sealed value. Only the KMS can unwrap it.
 */
export interface KmsAdapter {
    wrap(dataKey: Uint8Array, context: KmsContext): Uint8Array | Promise<Uint8Array>;
    unwrap(wrapped: Uint8Array, context: KmsContext): Uint8Array | Promise<Uint8Array>;
}
/**
 * A KMS that lives in memory, for tests and local development: Adonis' AES-256-GCM under a master
 * key that never leaves the process (pass the same `masterKey` to read values back later).
 */
export declare function createInMemoryKms(masterKey?: string): KmsAdapter;
//# sourceMappingURL=kms.d.ts.map