/// import type { CryptoAlgorithmName } from '../cipher'; import type { CompressOptions } from '../compress'; import type { NormalizedKeyDerivationOptions } from '../key-derivation-function'; export interface SimpleHeaderData { crypto: { nonceDiff: { addCounter: bigint; } | { addFixed: bigint; resetCounter: bigint; }; authTag: Uint8Array; }; } export interface HeaderData { crypto: { algorithmName: CryptoAlgorithmName; nonce: Uint8Array; authTag: Uint8Array; }; key: { length: number; salt: Uint8Array; keyDerivationFunctionOptions: NormalizedKeyDerivationOptions; }; compressAlgorithmName: CompressOptions['algorithm'] | undefined; } export interface HeaderDataWithCiphertextLength extends HeaderData { ciphertextLength: number; } export interface SimpleHeaderDataWithCiphertextLength extends SimpleHeaderData { ciphertextLength: number; } export declare function createHeader(data: HeaderDataWithCiphertextLength): Buffer; export declare function createSimpleHeader(data: SimpleHeaderDataWithCiphertextLength): Buffer;