import { ILayout } from '../typings/literal'; import { IType } from '../typings/type'; import { Layout } from '../core/enums/layout'; import { ContainerType, SimpleType, Type_VariantOrRecord } from '../core/type'; import { TypeAtom } from '../core/enums/type'; /** * An unknown type (It is used when leveraging type inference) * * ```typescript * TUnknown(); * ``` * * @return {IType} A type */ export declare const TUnknown: () => IType; /** * The type whose only value is Unit * * ```typescript * TUnit(); * ``` * * @see https://tezos.gitlab.io/michelson-reference/#type-unit * * @return {IType} A type */ export declare const TUnit: () => SimpleType; /** * The type whose only value an arbitrary-precision natural number * * ```typescript * TNat(); * ``` * * @see https://tezos.gitlab.io/michelson-reference/#type-nat * * @return {IType} A type */ export declare const TNat: () => SimpleType; /** * The type whose only value an arbitrary-precision integer * * ```typescript * TInt(); * ``` * * @see https://tezos.gitlab.io/michelson-reference/#type-int * * @return {IType} A type */ export declare const TInt: () => SimpleType; /** * A specific type for manipulating the native tezos tokens. * * ```typescript * TMutez(); * ``` * * @see https://tezos.gitlab.io/michelson-reference/#type-mutez * * @return {IType} A type */ export declare const TMutez: () => SimpleType; /** * A type that represents a sequence of characters. * * ```typescript * TString(); * ``` * * @see https://tezos.gitlab.io/michelson-reference/#type-string * * @return {IType} A type */ export declare const TString: () => SimpleType; /** * The type used to represent boolean values. * * ```typescript * TBool(); * ``` * * @see https://tezos.gitlab.io/michelson-reference/#type-bool * * @return {IType} A type */ export declare const TBool: () => SimpleType; /** * ```typescript * TAddress(); * ``` * * @see https://tezos.gitlab.io/michelson-reference/#type-address * * @return {IType} A type */ export declare const TAddress: () => SimpleType; /** * ```typescript * TTimestamp(); * ``` * * @see https://tezos.gitlab.io/michelson-reference/#type-timestamp * * @return {IType} A type */ export declare const TTimestamp: () => SimpleType; /** * ```typescript * TChain_id(); * ``` * * @see https://tezos.gitlab.io/michelson-reference/#type-chain_id * * @return {IType} A type */ export declare const TChain_id: () => SimpleType; /** * ```typescript * TBytes(); * ``` * * @see https://tezos.gitlab.io/michelson-reference/#type-bytes * * @return {IType} A type */ export declare const TBytes: () => SimpleType; /** * ```typescript * TBls12_381_fr(); * ``` * * @see https://tezos.gitlab.io/michelson-reference/#type-bls12_381_fr * * @return {IType} A type */ export declare const TBls12_381_fr: () => SimpleType; /** * ```typescript * TBls12_381_g1(); * ``` * * @see https://tezos.gitlab.io/michelson-reference/#type-bls12_381_g1 * * @return {IType} A type */ export declare const TBls12_381_g1: () => SimpleType; /** * ```typescript * TBls12_381_g2(); * ``` * * @see https://tezos.gitlab.io/michelson-reference/#type-bls12_381_g2 * * @return {IType} A type */ export declare const TBls12_381_g2: () => SimpleType; /** * ```typescript * TKey(); * ``` * * @see https://tezos.gitlab.io/michelson-reference/#type-key * * @return {IType} A type */ export declare const TKey: () => SimpleType; /** * ```typescript * TKey_hash(); * ``` * * @see https://tezos.gitlab.io/michelson-reference/#type-key_hash * * @return {IType} A type */ export declare const TKey_hash: () => SimpleType; /** * ```typescript * TSignature(); * ``` * * @see https://tezos.gitlab.io/michelson-reference/#type-signature * * @return {IType} A type */ export declare const TSignature: () => SimpleType; /** * ```typescript * TOperation(); * ``` * * @see https://tezos.gitlab.io/michelson-reference/#type-operation * * @return {IType} A type */ export declare const TOperation: () => SimpleType; /** * ```typescript * TNever(); * ``` * * @see https://tezos.gitlab.io/michelson-reference/#type-never * * @return {IType} A type */ export declare const TNever: () => SimpleType; /** * ```typescript * TList(TNat()); * ``` * * @see https://tezos.gitlab.io/michelson-reference/#type-list * * @return {IType} A type */ export declare const TList: (innerType: IType) => ContainerType; /** * ```typescript * TSet(TNat()); * ``` * * @see https://tezos.gitlab.io/michelson-reference/#type-set * * @return {IType} A type */ export declare const TSet: (innerType: IType) => ContainerType; /** * ```typescript * TOption(TNat()); * ``` * * @see https://tezos.gitlab.io/michelson-reference/#type-option * * @return {IType} A type */ export declare const TOption: (innerType: IType) => ContainerType; /** * ```typescript * TMap(TString(), TNat()); * ``` * * @see https://tezos.gitlab.io/michelson-reference/#type-map * * @return {IType} A type */ export declare const TMap: (keyType: IType, valueType: IType) => ContainerType; /** * ```typescript * TBig_map(TString(), TNat()); * ``` * * @see https://tezos.gitlab.io/michelson-reference/#type-big_map * * @return {IType} A type */ export declare const TBig_map: (keyType: IType, valueType: IType) => ContainerType; /** * ```typescript * TPair(TString(), TNat()); * ``` * * @see https://tezos.gitlab.io/michelson-reference/#type-pair * * @return {IType} A type */ export declare const TPair: (left: IType, right: IType, ...more: IType[]) => ContainerType; /** * ```typescript * TOr(TString(), TNat()); * ``` * * @see https://tezos.gitlab.io/michelson-reference/#type-or * * @return {IType} A type */ export declare const TOr: (left: IType, right: IType) => Type_VariantOrRecord; /** * ```typescript * TLambda(TString(), TNat()); * ``` * * @see https://tezos.gitlab.io/michelson-reference/#type-lambda * * @return {IType} A type */ export declare const TLambda: (left: IType, right: IType) => ContainerType; /** * ```typescript * TTicket(TString()); * ``` * * @see https://tezos.gitlab.io/michelson-reference/#type-ticket * * @return {IType} A type */ export declare const TTicket: (innerType: IType) => ContainerType; /** * ```typescript * TContract(TString()); * ``` * * @see https://tezos.gitlab.io/michelson-reference/#type-contract * * @return {IType} A type */ export declare const TContract: (innerType: IType) => ContainerType; /** * ```typescript * TSapling_state(8); * ``` * * @see https://tezos.gitlab.io/michelson-reference/#type-sapling_state * * @return {IType} A type */ export declare const TSapling_state: (memo: number) => ContainerType; /** * ```typescript * TSapling_transaction(8); * ``` * * @see https://tezos.gitlab.io/michelson-reference/#type-sapling_transaction * * @return {IType} A type */ export declare const TSapling_transaction: (memo: number) => ContainerType; /** * ```typescript * TRecord({ * field1: TNat(), * field2: TString(), * }); * ``` * * @see https://tezos.gitlab.io/michelson-reference/#type-pair * * @return {IType} A type */ export declare const TRecord: (fields: Record, layout?: ILayout | Layout | undefined) => Type_VariantOrRecord; /** * ```typescript * TVariant({ * branch1: TNat(), * branch1: TString(), * }); * ``` * * @see https://tezos.gitlab.io/michelson-reference/#type-or * * @return {IType} A type */ export declare const TVariant: (fields: Record, layout?: ILayout | Layout | undefined) => Type_VariantOrRecord; declare const Types: { TUnknown: () => IType; TUnit: () => SimpleType; TNat: () => SimpleType; TInt: () => SimpleType; TMutez: () => SimpleType; TString: () => SimpleType; TBool: () => SimpleType; TBytes: () => SimpleType; TAddress: () => SimpleType; TTimestamp: () => SimpleType; TChain_id: () => SimpleType; TBls12_381_fr: () => SimpleType; TBls12_381_g1: () => SimpleType; TBls12_381_g2: () => SimpleType; TKey: () => SimpleType; TKey_hash: () => SimpleType; TSignature: () => SimpleType; TOperation: () => SimpleType; TNever: () => SimpleType; TList: (innerType: IType) => ContainerType; TSet: (innerType: IType) => ContainerType; TOption: (innerType: IType) => ContainerType; TPair: (left: IType, right: IType, ...more: IType[]) => ContainerType; TOr: (left: IType, right: IType) => Type_VariantOrRecord; TMap: (keyType: IType, valueType: IType) => ContainerType; TBig_map: (keyType: IType, valueType: IType) => ContainerType; TLambda: (left: IType, right: IType) => ContainerType; TTicket: (innerType: IType) => ContainerType; TContract: (innerType: IType) => ContainerType; TSapling_state: (memo: number) => ContainerType; TSapling_transaction: (memo: number) => ContainerType; TRecord: (fields: Record, layout?: ILayout | Layout | undefined) => Type_VariantOrRecord; TVariant: (fields: Record, layout?: ILayout | Layout | undefined) => Type_VariantOrRecord; }; export default Types;