export * from "./client"; /** * Store credentials in browser local storage * * The credentials object is an arbitrary, JSON-serializable structure, identified by an arbitrary ID string. * It is typically either a structure with all the user's credentials, keyed by some identifier, or a single set of credentials. * The 32-bytes user secret is used to encrypt the data and must be kept somewhere else, typically in a user's data on a backend system. * It should be a cryptographically secure random value. */ export declare function storeCredentials(id: string, userSecret: Uint8Array, credentials: unknown): void; /** * Load credentials from browser local storage */ export declare function loadCredentials(id: string, userSecret: Uint8Array): unknown; /** * Remove a single set of credentials from browser local storage */ export declare function removeCredentials(id: string): void; /** * Clear all stored credentials from browser local storage */ export declare function clearCredentials(): void;