import { BaseApi } from "../base-api"; import type { CostForecastRequest, CostForecastResponse, CostForecastResult, ForecastRequest, ForecastResponse, ForecastResult, ForecastResultFailure, JobState } from "./types"; /** * @module ForecastApi * @description This module provides methods for generating forecasts from a subscription * @extends BaseApi */ declare class ForecastApi extends BaseApi { /** * @function postForecast * @memberof ForecastApi * @description Gets a forecast for a subscription given the subscription details * @returns {Promise>} A promise that resolves to forecast response. */ postForecast(payload: ForecastRequest): Promise; /** * @function getForecast * @memberof ForecastApi * @description Gets a forecast for a given forecast id * @returns {Promise} A promise that resolves to forecast response. */ getForecast(forecastId: string): Promise; /** * @function postCostForecast * @memberof ForecastApi * @description Gets a cost forecast for a subscription given the subscriptions details * @returns {Promise} A promise that resolves to cost forecast response. */ postCostForecast(payload: CostForecastRequest): Promise; /** * @function getCostForecast * @memberof ForecastApi * @description Gets a forecast for a given cost forecast id * @returns {Promise} A promise that resolves to cost forecast response. */ getCostForecast(costForecastId: string): Promise; /** * @function postPublicForecast * @memberof ForecastApi * @description Gets a forecast for a subscription given the subscriptions details from the public endpoint * @returns {Promise} A promise that resolves to forecast response. */ postPublicForecast(payload: ForecastRequest): Promise; /** * @function getPublicForecast * @memberof ForecastApi * @description Gets a forecast for a given forecast id from the public endpoint * @returns {Promise} A promise that resolves to forecast response. */ getPublicForecast(forecastId: string): Promise; } export { type CostForecastRequest, type CostForecastResponse, type CostForecastResult, ForecastApi, type ForecastRequest, type ForecastResponse, type ForecastResult, type ForecastResultFailure, type JobState, };