mindee
Version:
Mindee Client Library for Node.js
11 lines (10 loc) • 527 B
TypeScript
import { LocalResponseBase } from "../../parsing/localResponseBase.js";
import { AsyncPredictResponse, Inference, PredictResponse } from "../../v1/index.js";
import { StringDict } from "../../parsing/index.js";
/**
* Local response loaded from a file.
* Note: Has to be initialized through init() before use.
*/
export declare class LocalResponse extends LocalResponseBase {
loadPrediction<T extends Inference>(productClass: new (httpResponse: StringDict) => T): Promise<AsyncPredictResponse<T> | PredictResponse<T>>;
}