sussudio
Version:
An unofficial VS Code Internal API
17 lines (16 loc) • 830 B
text/typescript
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
export declare const SIGN_SERVICE_ID = "signService";
export declare const ISignService: import("../../instantiation/common/instantiation.mjs").ServiceIdentifier<ISignService>;
export interface IMessage {
id: string;
data: string;
}
export interface ISignService {
readonly _serviceBrand: undefined;
createNewMessage(value: string): Promise<IMessage>;
validate(message: IMessage, value: string): Promise<boolean>;
sign(value: string): Promise<string>;
}