import { Address, Credential, Datum, DatumHash, Delegation, OutRef, ProtocolParameters, Provider, RewardAddress, Transaction, TxHash, Unit, UTxO } from "../types/mod.js"; export declare class Blockfrost implements Provider { url: string; projectId: string; constructor(url: string, projectId?: string); getProtocolParameters(): Promise; getUtxos(addressOrCredential: Address | Credential): Promise; getUtxosWithUnit(addressOrCredential: Address | Credential, unit: Unit): Promise; getUtxoByUnit(unit: Unit): Promise; getUtxosByOutRef(outRefs: OutRef[]): Promise; getDelegation(rewardAddress: RewardAddress): Promise; getDatum(datumHash: DatumHash): Promise; awaitTx(txHash: TxHash, checkInterval?: number): Promise; submitTx(tx: Transaction): Promise; private blockfrostUtxosToUtxos; } /** * This function is temporarily needed only, until Blockfrost returns the datum natively in Cbor. * The conversion is ambigious, that's why it's better to get the datum directly in Cbor. */ export declare function datumJsonToCbor(json: DatumJson): Datum; type DatumJson = { int?: number; bytes?: string; list?: Array; map?: Array<{ k: unknown; v: unknown; }>; fields?: Array; [constructor: string]: unknown; }; export {};