/** * ImageSearchBridge - A high-level helper to make image embeddings * extremely easy to use for developers. */ export class ImageSearchBridge { constructor(mode?: string); embedder: ImageEmbedder; /** * Compute an embedding from almost any source * @param {string|HTMLImageElement|HTMLCanvasElement|Uint8Array|Buffer} source * @returns {Promise} */ compute(source: string | HTMLImageElement | HTMLCanvasElement | Uint8Array | Buffer): Promise; /** * Compare two image sources directly */ compare(sourceA: any, sourceB: any): Promise; _rgbaToGrayscale(rgba: any, w: any, h: any): Float32Array; _loadImageBrowser(url: any): Promise; } /** * Easy-to-use factory for quick tasks */ export const visualSearch: ImageSearchBridge; import { ImageEmbedder } from './image-embedding.js';