// Type definitions for keytar 3.0.2 // Project: http://atom.github.io/node-keytar/ // Definitions by: Milan Burda , Brendan Forster // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /** * Get the stored password for the service and account. * * @param service The string service name. * @param account The string account name. * * @returns the string password or null on failures. */ export declare function getPassword(service: string, account: string): string | null; /** * Add the password for the service and account to the keychain. * * @param service The string service name. * @param account The string account name. * @param password The string password. * * @returns true on success, false on failure. */ export declare function addPassword(service: string, account: string, password: string): boolean; /** * Delete the stored password for the service and account. * * @param service The string service name. * @param account The string account name. * * @returns true on success, false on failure */ export declare function deletePassword(service: string, account: string): boolean; /** * Replace the password for the service and account in the keychain. * * This is a simple convenience function that internally calls deletePassword(service, account) * followed by addPassword(service, account, password). * * @param service The string service name. * @param account The string account name. * @param password The string password. * * @returns true on success, false on failure. */ export declare function replacePassword(service: string, account: string, password: string): boolean; /** * Find a password for the service in the keychain. * * @param service The string service name. * * @returns the string password or null on failures. */ export declare function findPassword(service: string): string | null;