import { BatchUserAttribute } from './BatchUserAttribute'; /** * Batch's user module */ export declare const BatchUser: { /** * Get the unique installation ID, generated by Batch. Batch must be started to read it. * You will get the result in a promise. */ getInstallationID: () => Promise; /** * Get the custom user identifier. * @returns The custom user identifier set with BatchUser.editor().setIdentifier(); */ getIdentifier: () => Promise; /** * Get the region. * @returns The region set with BatchUser.editor().setRegion(); */ getRegion: () => Promise; /** * Get the language. * @returns The language set with BatchUser.editor().setLanguage(); */ getLanguage: () => Promise; /** * Read the saved attributes. * Reading is asynchronous so as not to interfere with saving operations. * @returns The attributes set with Batch.editor().setAttribute() */ getAttributes: () => Promise<{ [key: string]: BatchUserAttribute; }>; /** * Get the tag collections. * @returns The tags added with BatchUser.editor().addTag() */ getTagCollections: () => Promise<{ [key: string]: string[]; }>; /** * Clear all tags and attributes set on an installation and their local cache returned by fetchAttributes and fetchTagCollections. * This doesn’t affect data set on profiles using BatchProfile. */ clearInstallationData: () => void; };