import { URI } from "../../../../base/common/uri.js"; import { IFileService } from "../../../../platform/files/common/files.service.js"; import { ILogService } from "../../../../platform/log/common/log.service.js"; /** * Resizes an image provided as a UInt8Array string. Resizing is based on Open AI's algorithm for tokenzing images. * https://platform.openai.com/docs/guides/vision#calculating-costs * @param data - The UInt8Array string of the image to resize. * @returns A promise that resolves to the UInt8Array string of the resized image. */ export declare function resizeImage(data: Uint8Array | string, mimeType?: string): Promise; export declare function convertStringToUInt8Array(data: string): Uint8Array; export declare function convertUint8ArrayToString(data: Uint8Array): string; export declare function createFileForMedia(fileService: IFileService, imagesFolder: URI, dataTransfer: Uint8Array, mimeType: string): Promise; export declare function cleanupOldImages(fileService: IFileService, logService: ILogService, imagesFolder: URI): Promise; export declare function imageToHash(data: Uint8Array): Promise;