import { Event } from '../common/event'; import { KeytarService } from '../common/keytar-protocol'; export interface CredentialsProvider { getPassword(service: string, account: string): Promise; setPassword(service: string, account: string, password: string): Promise; deletePassword(service: string, account: string): Promise; findPassword(service: string): Promise; findCredentials(service: string): Promise>; } export declare const CredentialsService: unique symbol; export interface CredentialsService extends CredentialsProvider { readonly onDidChangePassword: Event; } export interface CredentialsChangeEvent { service: string; account: string; } export declare class CredentialsServiceImpl implements CredentialsService { private readonly keytarService; private onDidChangePasswordEmitter; readonly onDidChangePassword: Event; private credentialsProvider; constructor(keytarService: KeytarService); getPassword(service: string, account: string): Promise; setPassword(service: string, account: string, password: string): Promise; deletePassword(service: string, account: string): Promise; findPassword(service: string): Promise; findCredentials(service: string): Promise>; } //# sourceMappingURL=credentials-service.d.ts.map