import * as CML from "@anastasia-labs/cardano-multiplatform-lib-nodejs"; import * as Data from "../Data.js"; import { Schema } from "effect"; import * as ScriptHash from "./ScriptHash_old.js"; import * as Policy from "./Policy.js"; export type Minting = Script; export type Spending = Script; export type Certificate = Script; export type Withdrawal = Script; export type Vote = Script; export type Propose = Script; export type Script = { type: ScriptType; script: string; }; export type ScriptType = "Native" | PlutusVersion; export type PlutusVersion = "PlutusV1" | "PlutusV2" | "PlutusV3"; export declare function toCMLScript(script: Script): CML.Script; export declare function fromCMLScript(script: CML.Script): Script; /** * Applies a list of parameters, in the form of the `Data` type, to a CBOR encoded script. * * The `plutusScript` must be double CBOR encoded(bytes). Ensure to use the `applyDoubleCborEncoding` function. */ export declare function applyParamsToScript(plutusScript: string, params: T, type?: Schema.Schema): string; export declare const applyDoubleCborEncoding: (script: string) => string; export declare const applySingleCborEncoding: (script: string) => string; export declare const CBOREncodingLevel: (script: string) => "double" | "single"; export declare function toScriptHash(validator: Script): ScriptHash.ScriptHash; /** * Convert a minting policy to a policy id. * @example * ```ts * import { Validator } from "@lucid-evolution/..." * const mintingPolicy = { * type: "PlutusV3", * script: "..." * } * Validator.toPolicyId(mintingPolicy); * ``` * @since 1.0.0 */ export declare function toPolicyId(mintingPolicy: Minting): Policy.PolicyId; //# sourceMappingURL=Script.d.ts.map