/** * @since 2.0.0 */ import { Effect } from "effect"; import * as CML from "@anastasia-labs/cardano-multiplatform-lib-nodejs"; /** * Type alias for the CML DRep class * * @since 2.0.0 * @category Types */ export type DRep = CML.DRep; declare const DRepError_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: "DRepError"; } & Readonly; /** * Error class for DRep operations * * This error is thrown when operations on DRep instances fail. * * @since 2.0.0 * @category Errors */ export declare class DRepError extends DRepError_base<{ message?: string; }> { } /** * Method free of DRep * * @since 2.0.0 * @category Methods */ export declare const free: (instance: CML.DRep) => Effect.Effect; /** * Unsafely calls instance.free without Effect wrapper * * @since 2.0.0 * @category MethodsUnsafe */ export declare const freeUnsafe: (instance: CML.DRep) => void; /** * Method toCborBytes of DRep * * @since 2.0.0 * @category Methods */ export declare const toCborBytes: (instance: CML.DRep) => Effect.Effect; /** * Unsafely calls instance.toCborBytes without Effect wrapper * * @since 2.0.0 * @category MethodsUnsafe */ export declare const toCborBytesUnsafe: (instance: CML.DRep) => Uint8Array; /** * Method toCanonicalCborBytes of DRep * * @since 2.0.0 * @category Methods */ export declare const toCanonicalCborBytes: (instance: CML.DRep) => Effect.Effect; /** * Unsafely calls instance.toCanonicalCborBytes without Effect wrapper * * @since 2.0.0 * @category MethodsUnsafe */ export declare const toCanonicalCborBytesUnsafe: (instance: CML.DRep) => Uint8Array; /** * Static method fromCborBytes of DRep * * @since 2.0.0 * @category Constructors */ export declare const fromCborBytes: (cborBytes: Uint8Array) => Effect.Effect; /** * Unsafely calls DRep.fromCborBytes without Effect wrapper * * @since 2.0.0 * @category ConstructorsUnsafe */ export declare const fromCborBytesUnsafe: (cborBytes: Uint8Array) => CML.DRep; /** * Method toCborHex of DRep * * @since 2.0.0 * @category Methods */ export declare const toCborHex: (instance: CML.DRep) => Effect.Effect; /** * Unsafely calls instance.toCborHex without Effect wrapper * * @since 2.0.0 * @category MethodsUnsafe */ export declare const toCborHexUnsafe: (instance: CML.DRep) => string; /** * Method toCanonicalCborHex of DRep * * @since 2.0.0 * @category Methods */ export declare const toCanonicalCborHex: (instance: CML.DRep) => Effect.Effect; /** * Unsafely calls instance.toCanonicalCborHex without Effect wrapper * * @since 2.0.0 * @category MethodsUnsafe */ export declare const toCanonicalCborHexUnsafe: (instance: CML.DRep) => string; /** * Static method fromCborHex of DRep * * @since 2.0.0 * @category Constructors */ export declare const fromCborHex: (cborBytes: string) => Effect.Effect; /** * Unsafely calls DRep.fromCborHex without Effect wrapper * * @since 2.0.0 * @category ConstructorsUnsafe */ export declare const fromCborHexUnsafe: (cborBytes: string) => CML.DRep; /** * Method toJson of DRep * * @since 2.0.0 * @category Methods */ export declare const toJson: (instance: CML.DRep) => Effect.Effect; /** * Unsafely calls instance.toJson without Effect wrapper * * @since 2.0.0 * @category MethodsUnsafe */ export declare const toJsonUnsafe: (instance: CML.DRep) => string; /** * Method toJsValue of DRep * * @since 2.0.0 * @category Methods */ export declare const toJsValue: (instance: CML.DRep) => Effect.Effect; /** * Unsafely calls instance.toJsValue without Effect wrapper * * @since 2.0.0 * @category MethodsUnsafe */ export declare const toJsValueUnsafe: (instance: CML.DRep) => any; /** * Static method fromJson of DRep * * @since 2.0.0 * @category Constructors */ export declare const fromJson: (json: string) => Effect.Effect; /** * Unsafely calls DRep.fromJson without Effect wrapper * * @since 2.0.0 * @category ConstructorsUnsafe */ export declare const fromJsonUnsafe: (json: string) => CML.DRep; /** * Static method newKey of DRep * * @since 2.0.0 * @category Constructors */ export declare const newKey: (pool: CML.Ed25519KeyHash) => Effect.Effect; /** * Unsafely calls DRep.newKey without Effect wrapper * * @since 2.0.0 * @category ConstructorsUnsafe */ export declare const newKeyUnsafe: (pool: CML.Ed25519KeyHash) => CML.DRep; /** * Static method newScript of DRep * * @since 2.0.0 * @category Constructors */ export declare const newScript: (scriptHash: CML.ScriptHash) => Effect.Effect; /** * Unsafely calls DRep.newScript without Effect wrapper * * @since 2.0.0 * @category ConstructorsUnsafe */ export declare const newScriptUnsafe: (scriptHash: CML.ScriptHash) => CML.DRep; /** * Static method newAlwaysAbstain of DRep * * @since 2.0.0 * @category Constructors */ export declare const newAlwaysAbstain: () => Effect.Effect; /** * Unsafely calls DRep.newAlwaysAbstain without Effect wrapper * * @since 2.0.0 * @category ConstructorsUnsafe */ export declare const newAlwaysAbstainUnsafe: () => CML.DRep; /** * Static method newAlwaysNoConfidence of DRep * * @since 2.0.0 * @category Constructors */ export declare const newAlwaysNoConfidence: () => Effect.Effect; /** * Unsafely calls DRep.newAlwaysNoConfidence without Effect wrapper * * @since 2.0.0 * @category ConstructorsUnsafe */ export declare const newAlwaysNoConfidenceUnsafe: () => CML.DRep; /** * Method kind of DRep * * @since 2.0.0 * @category Methods */ export declare const kind: (instance: CML.DRep) => Effect.Effect; /** * Unsafely calls instance.kind without Effect wrapper * * @since 2.0.0 * @category MethodsUnsafe */ export declare const kindUnsafe: (instance: CML.DRep) => CML.DRepKind; /** * Method asKey of DRep * * @since 2.0.0 * @category Methods */ export declare const asKey: (instance: CML.DRep) => Effect.Effect; /** * Unsafely calls instance.asKey without Effect wrapper * * @since 2.0.0 * @category MethodsUnsafe */ export declare const asKeyUnsafe: (instance: CML.DRep) => CML.Ed25519KeyHash | undefined; /** * Method asScript of DRep * * @since 2.0.0 * @category Methods */ export declare const asScript: (instance: CML.DRep) => Effect.Effect; /** * Unsafely calls instance.asScript without Effect wrapper * * @since 2.0.0 * @category MethodsUnsafe */ export declare const asScriptUnsafe: (instance: CML.DRep) => CML.ScriptHash | undefined; export {}; //# sourceMappingURL=DRep.d.ts.map