import { type AcurastProjectConfig, type JobRegistration } from '../types/project.js'; export type ApiResult = { ok: true; data: T; } | { ok: false; error: string; jsonRpcCode?: number; }; export interface MatchCheckResult { matchable: boolean; matched_processors: number; } export interface AveragePriceResult { average_price: string | null; } export interface PriceDistributionBucket { range_min: string; range_max: string; count: number; } export interface PriceDistributionResult { buckets: PriceDistributionBucket[]; } export interface ProcessorCountResult { count: number; } export declare function jsonRpcCall(url: string, method: string, params: Record): Promise>; export declare function jobToMatchCheckParams(config: AcurastProjectConfig, job: JobRegistration, accountId: string): Record; export declare function checkMatch(matcherUrl: string, config: AcurastProjectConfig, job: JobRegistration, accountId: string): Promise>; export declare function checkMatchWithReward(matcherUrl: string, config: AcurastProjectConfig, job: JobRegistration, accountId: string, reward: string): Promise>; export declare function getAveragePrice(matcherUrl: string, duration: number, maxAge?: number): Promise>; export declare function getPriceDistribution(matcherUrl: string, duration: number, buckets?: number, maxAge?: number): Promise>; export declare function getProcessorCount(matcherUrl: string, maxAge?: number): Promise>; //# sourceMappingURL=api.d.ts.map