import type { LegacyPieceLink as LegacyPieceCIDType, PieceLink as PieceCIDType } from '@web3-storage/data-segment'; import { CID } from 'multiformats/cid'; export type PieceCID = PieceCIDType; export type LegacyPieceCID = LegacyPieceCIDType; export declare function asPieceCID(pieceCidInput: PieceCID | CID | string): PieceCID | null; export declare function asLegacyPieceCID(pieceCidInput: PieceCID | LegacyPieceCID | CID | string): LegacyPieceCID | null; export declare function calculate(data: Uint8Array): PieceCID; export declare function createPieceCIDStream(): { stream: TransformStream; getPieceCID: () => PieceCID | null; }; export declare function getSizeFromPieceCID(pieceCidInput: PieceCID | CID | string): number; export declare function hexToPieceCID(pieceCidHex: string): PieceCID; //# sourceMappingURL=piece.d.ts.map