/**
 * Copyright 2020 Google LLC
 * SPDX-License-Identifier: Apache-2.0
 */
import { Aead } from './aead';
/**
 * Implementation of AES-GCM.
 *
 */
export declare class AesGcm extends Aead {
    private readonly key;
    constructor(key: CryptoKey);
    /**
     */
    encrypt(plaintext: Uint8Array<ArrayBuffer>, associatedData?: Uint8Array<ArrayBuffer>): Promise<Uint8Array<ArrayBuffer>>;
    /**
     */
    decrypt(ciphertext: Uint8Array<ArrayBuffer>, associatedData?: Uint8Array<ArrayBuffer>): Promise<Uint8Array<ArrayBuffer>>;
}
export declare function fromRawKey(key: Uint8Array<ArrayBuffer>): Promise<Aead>;
