/** * @since 2.0.0 */ import { Effect } from "effect"; import * as CML from "@anastasia-labs/cardano-multiplatform-lib-nodejs"; /** * Type alias for the CML PrivateKey class * * @since 2.0.0 * @category Types */ export type PrivateKey = CML.PrivateKey; declare const PrivateKeyError_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: "PrivateKeyError"; } & Readonly; /** * Error class for PrivateKey operations * * This error is thrown when operations on PrivateKey instances fail. * * @since 2.0.0 * @category Errors */ export declare class PrivateKeyError extends PrivateKeyError_base<{ message?: string; }> { } /** * Method free of PrivateKey * * @since 2.0.0 * @category Methods */ export declare const free: (instance: CML.PrivateKey) => Effect.Effect; /** * Unsafely calls instance.free without Effect wrapper * * @since 2.0.0 * @category MethodsUnsafe */ export declare const freeUnsafe: (instance: CML.PrivateKey) => void; /** * Method toPublic of PrivateKey * * @since 2.0.0 * @category Methods */ export declare const toPublic: (instance: CML.PrivateKey) => Effect.Effect; /** * Unsafely calls instance.toPublic without Effect wrapper * * @since 2.0.0 * @category MethodsUnsafe */ export declare const toPublicUnsafe: (instance: CML.PrivateKey) => CML.PublicKey; /** * Static method generateEd25519 of PrivateKey * * @since 2.0.0 * @category Constructors */ export declare const generateEd25519: () => Effect.Effect; /** * Unsafely calls PrivateKey.generateEd25519 without Effect wrapper * * @since 2.0.0 * @category ConstructorsUnsafe */ export declare const generateEd25519Unsafe: () => CML.PrivateKey; /** * Static method generateEd25519extended of PrivateKey * * @since 2.0.0 * @category Constructors */ export declare const generateEd25519extended: () => Effect.Effect; /** * Unsafely calls PrivateKey.generateEd25519extended without Effect wrapper * * @since 2.0.0 * @category ConstructorsUnsafe */ export declare const generateEd25519extendedUnsafe: () => CML.PrivateKey; /** * Static method fromBech32 of PrivateKey * * @since 2.0.0 * @category Constructors */ export declare const fromBech32: (bech32Str: string) => Effect.Effect; /** * Unsafely calls PrivateKey.fromBech32 without Effect wrapper * * @since 2.0.0 * @category ConstructorsUnsafe */ export declare const fromBech32Unsafe: (bech32Str: string) => CML.PrivateKey; /** * Method toBech32 of PrivateKey * * @since 2.0.0 * @category Methods */ export declare const toBech32: (instance: CML.PrivateKey) => Effect.Effect; /** * Unsafely calls instance.toBech32 without Effect wrapper * * @since 2.0.0 * @category MethodsUnsafe */ export declare const toBech32Unsafe: (instance: CML.PrivateKey) => string; /** * Method toRawBytes of PrivateKey * * @since 2.0.0 * @category Methods */ export declare const toRawBytes: (instance: CML.PrivateKey) => Effect.Effect; /** * Unsafely calls instance.toRawBytes without Effect wrapper * * @since 2.0.0 * @category MethodsUnsafe */ export declare const toRawBytesUnsafe: (instance: CML.PrivateKey) => Uint8Array; /** * Static method fromExtendedBytes of PrivateKey * * @since 2.0.0 * @category Constructors */ export declare const fromExtendedBytes: (bytes: Uint8Array) => Effect.Effect; /** * Unsafely calls PrivateKey.fromExtendedBytes without Effect wrapper * * @since 2.0.0 * @category ConstructorsUnsafe */ export declare const fromExtendedBytesUnsafe: (bytes: Uint8Array) => CML.PrivateKey; /** * Static method fromNormalBytes of PrivateKey * * @since 2.0.0 * @category Constructors */ export declare const fromNormalBytes: (bytes: Uint8Array) => Effect.Effect; /** * Unsafely calls PrivateKey.fromNormalBytes without Effect wrapper * * @since 2.0.0 * @category ConstructorsUnsafe */ export declare const fromNormalBytesUnsafe: (bytes: Uint8Array) => CML.PrivateKey; /** * Method sign of PrivateKey * * @since 2.0.0 * @category Methods */ export declare const sign: (instance: CML.PrivateKey, message: Uint8Array) => Effect.Effect; /** * Unsafely calls instance.sign without Effect wrapper * * @since 2.0.0 * @category MethodsUnsafe */ export declare const signUnsafe: (instance: CML.PrivateKey, message: Uint8Array) => CML.Ed25519Signature; export {}; //# sourceMappingURL=PrivateKey.d.ts.map