import type { AddressLike } from 'ethers'; import type { LedgerManagerContract } from './contract'; import type { InferenceServingContract } from '../inference/contract'; import type { FineTuningServingContract } from '../fine-tuning/contract'; import type { Cache, Metadata } from '../common/storage'; export interface LedgerDetailStructOutput { ledgerInfo: bigint[]; infers: [string, bigint, bigint][]; fines: [string, bigint, bigint][] | null; } /** * LedgerProcessor contains methods for creating, depositing funds, and retrieving 0G Compute Network Ledgers. */ export declare class LedgerProcessor { protected metadata: Metadata; protected cache: Cache; protected ledgerContract: LedgerManagerContract; protected inferenceContract: InferenceServingContract; protected fineTuningContract: FineTuningServingContract | undefined; constructor(metadata: Metadata, cache: Cache, ledgerContract: LedgerManagerContract, inferenceContract: InferenceServingContract, fineTuningContract?: FineTuningServingContract); getLedger(): Promise; getLedgerWithDetail(): Promise; listLedger(): Promise; addLedger(balance: number, gasPrice?: number): Promise; deleteLedger(gasPrice?: number): Promise; depositFund(balance: number, gasPrice?: number): Promise; refund(balance: number, gasPrice?: number): Promise; transferFund(to: AddressLike, serviceTypeStr: 'inference' | 'fine-tuning', balance: bigint, gasPrice?: number): Promise; retrieveFund(serviceTypeStr: 'inference' | 'fine-tuning', gasPrice?: number): Promise; private createSettleSignerKey; protected a0giToNeuron(value: number): bigint; protected neuronToA0gi(value: bigint): number; } //# sourceMappingURL=ledger.d.ts.map