/** * @since 2.0.0 */ import { Effect } from "effect"; import * as CML from "@anastasia-labs/cardano-multiplatform-lib-nodejs"; /** * Type alias for the CML Value class * * @since 2.0.0 * @category Types */ export type Value = CML.Value; declare const ValueError_base: new = {}>(args: import("effect/Types").Equals extends true ? void : { readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }) => import("effect/Cause").YieldableError & { readonly _tag: "ValueError"; } & Readonly; /** * Error class for Value operations * * This error is thrown when operations on Value instances fail. * * @since 2.0.0 * @category Errors */ export declare class ValueError extends ValueError_base<{ message?: string; }> { } /** * Method free of Value * * @since 2.0.0 * @category Methods */ export declare const free: (instance: CML.Value) => Effect.Effect; /** * Unsafely calls instance.free without Effect wrapper * * @since 2.0.0 * @category MethodsUnsafe */ export declare const freeUnsafe: (instance: CML.Value) => void; /** * Method toCborBytes of Value * * @since 2.0.0 * @category Methods */ export declare const toCborBytes: (instance: CML.Value) => Effect.Effect; /** * Unsafely calls instance.toCborBytes without Effect wrapper * * @since 2.0.0 * @category MethodsUnsafe */ export declare const toCborBytesUnsafe: (instance: CML.Value) => Uint8Array; /** * Method toCanonicalCborBytes of Value * * @since 2.0.0 * @category Methods */ export declare const toCanonicalCborBytes: (instance: CML.Value) => Effect.Effect; /** * Unsafely calls instance.toCanonicalCborBytes without Effect wrapper * * @since 2.0.0 * @category MethodsUnsafe */ export declare const toCanonicalCborBytesUnsafe: (instance: CML.Value) => Uint8Array; /** * Static method fromCborBytes of Value * * @since 2.0.0 * @category Constructors */ export declare const fromCborBytes: (cborBytes: Uint8Array) => Effect.Effect; /** * Unsafely calls Value.fromCborBytes without Effect wrapper * * @since 2.0.0 * @category ConstructorsUnsafe */ export declare const fromCborBytesUnsafe: (cborBytes: Uint8Array) => CML.Value; /** * Method toCborHex of Value * * @since 2.0.0 * @category Methods */ export declare const toCborHex: (instance: CML.Value) => Effect.Effect; /** * Unsafely calls instance.toCborHex without Effect wrapper * * @since 2.0.0 * @category MethodsUnsafe */ export declare const toCborHexUnsafe: (instance: CML.Value) => string; /** * Method toCanonicalCborHex of Value * * @since 2.0.0 * @category Methods */ export declare const toCanonicalCborHex: (instance: CML.Value) => Effect.Effect; /** * Unsafely calls instance.toCanonicalCborHex without Effect wrapper * * @since 2.0.0 * @category MethodsUnsafe */ export declare const toCanonicalCborHexUnsafe: (instance: CML.Value) => string; /** * Static method fromCborHex of Value * * @since 2.0.0 * @category Constructors */ export declare const fromCborHex: (cborBytes: string) => Effect.Effect; /** * Unsafely calls Value.fromCborHex without Effect wrapper * * @since 2.0.0 * @category ConstructorsUnsafe */ export declare const fromCborHexUnsafe: (cborBytes: string) => CML.Value; /** * Method toJson of Value * * @since 2.0.0 * @category Methods */ export declare const toJson: (instance: CML.Value) => Effect.Effect; /** * Unsafely calls instance.toJson without Effect wrapper * * @since 2.0.0 * @category MethodsUnsafe */ export declare const toJsonUnsafe: (instance: CML.Value) => string; /** * Method toJsValue of Value * * @since 2.0.0 * @category Methods */ export declare const toJsValue: (instance: CML.Value) => Effect.Effect; /** * Unsafely calls instance.toJsValue without Effect wrapper * * @since 2.0.0 * @category MethodsUnsafe */ export declare const toJsValueUnsafe: (instance: CML.Value) => any; /** * Static method fromJson of Value * * @since 2.0.0 * @category Constructors */ export declare const fromJson: (json: string) => Effect.Effect; /** * Unsafely calls Value.fromJson without Effect wrapper * * @since 2.0.0 * @category ConstructorsUnsafe */ export declare const fromJsonUnsafe: (json: string) => CML.Value; /** * Static method fromCoin of Value * * @since 2.0.0 * @category Constructors */ export declare const fromCoin: (coin: bigint) => Effect.Effect; /** * Unsafely calls Value.fromCoin without Effect wrapper * * @since 2.0.0 * @category ConstructorsUnsafe */ export declare const fromCoinUnsafe: (coin: bigint) => CML.Value; /** * Static method _new of Value * * @since 2.0.0 * @category Constructors */ export declare const _new: (coin: bigint, multiasset: CML.MultiAsset) => Effect.Effect; /** * Unsafely calls Value._new without Effect wrapper * * @since 2.0.0 * @category ConstructorsUnsafe */ export declare const _newUnsafe: (coin: bigint, multiasset: CML.MultiAsset) => CML.Value; /** * Method coin of Value * * @since 2.0.0 * @category Methods */ export declare const coin: (instance: CML.Value) => Effect.Effect; /** * Unsafely calls instance.coin without Effect wrapper * * @since 2.0.0 * @category MethodsUnsafe */ export declare const coinUnsafe: (instance: CML.Value) => bigint; /** * Method multiAsset of Value * * @since 2.0.0 * @category Methods */ export declare const multiAsset: (instance: CML.Value) => Effect.Effect; /** * Unsafely calls instance.multiAsset without Effect wrapper * * @since 2.0.0 * @category MethodsUnsafe */ export declare const multiAssetUnsafe: (instance: CML.Value) => CML.MultiAsset; /** * Static method zero of Value * * @since 2.0.0 * @category Constructors */ export declare const zero: () => Effect.Effect; /** * Unsafely calls Value.zero without Effect wrapper * * @since 2.0.0 * @category ConstructorsUnsafe */ export declare const zeroUnsafe: () => CML.Value; /** * Method isZero of Value * * @since 2.0.0 * @category Methods */ export declare const isZero: (instance: CML.Value) => Effect.Effect; /** * Unsafely calls instance.isZero without Effect wrapper * * @since 2.0.0 * @category MethodsUnsafe */ export declare const isZeroUnsafe: (instance: CML.Value) => boolean; /** * Method hasMultiassets of Value * * @since 2.0.0 * @category Methods */ export declare const hasMultiassets: (instance: CML.Value) => Effect.Effect; /** * Unsafely calls instance.hasMultiassets without Effect wrapper * * @since 2.0.0 * @category MethodsUnsafe */ export declare const hasMultiassetsUnsafe: (instance: CML.Value) => boolean; /** * Method checkedAdd of Value * * @since 2.0.0 * @category Methods */ export declare const checkedAdd: (instance: CML.Value, rhs: CML.Value) => Effect.Effect; /** * Unsafely calls instance.checkedAdd without Effect wrapper * * @since 2.0.0 * @category MethodsUnsafe */ export declare const checkedAddUnsafe: (instance: CML.Value, rhs: CML.Value) => CML.Value; /** * Method checkedSub of Value * * @since 2.0.0 * @category Methods */ export declare const checkedSub: (instance: CML.Value, rhs: CML.Value) => Effect.Effect; /** * Unsafely calls instance.checkedSub without Effect wrapper * * @since 2.0.0 * @category MethodsUnsafe */ export declare const checkedSubUnsafe: (instance: CML.Value, rhs: CML.Value) => CML.Value; /** * Method clampedSub of Value * * @since 2.0.0 * @category Methods */ export declare const clampedSub: (instance: CML.Value, rhs: CML.Value) => Effect.Effect; /** * Unsafely calls instance.clampedSub without Effect wrapper * * @since 2.0.0 * @category MethodsUnsafe */ export declare const clampedSubUnsafe: (instance: CML.Value, rhs: CML.Value) => CML.Value; export {}; //# sourceMappingURL=Value.d.ts.map