/**
* @since 2.0.0
*/
import { Effect } from "effect";
import * as CML from "@anastasia-labs/cardano-multiplatform-lib-nodejs";
/**
* Type alias for the CML GovAction class
*
* @since 2.0.0
* @category Types
*/
export type GovAction = CML.GovAction;
declare const GovActionError_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: "GovActionError";
} & Readonly;
/**
* Error class for GovAction operations
*
* This error is thrown when operations on GovAction instances fail.
*
* @since 2.0.0
* @category Errors
*/
export declare class GovActionError extends GovActionError_base<{
message?: string;
}> {
}
/**
* Method free of GovAction
*
* @since 2.0.0
* @category Methods
*/
export declare const free: (instance: CML.GovAction) => Effect.Effect;
/**
* Unsafely calls instance.free without Effect wrapper
*
* @since 2.0.0
* @category MethodsUnsafe
*/
export declare const freeUnsafe: (instance: CML.GovAction) => void;
/**
* Method scriptHash of GovAction
*
* @since 2.0.0
* @category Methods
*/
export declare const scriptHash: (instance: CML.GovAction) => Effect.Effect;
/**
* Unsafely calls instance.scriptHash without Effect wrapper
*
* @since 2.0.0
* @category MethodsUnsafe
*/
export declare const scriptHashUnsafe: (instance: CML.GovAction) => CML.ScriptHash | undefined;
/**
* Method toCborBytes of GovAction
*
* @since 2.0.0
* @category Methods
*/
export declare const toCborBytes: (instance: CML.GovAction) => Effect.Effect;
/**
* Unsafely calls instance.toCborBytes without Effect wrapper
*
* @since 2.0.0
* @category MethodsUnsafe
*/
export declare const toCborBytesUnsafe: (instance: CML.GovAction) => Uint8Array;
/**
* Method toCanonicalCborBytes of GovAction
*
* @since 2.0.0
* @category Methods
*/
export declare const toCanonicalCborBytes: (instance: CML.GovAction) => Effect.Effect;
/**
* Unsafely calls instance.toCanonicalCborBytes without Effect wrapper
*
* @since 2.0.0
* @category MethodsUnsafe
*/
export declare const toCanonicalCborBytesUnsafe: (instance: CML.GovAction) => Uint8Array;
/**
* Static method fromCborBytes of GovAction
*
* @since 2.0.0
* @category Constructors
*/
export declare const fromCborBytes: (cborBytes: Uint8Array) => Effect.Effect;
/**
* Unsafely calls GovAction.fromCborBytes without Effect wrapper
*
* @since 2.0.0
* @category ConstructorsUnsafe
*/
export declare const fromCborBytesUnsafe: (cborBytes: Uint8Array) => CML.GovAction;
/**
* Method toCborHex of GovAction
*
* @since 2.0.0
* @category Methods
*/
export declare const toCborHex: (instance: CML.GovAction) => Effect.Effect;
/**
* Unsafely calls instance.toCborHex without Effect wrapper
*
* @since 2.0.0
* @category MethodsUnsafe
*/
export declare const toCborHexUnsafe: (instance: CML.GovAction) => string;
/**
* Method toCanonicalCborHex of GovAction
*
* @since 2.0.0
* @category Methods
*/
export declare const toCanonicalCborHex: (instance: CML.GovAction) => Effect.Effect;
/**
* Unsafely calls instance.toCanonicalCborHex without Effect wrapper
*
* @since 2.0.0
* @category MethodsUnsafe
*/
export declare const toCanonicalCborHexUnsafe: (instance: CML.GovAction) => string;
/**
* Static method fromCborHex of GovAction
*
* @since 2.0.0
* @category Constructors
*/
export declare const fromCborHex: (cborBytes: string) => Effect.Effect;
/**
* Unsafely calls GovAction.fromCborHex without Effect wrapper
*
* @since 2.0.0
* @category ConstructorsUnsafe
*/
export declare const fromCborHexUnsafe: (cborBytes: string) => CML.GovAction;
/**
* Method toJson of GovAction
*
* @since 2.0.0
* @category Methods
*/
export declare const toJson: (instance: CML.GovAction) => Effect.Effect;
/**
* Unsafely calls instance.toJson without Effect wrapper
*
* @since 2.0.0
* @category MethodsUnsafe
*/
export declare const toJsonUnsafe: (instance: CML.GovAction) => string;
/**
* Method toJsValue of GovAction
*
* @since 2.0.0
* @category Methods
*/
export declare const toJsValue: (instance: CML.GovAction) => Effect.Effect;
/**
* Unsafely calls instance.toJsValue without Effect wrapper
*
* @since 2.0.0
* @category MethodsUnsafe
*/
export declare const toJsValueUnsafe: (instance: CML.GovAction) => any;
/**
* Static method fromJson of GovAction
*
* @since 2.0.0
* @category Constructors
*/
export declare const fromJson: (json: string) => Effect.Effect;
/**
* Unsafely calls GovAction.fromJson without Effect wrapper
*
* @since 2.0.0
* @category ConstructorsUnsafe
*/
export declare const fromJsonUnsafe: (json: string) => CML.GovAction;
/**
* Static method newParameterChangeAction of GovAction
*
* @since 2.0.0
* @category Constructors
*/
export declare const newParameterChangeAction: (actionId: CML.GovActionId | undefined, update: CML.ProtocolParamUpdate, policyHash: CML.ScriptHash) => Effect.Effect;
/**
* Unsafely calls GovAction.newParameterChangeAction without Effect wrapper
*
* @since 2.0.0
* @category ConstructorsUnsafe
*/
export declare const newParameterChangeActionUnsafe: (actionId: CML.GovActionId | undefined, update: CML.ProtocolParamUpdate, policyHash: CML.ScriptHash) => CML.GovAction;
/**
* Static method newHardForkInitiationAction of GovAction
*
* @since 2.0.0
* @category Constructors
*/
export declare const newHardForkInitiationAction: (actionId: CML.GovActionId | undefined, version: CML.ProtocolVersion) => Effect.Effect;
/**
* Unsafely calls GovAction.newHardForkInitiationAction without Effect wrapper
*
* @since 2.0.0
* @category ConstructorsUnsafe
*/
export declare const newHardForkInitiationActionUnsafe: (actionId: CML.GovActionId | undefined, version: CML.ProtocolVersion) => CML.GovAction;
/**
* Static method newTreasuryWithdrawalsAction of GovAction
*
* @since 2.0.0
* @category Constructors
*/
export declare const newTreasuryWithdrawalsAction: (withdrawal: CML.MapRewardAccountToCoin, policyHash: CML.ScriptHash) => Effect.Effect;
/**
* Unsafely calls GovAction.newTreasuryWithdrawalsAction without Effect wrapper
*
* @since 2.0.0
* @category ConstructorsUnsafe
*/
export declare const newTreasuryWithdrawalsActionUnsafe: (withdrawal: CML.MapRewardAccountToCoin, policyHash: CML.ScriptHash) => CML.GovAction;
/**
* Static method newNoConfidence of GovAction
*
* @since 2.0.0
* @category Constructors
*/
export declare const newNoConfidence: (actionId: CML.GovActionId) => Effect.Effect;
/**
* Unsafely calls GovAction.newNoConfidence without Effect wrapper
*
* @since 2.0.0
* @category ConstructorsUnsafe
*/
export declare const newNoConfidenceUnsafe: (actionId: CML.GovActionId) => CML.GovAction;
/**
* Static method newUpdateCommittee of GovAction
*
* @since 2.0.0
* @category Constructors
*/
export declare const newUpdateCommittee: (actionId: CML.GovActionId | undefined, coldCredentials: CML.CommitteeColdCredentialList, credentials: CML.MapCommitteeColdCredentialToEpoch, unitInterval: CML.UnitInterval) => Effect.Effect;
/**
* Unsafely calls GovAction.newUpdateCommittee without Effect wrapper
*
* @since 2.0.0
* @category ConstructorsUnsafe
*/
export declare const newUpdateCommitteeUnsafe: (actionId: CML.GovActionId | undefined, coldCredentials: CML.CommitteeColdCredentialList, credentials: CML.MapCommitteeColdCredentialToEpoch, unitInterval: CML.UnitInterval) => CML.GovAction;
/**
* Static method newNewConstitution of GovAction
*
* @since 2.0.0
* @category Constructors
*/
export declare const newNewConstitution: (actionId: CML.GovActionId | undefined, constitution: CML.Constitution) => Effect.Effect;
/**
* Unsafely calls GovAction.newNewConstitution without Effect wrapper
*
* @since 2.0.0
* @category ConstructorsUnsafe
*/
export declare const newNewConstitutionUnsafe: (actionId: CML.GovActionId | undefined, constitution: CML.Constitution) => CML.GovAction;
/**
* Static method newInfoAction of GovAction
*
* @since 2.0.0
* @category Constructors
*/
export declare const newInfoAction: () => Effect.Effect;
/**
* Unsafely calls GovAction.newInfoAction without Effect wrapper
*
* @since 2.0.0
* @category ConstructorsUnsafe
*/
export declare const newInfoActionUnsafe: () => CML.GovAction;
/**
* Method kind of GovAction
*
* @since 2.0.0
* @category Methods
*/
export declare const kind: (instance: CML.GovAction) => Effect.Effect;
/**
* Unsafely calls instance.kind without Effect wrapper
*
* @since 2.0.0
* @category MethodsUnsafe
*/
export declare const kindUnsafe: (instance: CML.GovAction) => CML.GovActionKind;
/**
* Method asParameterChangeAction of GovAction
*
* @since 2.0.0
* @category Methods
*/
export declare const asParameterChangeAction: (instance: CML.GovAction) => Effect.Effect;
/**
* Unsafely calls instance.asParameterChangeAction without Effect wrapper
*
* @since 2.0.0
* @category MethodsUnsafe
*/
export declare const asParameterChangeActionUnsafe: (instance: CML.GovAction) => CML.ParameterChangeAction | undefined;
/**
* Method asHardForkInitiationAction of GovAction
*
* @since 2.0.0
* @category Methods
*/
export declare const asHardForkInitiationAction: (instance: CML.GovAction) => Effect.Effect;
/**
* Unsafely calls instance.asHardForkInitiationAction without Effect wrapper
*
* @since 2.0.0
* @category MethodsUnsafe
*/
export declare const asHardForkInitiationActionUnsafe: (instance: CML.GovAction) => CML.HardForkInitiationAction | undefined;
/**
* Method asTreasuryWithdrawalsAction of GovAction
*
* @since 2.0.0
* @category Methods
*/
export declare const asTreasuryWithdrawalsAction: (instance: CML.GovAction) => Effect.Effect;
/**
* Unsafely calls instance.asTreasuryWithdrawalsAction without Effect wrapper
*
* @since 2.0.0
* @category MethodsUnsafe
*/
export declare const asTreasuryWithdrawalsActionUnsafe: (instance: CML.GovAction) => CML.TreasuryWithdrawalsAction | undefined;
/**
* Method asNoConfidence of GovAction
*
* @since 2.0.0
* @category Methods
*/
export declare const asNoConfidence: (instance: CML.GovAction) => Effect.Effect;
/**
* Unsafely calls instance.asNoConfidence without Effect wrapper
*
* @since 2.0.0
* @category MethodsUnsafe
*/
export declare const asNoConfidenceUnsafe: (instance: CML.GovAction) => CML.NoConfidence | undefined;
/**
* Method asUpdateCommittee of GovAction
*
* @since 2.0.0
* @category Methods
*/
export declare const asUpdateCommittee: (instance: CML.GovAction) => Effect.Effect;
/**
* Unsafely calls instance.asUpdateCommittee without Effect wrapper
*
* @since 2.0.0
* @category MethodsUnsafe
*/
export declare const asUpdateCommitteeUnsafe: (instance: CML.GovAction) => CML.UpdateCommittee | undefined;
/**
* Method asNewConstitution of GovAction
*
* @since 2.0.0
* @category Methods
*/
export declare const asNewConstitution: (instance: CML.GovAction) => Effect.Effect;
/**
* Unsafely calls instance.asNewConstitution without Effect wrapper
*
* @since 2.0.0
* @category MethodsUnsafe
*/
export declare const asNewConstitutionUnsafe: (instance: CML.GovAction) => CML.NewConstitution | undefined;
export {};
//# sourceMappingURL=GovAction.d.ts.map