import type { Services } from "@visualblocks/custom-node-types"; import type { Pipeline } from "@xenova/transformers"; import { LitElement } from "lit"; export declare enum Devices { webgpu = "webgpu", wasm = "wasm" } export type DevicesType = keyof typeof Devices; export type ProgressCallbackFunction = (data: any) => void; /** * @abstract */ export declare class PipelineSingleton { static task?: any; static instance: { [key: string]: Promise; }; static getInstance(modelId: string, quantized: boolean, device: DevicesType, progress_callback?: ProgressCallbackFunction): Promise; } export declare class BasePipelineNode extends LitElement { singleton: any; constructor(singleton: any); getInstance(modelId: string, quantized: boolean, device: DevicesType, progress_callback?: ProgressCallbackFunction): any; runWithInputs(inputs?: {}, services?: Services): Promise; }