import type { UserDoc } from "@raytio/maxcryptor"; import type { ICognitoUserAttributeData } from "amazon-cognito-identity-js"; /** * Given a `UserDoc` from the maxcryptor, this returns an object * which you can provide to `Auth.updateUserAttributes()`. It is * an object of stringified Json. * * Note: Only includes attributes that exist in userDoc. Missing attributes * are filtered out to avoid Cognito "Attribute value must not be null" errors. */ export declare const toCognitoAttributes: (userDoc: UserDoc) => { [customCognitoName: string]: string; }; /** * This function converts Cognito's userAttributes into a maxcryptor UserDoc. * The userAttributes come from `const attributes = await Auth.userAttributes(user)` */ export declare const fromCognitoAttributes: (attributes: ICognitoUserAttributeData[]) => UserDoc;