// Copyright Amazon.com Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 import { EncryptionRequest, DecryptionRequest } from '.' import { EncryptionMaterial, DecryptionMaterial, SupportedAlgorithmSuites, } from './types' import { NodeAlgorithmSuite } from './node_algorithms' import { WebCryptoAlgorithmSuite } from './web_crypto_algorithms' /* * This public interface to the MaterialsManager object is provided for * developers of CMMs and keyrings only. If you are a user of the AWS Encryption * SDK and you are not developing your own CMMs and/or keyrings, you do not * need to use it and you should not do so. */ export interface GetEncryptionMaterials { (request: EncryptionRequest): Promise> } export interface GetDecryptMaterials { (request: DecryptionRequest): Promise> } export interface MaterialsManager { getEncryptionMaterials: GetEncryptionMaterials decryptMaterials: GetDecryptMaterials } export interface NodeMaterialsManager extends MaterialsManager {} export interface WebCryptoMaterialsManager extends MaterialsManager {}