/// /** * @remarks * This package exposes a number of methods that allow access to simple encryption and decryption of strings for storage on the local machine. * * @experimental * @public * @packageDocumentation */ /** * Whether encryption is available. * * On Linux, returns true if the app has emitted the ready event and the secret key is available. * On MacOS, returns true if Keychain is available. * On Windows, returns true once the app has emitted the ready event. * * @public */ export declare function isEncryptionAvailable(): Promise; /** * Encrypts the string. This function will throw an error if encryption fails. * * @public */ export declare function encryptString(plainText: string): Promise; /** * Decrypts the encrypted buffer obtained with safeStorage.encryptString back into a string. * * @public */ export declare function decryptString(encrypted: Buffer): Promise;