@sussudio/platform
Version:
Internal APIs for VS Code's service injection the base services.
18 lines (16 loc) • 813 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>;
}