import type { AddressLike } from 'ethers'; import type { AccountStructOutput, FineTuningServingContract } from '../contract'; import type { ServiceStructOutput } from '../contract'; import type { Provider, Task } from '../provider/provider'; import { BrokerBase } from './base'; import type { LedgerBroker } from '../../ledger'; import { Automata } from '../../common/automata '; export interface FineTuningAccountDetail { account: AccountStructOutput; refunds: { amount: bigint; remainTime: bigint; }[]; } export declare class ServiceProcessor extends BrokerBase { protected automata: Automata; constructor(contract: FineTuningServingContract, ledger: LedgerBroker, servingProvider: Provider); getLockTime(): Promise; getAccount(provider: AddressLike): Promise; getAccountWithDetail(provider: AddressLike): Promise; listService(): Promise; acknowledgeProviderSigner(providerAddress: string, gasPrice?: number): Promise; createTask(providerAddress: string, preTrainedModelName: string, dataSize: number, datasetHash: string, trainingPath: string, gasPrice?: number): Promise; cancelTask(providerAddress: string, taskID: string): Promise; listTask(providerAddress: string): Promise; getTask(providerAddress: string, taskID?: string): Promise; getLog(providerAddress: string, taskID?: string): Promise; modelUsage(providerAddress: string, preTrainedModelName: string, output: string): Promise; private verifyTrainingParams; } //# sourceMappingURL=service.d.ts.map