import { Sort } from "@marlowe.io/adapter/assoc-map"; import * as t from "io-ts/lib/index.js"; import { PolicyId } from "./policyId.js"; /** * @see {@link @marlowe.io/language-core-v1!index.Token}. * @category Token */ export type TokenName = string; /** * {@link !io-ts-usage | Dynamic type guard} for the {@link @marlowe.io/language-core-v1!index.TokenName | token name type}. * @category Token */ export declare const TokenNameGuard: t.Type; /** * A Token consists of a `CurrencySymbol` that represents the monetary policy of the * `Token` and a `TokenName` which allows to have multiple tokens with the same monetary policy. * @category Token */ export interface Token { currency_symbol: PolicyId; token_name: TokenName; } /** * {@link !io-ts-usage | Dynamic type guard} for the {@link @marlowe.io/language-core-v1!index.Token | token type}. * @category Token */ export declare const TokenGuard: t.Type; /** * Search [[lower-name-builders]] * @hidden */ export declare const token: (currency_symbol: PolicyId, token_name: TokenName) => { currency_symbol: string; token_name: string; }; /** * @hidden */ export declare const tokenToString: (token: Token) => string; /** * The native {@link Token} of the Cardano blockchain. 1 Million lovelaces is one ADA. * @category Token */ export declare const lovelace: Token; /** * @deprecated Use `lovelace` instead * @hidden */ export declare const adaToken: Token; /** * Sorting function for Parties as defined in the Marlowe Specification (SemanticsGuarantees.thy) * @hidden */ export declare function tokenCmp(a: Token, b: Token): Sort; //# sourceMappingURL=token.d.ts.map