@apify/actors-mcp-server
Version:
Model Context Protocol Server for Apify
13 lines • 755 B
TypeScript
import type { ActorRunPricingInfo } from 'apify-client';
import type { ExtendedPricingInfo } from '../types.js';
/**
* Returns the most recent valid pricing information from a list of pricing infos,
* based on the provided current date.
*
* Filters out pricing infos that have a `startedAt` date in the future or missing,
* then sorts the remaining infos by `startedAt` in descending order (most recent first).
* Returns the most recent valid pricing info, or `null` if none are valid.
*/
export declare function getCurrentPricingInfo(pricingInfos: ActorRunPricingInfo[], now: Date): ActorRunPricingInfo | null;
export declare function pricingInfoToString(pricingInfo: ExtendedPricingInfo | null): string;
//# sourceMappingURL=pricing-info.d.ts.map