import type { MunaClient } from "../client"; import type { Prediction } from "../types"; import type { CreatePredictionInput, DeletePredictionInput } from "./prediction"; export declare class LocalPredictionService { private readonly client; private readonly cache; constructor(client: MunaClient); /** * Create a prediction. * @param input Prediction input. * @returns Prediction. */ create(input: CreatePredictionInput): Promise; /** * Create a streaming prediction. * NOTE: This feature is currently experimental. * @param input Prediction input. * @returns Generator which asynchronously returns prediction results as they are streamed from the predictor. */ stream(input: CreatePredictionInput): AsyncGenerator; /** * Delete a predictor that is loaded in memory. * @param input Input arguments. * @returns Whether the predictor was successfully deleted from memory. */ delete(input: DeletePredictionInput): Promise; private createRawPrediction; private getPredictor; }