import { type Account, type Address, type Chain, type Client, type Hex, type Transport } from 'viem'; import type { PieceCID } from '../piece.ts'; import * as PDP from '../sp.ts'; import { type MetadataObject } from '../utils/metadata.ts'; import type { DataSet } from './data-sets.ts'; export type AddPiecesOptions = { dataSetId: bigint; clientDataSetId: bigint; endpoint: string; pieces: { pieceCid: PieceCID; metadata?: MetadataObject; }[]; }; export declare function addPieces(client: Client, options: AddPiecesOptions): Promise<{ txHash: Hex; statusUrl: string; }>; export type DeletePieceOptions = { pieceId: bigint; dataSetId: bigint; clientDataSetId: bigint; endpoint: string; }; export declare function deletePiece(client: Client, options: DeletePieceOptions): Promise; export type PollForDeletePieceStatusOptions = { txHash: Hex; }; export declare function pollForDeletePieceStatus(client: Client, options: PollForDeletePieceStatusOptions): Promise; export type GetPiecesOptions = { dataSet: DataSet; address: Address; }; export type Piece = { cid: PieceCID; id: bigint; url: string; }; export declare function getPieces(client: Client, options: GetPiecesOptions): Promise<{ pieces: { cid: import("@web3-storage/data-segment").PieceLink; id: bigint; url: string; }[]; hasMore: boolean; }>; //# sourceMappingURL=pieces.d.ts.map