import { Network, Lovelace, Wallet, UTxO, SlotConfig, PrivateKey, TransactionWitnesses, RedeemerBuilder, BuildTxWithRedeemer, OutRef, PolicyId, RewardAddress, Address, EvaluatorAdapter, Redeemer, Assets, Script, PaymentKeyHash, StakeKeyHash, Anchor, PoolParams, PoolId, DRep, GovernanceVoter, GovernanceActionId, GovernanceVote, GovernanceProposal, Label, TxOutput, ScriptType, Provider, ProtocolParameters, Transaction, WalletApi, UnixTime, Slot, Credential, Delegation, RewardAccountState, TxHash, TransactionStatusOptions, TransactionStatus, AwaitTransactionOptions, TransactionConfirmation } from '@lucid-evolution/core-types';
export * from '@lucid-evolution/core-types';
import * as CML from '@anastasia-labs/cardano-multiplatform-lib-nodejs';
export { CML };
import * as effect_Either from 'effect/Either';
import { Either } from 'effect/Either';
import { Effect, Context } from 'effect';
import * as effect_Cause from 'effect/Cause';
import * as effect_Types from 'effect/Types';
import * as _lucid_evolution_plutus from '@lucid-evolution/plutus';
import { Data } from '@lucid-evolution/plutus';
export * from '@lucid-evolution/plutus';
export * from '@lucid-evolution/core-utils';
export * from '@lucid-evolution/provider';
export * from '@lucid-evolution/sign_data';
export * from '@lucid-evolution/tx-graph';
export * from '@lucid-evolution/utils';
export * from '@lucid-evolution/wallet';
declare const makeReturn: (program: Effect.Effect) => {
unsafeRun: () => Promise;
safeRun: () => Promise>;
program: () => Effect.Effect;
};
type Hash = string;
type CBORHex = string;
type OutputDatum = {
kind: "hash";
value: Hash;
} | {
kind: "asHash";
value: CBORHex;
} | {
kind: "inline";
value: CBORHex;
};
declare const TxConfig_base: Context.TagClass;
declare class TxConfig extends TxConfig_base {
}
type TransactionMetadata = string | number | Uint8Array | ReadonlyArray | {
[key: string]: TransactionMetadata;
};
declare const ERROR_MESSAGE: {
readonly MULTIPLE_POLICIES: "MULTIPLE_POLICIES: Only one policy id allowed. You can chain multiple mintAssets functions together if you need to mint assets with different policy ids. ";
readonly EMPTY_UTXO: "EMPTY_UTXO: UTxO array is empty. If a Tx has been recently submitted, consider waiting for chain sync";
readonly MISSING_WALLET: "MISSING_WALLET: please ensure that your wallet has been properly configured and initialized";
readonly MISSING_REDEEMER: "MISSING_REDEEMER: redeemer can not be undefined";
readonly DATUM_NOT_SET: "DATUM_NOT_SET: Script inputs becomes unspendable without datum.";
readonly EMPTY_ASSETS: "EMPTY_ASSETS: Attempting to pay to an address with an empty assets object";
readonly MISSING_REWARD_TYPE: "MISSING_REWARD_TYPE: Address type must be Reward type.";
readonly MISSING_STAKE_CREDENTIAL: "MISSING_STAKE_CREDENTIAL: Address does not contain stake credential";
readonly MISSING_PAYMENT_CREDENTIAL: "MISSING_PAYMENT_CREDENTIAL: Address does not contain payment credential";
readonly INVALID_METADATA: "INVALID_METADATA: metadata is invalid";
readonly SCRIPT_CREDENTIAL_NOT_ALLOWED: "SCRIPT_CREDENTIAL_NOT_ALLOWED: Only verification key credential is allowed";
readonly INVALID_SCRIPT: "INVALID_SCRIPT: Script is invalid";
readonly EXPECTED_KEY_HASH: "EXPECTED_KEY_HASH";
readonly INVALID_NETWORK: (address: string, actualNetworkId: number, network: Network) => string;
readonly MISSING_SCRIPT: (hash: string) => string;
readonly MISSING_POLICY: (policyId: string) => string;
};
declare const NullableError_base: new = {}>(args: effect_Types.VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => effect_Cause.YieldableError & {
readonly _tag: "NullableError";
} & Readonly;
declare class NullableError extends NullableError_base<{
readonly message: string;
}> {
}
declare class ProviderCapabilityError extends Error {
readonly _tag = "ProviderCapabilityError";
readonly capability: string;
constructor(capability: string);
}
declare const UnauthorizedNetwork_base: new = {}>(args: effect_Types.VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => effect_Cause.YieldableError & {
readonly _tag: "UnauthorizedNetwork";
} & Readonly;
declare class UnauthorizedNetwork extends UnauthorizedNetwork_base<{
readonly message: string;
}> {
}
declare const TxBuilderError_base: new = {}>(args: effect_Types.VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => effect_Cause.YieldableError & {
readonly _tag: "TxBuilderError";
} & Readonly;
declare class TxBuilderError extends TxBuilderError_base<{
readonly cause: unknown;
}> {
get message(): string;
}
declare const EvaluatorError_base: new = {}>(args: effect_Types.VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => effect_Cause.YieldableError & {
readonly _tag: "EvaluatorError";
} & Readonly;
declare class EvaluatorError extends EvaluatorError_base<{
readonly evaluator?: string;
readonly message: string;
readonly cause?: unknown;
}> {
}
type TransactionError = RunTimeError | TxBuilderError | EvaluatorError;
declare const TxSignerError_base: new = {}>(args: effect_Types.VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => effect_Cause.YieldableError & {
readonly _tag: "TxSignerError";
} & Readonly;
declare class TxSignerError extends TxSignerError_base<{
readonly cause: unknown;
}> {
get message(): string;
}
type TransactionSignError = RunTimeError | TxSignerError;
declare const TxSubmitError_base: new = {}>(args: effect_Types.VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => effect_Cause.YieldableError & {
readonly _tag: "TxSubmitError";
} & Readonly;
declare class TxSubmitError extends TxSubmitError_base<{
readonly cause: unknown;
}> {
get message(): string;
}
declare const RunTimeError_base: new = {}>(args: effect_Types.VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => effect_Cause.YieldableError & {
readonly _tag: "RunTimeError";
} & Readonly;
declare class RunTimeError extends RunTimeError_base<{
cause: unknown;
}> {
get message(): string;
}
type TreasuryDonation = {
readonly donation: Lovelace;
readonly currentTreasuryValue: Lovelace;
};
interface TxSigned {
/** Submits the transaction and returns the transaction hash.
*
* Supports both canonical and non-canonical formats.
*
* Canonical format follows [RFC 7049 Section 3.9](https://datatracker.ietf.org/doc/html/rfc7049#section-3.9) rules
*
* Non-canonical format example:
* ```typescript
* .submit();
* ```
* Canonical format example:
* ```typescript
* .submit({ canonical: true });
* ```
*/
submit: (options?: {
canonical: boolean;
}) => Promise;
/** Submits the transaction and returns the transaction hash or error as an effect.
*
* Supports both canonical and non-canonical formats.
*
* Canonical format follows [RFC 7049 Section 3.9](https://datatracker.ietf.org/doc/html/rfc7049#section-3.9) rules
*
* Non-canonical format example:
* ```typescript
* .submitProgram();
* ```
* Canonical format example:
* ```typescript
* .submitProgram({ canonical: true });
* ```
*/
submitProgram: (options?: {
canonical: boolean;
}) => Effect.Effect;
/** Safely submits the transaction, returning the transaction hash or an error as promise either type.
*
* Supports both canonical and non-canonical formats.
*
* Canonical format follows [RFC 7049 Section 3.9](https://datatracker.ietf.org/doc/html/rfc7049#section-3.9) rules
*
* Non-canonical format example:
* ```typescript
* .submitSafe();
* ```
* Canonical format example:
* ```typescript
* .submitSafe({ canonical: true });
* ```
*/
submitSafe: (options?: {
canonical: boolean;
}) => Promise>;
/**
* Converts the transaction to CBOR (Concise Binary Object Representation) format.
*
* Supports both canonical and non-canonical formats.
*
* Canonical format follows [RFC 7049 Section 3.9](https://datatracker.ietf.org/doc/html/rfc7049#section-3.9) rules
*
* Non-canonical format example:
* ```typescript
* .toCBOR();
* ```
* Canonical format example:
* ```typescript
* .toCBOR({ canonical: true });
* ```
*/
toCBOR: (options?: {
canonical: boolean;
}) => CBORHex;
toTransaction: () => CML.Transaction;
/** Converts the transaction (transaction body and witnesses) to JSON format. */
toJSON: () => object;
/** Computes the hash of the transaction. */
toHash: () => Hash;
}
declare const makeSubmit: (wallet: Wallet, txSigned: CML.Transaction) => TxSigned;
declare const PubKeyHashSchema: _lucid_evolution_plutus.TUnsafe;
type PubKeyHashData = Data.Static;
declare const PubKeyHashData: Data.Static;
declare const ScriptHashSchema: _lucid_evolution_plutus.TUnsafe;
type ScriptHashData = Data.Static;
declare const ScriptHashData: Data.Static;
declare const DatumHashSchema: _lucid_evolution_plutus.TUnsafe;
type DatumHashData = Data.Static;
declare const DatumHashData: Data.Static;
declare const DatumSchema: _lucid_evolution_plutus.TUnsafe;
type DatumData = Data.Static;
declare const DatumData: Data.Static;
declare const RedeemerSchema: _lucid_evolution_plutus.TUnsafe;
type RedeemerData = Data.Static;
declare const RedeemerData: Data.Static;
declare const ChangedParametersSchema: _lucid_evolution_plutus.TUnsafe;
type ChangedParametersData = Data.Static;
declare const ChangedParametersData: Data.Static;
declare const TxIdSchema: _lucid_evolution_plutus.TUnsafe;
type TxIdData = Data.Static;
declare const TxIdData: Data.Static;
declare const CurrencySymbolSchema: _lucid_evolution_plutus.TUnsafe;
type CurrencySymbolData = Data.Static;
declare const CurrencySymbolData: Data.Static;
declare const TokenNameSchema: _lucid_evolution_plutus.TUnsafe;
type TokenNameData = Data.Static;
declare const TokenNameData: Data.Static;
declare const LovelaceSchema: _lucid_evolution_plutus.TUnsafe;
type LovelaceData = Data.Static;
declare const LovelaceData: Data.Static;
declare const POSIXTimeSchema: _lucid_evolution_plutus.TUnsafe;
type POSIXTimeData = Data.Static;
declare const POSIXTimeData: Data.Static;
declare const ClosureSchema: _lucid_evolution_plutus.TUnsafe;
type ClosureData = Data.Static;
declare const ClosureData: Data.Static;
declare const RationalSchema: _lucid_evolution_plutus.TTuple<[_lucid_evolution_plutus.TUnsafe, _lucid_evolution_plutus.TUnsafe]>;
type RationalData = Data.Static;
declare const RationalData: Data.Static;
declare const ValueSchema: _lucid_evolution_plutus.TUnsafe