import { type HexToBytesErrorType } from '../encoding/toBytes.js'; import { type BytesToHexErrorType } from '../encoding/toHex.js'; import type { ErrorType } from '../errors/utils.js'; import type { Bytes, Hex } from '../types/data.js'; import type { Kzg } from '../types/kzg.js'; type To = 'hex' | 'bytes'; export type BlobsToProofsParameters = { /** Blobs to transform into proofs. */ blobs: blobs; /** Commitments for the blobs. */ commitments: commitments & (commitments extends _blobsType ? {} : `commitments must be the same type as blobs`); /** KZG implementation. */ kzg: Pick; /** Return type. */ to?: to | To | undefined; }; export type BlobsToProofsReturnType = (to extends 'bytes' ? Bytes[] : never) | (to extends 'hex' ? Hex[] : never); export type BlobsToProofsErrorType = BytesToHexErrorType | HexToBytesErrorType | ErrorType; /** * Compute the proofs for a list of blobs and their commitments. * * @example * ```ts * import { Blobs } from 'viem' * import { kzg } from './kzg' * * const blobs = Blobs.from({ data: '0x1234' }) * const commitments = Blobs.toCommitments({ blobs, kzg }) * const proofs = Blobs.toProofs({ blobs, commitments, kzg }) * ``` */ export declare function blobsToProofs(parameters: BlobsToProofsParameters): BlobsToProofsReturnType; export {}; //# sourceMappingURL=blobsToProofs.d.ts.map