export type WebOrtTensor = { data: unknown; dims: number[]; getData?: () => Promise; }; export type WebOrtSession = { inputNames?: string[]; outputNames?: string[]; run( feeds: Record ): Promise>; }; export type WebOrtRuntime = { env: { wasm: { wasmPaths: string; }; }; InferenceSession: { create( path: string, options?: { executionProviders?: string[]; externalData?: Array< | string | { data: ArrayBuffer | Uint8Array; path: string; } >; } ): Promise; }; Tensor: new ( type: string, data: Float32Array | Uint8Array | BigInt64Array, dims: number[] ) => WebOrtTensor; };