import { ProverClient } from './effect/index.js'; import type * as ledger from '@midnight-ntwrk/ledger-v8'; /** Sends serialized unproven transactions to a Proof Server over HTTP. */ export declare class HttpProverClient { #private; /** * Initializes a new {@link HttpProverClient}. * * @param config The server configuration to use when configuring the HTTP elements of the Proof Server. * @throws {@link ProverClient.InvalidProtocolSchemeError} The `config` is invalid for a HTTP context. E.g., expecting * 'http:' or 'https:' URLs but something other was provided. */ constructor(config: ProverClient.ProverClient.ServerConfig); /** * Proves an unproven transaction by submitting it over HTTP to an associated Proof Server. * * @param transaction An unproven ledger transaction. * @returns A `Promise` that resolves with a proven transaction or fails with a client or server side error. * @throws {@link ClientError} There was an issue with the provided `transaction`, or a connection with the configured * Proof Server could not be initiated. * @throws {@link ServerError} Unable to establish a connection with the configured Proof Server, or there was an * internal error that prevented the proof request from being executed. */ proveTransaction(transaction: ledger.Transaction, costModel?: ledger.CostModel): Promise>; }