import { IRPCProtocol } from '@opensumi/ide-connection';
import { Event, IExtensionProps } from '@opensumi/ide-core-common';
import { IExtHostSecret } from '../../../common/vscode';
import type vscode from 'vscode';
export declare class ExtensionSecrets implements vscode.SecretStorage {
    protected readonly _id: string;
    private readonly _secret;
    private _onDidChange;
    readonly onDidChange: Event<vscode.SecretStorageChangeEvent>;
    constructor(extensionDescription: IExtensionProps, secret: ExtHostSecret);
    get(key: string): Promise<string | undefined>;
    store(key: string, value: string): Promise<void>;
    delete(key: string): Promise<void>;
}
export declare class ExtHostSecret implements IExtHostSecret {
    private _proxy;
    private _onDidChangePassword;
    readonly onDidChangePassword: Event<{
        extensionId: string;
        key: string;
    }>;
    constructor(rpc: IRPCProtocol);
    $onDidChangePassword(e: {
        extensionId: string;
        key: string;
    }): Promise<void>;
    get(extensionId: string, key: string): Promise<string | undefined>;
    store(extensionId: string, key: string, value: string): Promise<void>;
    delete(extensionId: string, key: string): Promise<void>;
}
//# sourceMappingURL=ext.host.secrets.d.ts.map