import type { AnyBlock, AnyLink } from './types.js';
import type { MultihashHasher } from 'multiformats';
declare const encrypt: ({ get, cids, hasher, key, cache, chunker, root }: {
    get: (cid: AnyLink) => Promise<AnyBlock | undefined>;
    key: ArrayBuffer;
    cids: AnyLink[];
    hasher: MultihashHasher<number>;
    chunker: (bytes: Uint8Array) => AsyncGenerator<Uint8Array>;
    cache: (cid: AnyLink) => Promise<AnyBlock>;
    root: AnyLink;
}) => AsyncGenerator<any, void, unknown>;
declare const decrypt: ({ root, get, key, cache, chunker, hasher }: {
    root: AnyLink;
    get: (cid: AnyLink) => Promise<AnyBlock | undefined>;
    key: ArrayBuffer;
    cache: (cid: AnyLink) => Promise<AnyBlock>;
    chunker: (bytes: Uint8Array) => AsyncGenerator<Uint8Array>;
    hasher: MultihashHasher<number>;
}) => AsyncGenerator<AnyBlock, void, undefined>;
export { encrypt, decrypt };
