/** * Device credential storage keys. * * Kept in its own module (rather than crypto-storage.ts) so every caller — * CryptoStorage, the device handler and the client — shares one key builder. */ /** * Build the storage key for a device crypto record: "userid+configId". * * This is the ONE place record keys are built — enrollment, lookup and * deletion must all go through it (TOB-HSDK-8). The userid is normalized with * normalizeUserIdentifier (the whole email lowercased, including any * "+tag"), exactly as enrollment always has, so keys written by earlier SDK * versions are found unchanged. Building the key from a raw identifier * instead would leave a mixed-case plus-addressed email (Alice+Tag@Example.com) * unmatchable, because CryptoStorage.normalizeKey only lowercases up to the * first "+". */ export declare function buildDeviceRecordKey(userid: string, configId: string): string; /** * Build the storage key for a UAK key pair: "userid+configId:uak". * See buildDeviceRecordKey. */ export declare function buildUakKey(userid: string, configId: string): string; /** * Normalize a storage key for case-insensitive email handling: lowercases the * part before the FIRST "+" (the separator for non-email userids). * * On its own this does not normalize a plus-addressed email — build keys with * buildDeviceRecordKey / buildUakKey, which normalize the full identifier * first. CryptoStorage applies this as a second, idempotent pass on every key * so keys stored by earlier SDK versions (e.g. non-email usernames lowercased * here) still match. */ export declare function normalizeStorageKey(key: string): string;