Path: blob/main/src/vscode-dts/vscode.proposed.chatReferenceBinaryData.d.ts
3290 views
/*---------------------------------------------------------------------------------------------1* Copyright (c) Microsoft Corporation. All rights reserved.2* Licensed under the MIT License. See License.txt in the project root for license information.3*--------------------------------------------------------------------------------------------*/45declare module 'vscode' {67export interface ChatPromptReference {8/**9* The value of this reference. The `string | Uri | Location` types are used today, but this could expand in the future.10*/11readonly value: string | Uri | Location | ChatReferenceBinaryData | unknown;12}1314export class ChatReferenceBinaryData {15/**16* The MIME type of the binary data.17*/18readonly mimeType: string;1920/**21* Retrieves the binary data of the reference. This is primarily used to receive image attachments from the chat.22* @returns A promise that resolves to the binary data as a Uint8Array.23*/24data(): Thenable<Uint8Array>;2526/**27* Retrieves a URI reference to the binary data, if available.28*/29readonly reference?: Uri;3031/**32* @param mimeType The MIME type of the binary data.33* @param data The binary data of the reference.34*/35constructor(mimeType: string, data: () => Thenable<Uint8Array>);36}37}383940