import { IEncryptedBlob, IEncryptedBlobJSON, IEncryptedBlobOptions } from '../types'; import codecs, { Codec, CodecName, CodecOption, InType, OutType, SupportedCodec } from '@consento/codecs'; import { Inspectable } from '../util'; import { InspectOptions } from 'inspect-custom-symbol'; export declare function isEncryptedBlob(input: any): input is IEncryptedBlob; export declare function isEncryptedBlobOfCodec(input: any, codec: TCodec): input is IEncryptedBlob>; export declare function isEncryptedBlobJSON(input: IEncryptedBlobJSON | IEncryptedBlob): input is IEncryptedBlobJSON; export declare function isEncryptedBlobJSONOfCodec(input: IEncryptedBlobJSON | IEncryptedBlob>, codec: TCodec): input is IEncryptedBlobJSON>; export declare class EncryptedBlob extends Inspectable implements IEncryptedBlob> { _secretKey?: Uint8Array; _secretKeyHex?: string; _locationKey?: Uint8Array; _locationKeyBase32?: string; codec: Codec; size?: number | undefined; _path?: string[]; constructor({ secretKey, codec, size }: IEncryptedBlobOptions); get secretKey(): Uint8Array; get secretKeyHex(): string; get locationKey(): Uint8Array; get locationKeyBase32(): string; get path(): string[]; decrypt(encrypted: Uint8Array): OutType; toJSON(): IEncryptedBlobJSON>; _inspect(_: number, { stylize }: InspectOptions): string; } export declare function toEncryptedBlob(input: string | Uint8Array): IEncryptedBlob; export declare function toEncryptedBlob(input: string | Uint8Array, codec: TCodec): IEncryptedBlob>; export declare function toEncryptedBlob>(input: TBlob): TBlob; export declare function toEncryptedBlob(input: IEncryptedBlobJSON): IEncryptedBlob; export declare function encryptBlob(encodable: InType, codec?: TCodec): { blob: IEncryptedBlob>; encrypted: Uint8Array; };