import type { FineTuningServingContract } from '../contract'; export interface Task { readonly id?: string; readonly createdAt?: string; readonly updatedAt?: string; userAddress: string; preTrainedModelHash: string; datasetHash: string; trainingParams: string; fee: string; nonce: string; signature: string; readonly progress?: string; readonly deliverIndex?: string; wait?: boolean; } export interface QuoteResponse { quote: string; provider_signer: string; } export interface CustomizedModel { name: string; hash: string; image: string; dataType: string; trainingScript: string; description: string; tokenizer: string; } export declare class Provider { private contract; constructor(contract: FineTuningServingContract); private fetchJSON; private fetchText; getProviderUrl(providerAddress: string): Promise; getQuote(providerAddress: string): Promise; createTask(providerAddress: string, task: Task): Promise; cancelTask(providerAddress: string, signature: string, taskID: string): Promise; getTask(providerAddress: string, userAddress: string, taskID: string): Promise; listTask(providerAddress: string, userAddress: string, latest?: boolean): Promise; getPendingTaskCounter(providerAddress: string): Promise; getLog(providerAddress: string, userAddress: string, taskID: string): Promise; getCustomizedModels(url: string): Promise; getCustomizedModel(providerAddress: string, moduleName: string): Promise; getCustomizedModelDetailUsage(providerAddress: string, moduleName: string, outputPath: string): Promise; } //# sourceMappingURL=provider.d.ts.map