import type { AbiParametersToPrimitiveTypes, ExtractAbiFunction } from 'abitype'; import { type Account, type Address, type Chain, type Client, type Transport } from 'viem'; import type * as Abis from '../abis/index.ts'; import type { PieceCID } from '../piece.ts'; import { type MetadataObject } from '../utils/metadata.ts'; import type { PDPOffering } from './providers.ts'; export type getClientDataSetsType = ExtractAbiFunction; export type ClientDataSet = AbiParametersToPrimitiveTypes[0][0]; export interface DataSet extends ClientDataSet { live: boolean; managed: boolean; cdn: boolean; metadata: MetadataObject; pdp: PDPOffering; } export interface GetDataSetsOptions { address: Address; } export declare function getDataSets(client: Client, options: GetDataSetsOptions): Promise; export type GetDataSetOptions = { dataSetId: bigint; }; export declare function getDataSet(client: Client, options: GetDataSetOptions): Promise; export declare function getDataSetMetadata(client: Client, dataSetId: bigint): Promise>; export type CreateDataSetOptions = { cdn: boolean; payee: Address; payer?: Address; endpoint: string; metadata?: MetadataObject; }; export declare function createDataSet(client: Client, options: CreateDataSetOptions): Promise<{ txHash: `0x${string}`; statusUrl: string; }>; export type CreateDataSetAndAddPiecesOptions = { payer?: Address; endpoint: string; payee: Address; cdn: boolean; metadata?: MetadataObject; pieces: { pieceCid: PieceCID; metadata?: MetadataObject; }[]; }; export declare function createDataSetAndAddPieces(client: Client, options: CreateDataSetAndAddPiecesOptions): Promise<{ txHash: `0x${string}`; statusUrl: string; }>; export type TerminateDataSetOptions = { dataSetId: bigint; }; export declare function terminateDataSet(client: Client, options: TerminateDataSetOptions): Promise<`0x${string}`>; //# sourceMappingURL=data-sets.d.ts.map