/** * @since 2.0.0 */ import { Effect } from "effect"; import * as CML from "@anastasia-labs/cardano-multiplatform-lib-nodejs"; /** * Type alias for the CML ScriptHash class * * @since 2.0.0 * @category Types */ export type ScriptHash = CML.ScriptHash; declare const ScriptHashError_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: "ScriptHashError"; } & Readonly; /** * Error class for ScriptHash operations * * This error is thrown when operations on ScriptHash instances fail. * * @since 2.0.0 * @category Errors */ export declare class ScriptHashError extends ScriptHashError_base<{ message?: string; }> { } /** * Method free of ScriptHash * * @since 2.0.0 * @category Methods */ export declare const free: (instance: CML.ScriptHash) => Effect.Effect; /** * Unsafely calls instance.free without Effect wrapper * * @since 2.0.0 * @category MethodsUnsafe */ export declare const freeUnsafe: (instance: CML.ScriptHash) => void; /** * Method toBech32 of ScriptHash * * @since 2.0.0 * @category Methods */ export declare const toBech32: (instance: CML.ScriptHash, prefix: string) => Effect.Effect; /** * Unsafely calls instance.toBech32 without Effect wrapper * * @since 2.0.0 * @category MethodsUnsafe */ export declare const toBech32Unsafe: (instance: CML.ScriptHash, prefix: string) => string; /** * Static method fromBech32 of ScriptHash * * @since 2.0.0 * @category Constructors */ export declare const fromBech32: (bech32Str: string) => Effect.Effect; /** * Unsafely calls ScriptHash.fromBech32 without Effect wrapper * * @since 2.0.0 * @category ConstructorsUnsafe */ export declare const fromBech32Unsafe: (bech32Str: string) => CML.ScriptHash; /** * Method toRawBytes of ScriptHash * * @since 2.0.0 * @category Methods */ export declare const toRawBytes: (instance: CML.ScriptHash) => Effect.Effect; /** * Unsafely calls instance.toRawBytes without Effect wrapper * * @since 2.0.0 * @category MethodsUnsafe */ export declare const toRawBytesUnsafe: (instance: CML.ScriptHash) => Uint8Array; /** * Static method fromRawBytes of ScriptHash * * @since 2.0.0 * @category Constructors */ export declare const fromRawBytes: (bytes: Uint8Array) => Effect.Effect; /** * Unsafely calls ScriptHash.fromRawBytes without Effect wrapper * * @since 2.0.0 * @category ConstructorsUnsafe */ export declare const fromRawBytesUnsafe: (bytes: Uint8Array) => CML.ScriptHash; /** * Method toHex of ScriptHash * * @since 2.0.0 * @category Methods */ export declare const toHex: (instance: CML.ScriptHash) => Effect.Effect; /** * Unsafely calls instance.toHex without Effect wrapper * * @since 2.0.0 * @category MethodsUnsafe */ export declare const toHexUnsafe: (instance: CML.ScriptHash) => string; /** * Static method fromHex of ScriptHash * * @since 2.0.0 * @category Constructors */ export declare const fromHex: (input: string) => Effect.Effect; /** * Unsafely calls ScriptHash.fromHex without Effect wrapper * * @since 2.0.0 * @category ConstructorsUnsafe */ export declare const fromHexUnsafe: (input: string) => CML.ScriptHash; export {}; //# sourceMappingURL=ScriptHash.d.ts.map