/** * @module encrypt helper/util/etc. functions * * this is where you will find helper functions like those that generate * and parse ibs for encryption ibgibs. */ import { Ib } from '@ibgib/ts-gib/dist/types.mjs'; import { EncryptionData_V1, EncryptionIbGib_V1, EncryptionInfo, EncryptionMethod } from './encrypt-types.mjs'; import { MetaspaceService } from "../../witness/space/metaspace/metaspace-types.mjs"; import { IbGibSpaceAny } from "../../witness/space/space-base-v1.mjs"; export declare function validateCommonEncryptionData({ data, }: { data?: EncryptionData_V1; }): string[]; export declare function validateCommonEncryptionIbGib({ ibGib, }: { ibGib: EncryptionIbGib_V1; }): Promise; /** * builds the ib based on data. * * atow (02/2024) this is only data.name and data.method. * * @returns `${ENCRYPTION_ATOM} ${method} ${name}` atow (02/2024) */ export declare function getEncryptionIb({ data, }: { data: EncryptionData_V1; }): Ib; /** * Current schema is `${ENCRYPTION_ATOM} ${method} ${name}` * * NOTE this is space-delimited */ export declare function parseEncryptionIb({ ib, }: { ib: Ib; }): { atom: string; method: string; name: string; }; export declare function createAndRegisterNewEncryption({ encryptionMethod, encryptionInfo, metaspace, space, }: { encryptionMethod: EncryptionMethod; encryptionInfo: EncryptionInfo; metaspace: MetaspaceService; space: IbGibSpaceAny; }): Promise; //# sourceMappingURL=encrypt-helper.d.mts.map