import { inspect, InspectOptions } from "util"; import V3 from "../V3"; import { ApiResponse } from "../../../base/ApiResponse"; /** * A single bid-level row in the message cost estimate. */ export declare class MessageCostEstimateBidLevel { /** * Max price per 1,000 message deliveries, in the smallest unit of `currency`. */ "bidAmount"?: number; /** * The normalized user base the estimate is scaled to (fixed at 1,000 during beta). */ "targetedUsers"?: number; "estimatedDeliveries"?: MessageCostEstimateRange; "estimatedCost"?: MessageCostEstimateRange; constructor(payload: any); } /** * A lower/upper bound pair. For `estimatedCost`, the estimated average cost per 1,000 deliveries in the currency\'s smallest unit; for `estimatedDeliveries`, whole counts. */ export declare class MessageCostEstimateRange { "lower"?: number; "upper"?: number; constructor(payload: any); } /** * Options to pass to fetch a MessageCostEstimateInstance */ export interface MessageCostEstimateListInstanceFetchOptions { /** The ISO-3166-1 alpha-2 country code to estimate for. Exactly one country is accepted. */ country: string; /** The historical lookback window used to compute the estimate. */ lookbackWindow: "L1D" | "L7D" | "L14D" | "L28D"; } export interface MessageCostEstimateSolution { } export interface MessageCostEstimateListInstance { _version: V3; _solution: MessageCostEstimateSolution; _uri: string; /** * Fetch a MessageCostEstimateInstance * * @param params - Parameter for request * @param callback - Callback to handle processed record * * @returns Resolves to processed MessageCostEstimateInstance */ fetch(params: MessageCostEstimateListInstanceFetchOptions, callback?: (error: Error | null, item?: MessageCostEstimateInstance) => any): Promise; /** * Fetch a MessageCostEstimateInstance and return HTTP info * * @param params - Parameter for request * @param callback - Callback to handle processed record * * @returns Resolves to processed MessageCostEstimateInstance with HTTP metadata */ fetchWithHttpInfo(params: MessageCostEstimateListInstanceFetchOptions, callback?: (error: Error | null, item?: ApiResponse) => any): Promise>; /** * Provide a user-friendly representation */ toJSON(): any; [inspect.custom](_depth: any, options: InspectOptions): any; } export declare function MessageCostEstimateListInstance(version: V3): MessageCostEstimateListInstance; interface MessageCostEstimateResource { currency: string; country: string; lookbackWindow: string; estimates: Array; disclaimer: string; } /** * Estimated cost and delivery ranges at a series of bid levels. */ export declare class MessageCostEstimateInstance { protected _version: V3; constructor(_version: V3, payload: MessageCostEstimateResource); /** * The WhatsApp Business Account\'s currency (e.g. `USD`). `bidAmount` and cost bounds are in this currency\'s smallest unit. */ currency: string; /** * The ISO-3166-1 alpha-2 country code the estimate was computed for. */ country: string; /** * The historical lookback window used to compute the estimate. */ lookbackWindow: string; /** * One entry per bid level. */ estimates: Array; /** * Estimates are historical and informational only; actual delivery and cost may vary. */ disclaimer: string; /** * Provide a user-friendly representation * * @returns Object */ toJSON(): { currency: string; country: string; lookbackWindow: string; estimates: MessageCostEstimateBidLevel[]; disclaimer: string; }; [inspect.custom](_depth: any, options: InspectOptions): string; } export {};