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