import { Static as _Static, TLiteral, TLiteralValue, TProperties, TSchema } from "../../deps/deno.land/x/typebox@0.25.13/src/typebox.js"; import { Datum, Exact, Json, Redeemer } from "../types/mod.js"; export declare class Constr { index: number; fields: T[]; constructor(index: number, fields: T[]); } export declare namespace Data { type Static = _Static; } export type Data = bigint | string | Array | Map | Constr; export declare const Data: { Integer: (options?: { minimum?: number; maximum?: number; exclusiveMinimum?: number; exclusiveMaximum?: number; }) => import("../../deps/deno.land/x/typebox@0.25.13/src/typebox.js").TUnsafe; Bytes: (options?: { minLength?: number; maxLength?: number; enum?: string[]; }) => import("../../deps/deno.land/x/typebox@0.25.13/src/typebox.js").TUnsafe; Boolean: () => import("../../deps/deno.land/x/typebox@0.25.13/src/typebox.js").TUnsafe; Any: () => import("../../deps/deno.land/x/typebox@0.25.13/src/typebox.js").TUnsafe; Array: (items: T, options?: { minItems?: number; maxItems?: number; uniqueItems?: boolean; }) => import("../../deps/deno.land/x/typebox@0.25.13/src/typebox.js").TArray; Map: (keys: T_1, values: U, options?: { minItems?: number; maxItems?: number; }) => import("../../deps/deno.land/x/typebox@0.25.13/src/typebox.js").TUnsafe, Data.Static>>; /** * Object applies by default a PlutusData Constr with index 0.\ * Set 'hasConstr' to false to serialize Object as PlutusData List. */ Object: (properties: T_2, options?: { hasConstr?: boolean; }) => import("../../deps/deno.land/x/typebox@0.25.13/src/typebox.js").TObject; Enum: (items: T_3[]) => import("../../deps/deno.land/x/typebox@0.25.13/src/typebox.js").TUnion; /** * Tuple is by default a PlutusData List.\ * Set 'hasConstr' to true to apply a PlutusData Constr with index 0. */ Tuple: (items: [...T_4], options?: { hasConstr?: boolean; }) => import("../../deps/deno.land/x/typebox@0.25.13/src/typebox.js").TTuple; Literal: (title: T_5) => TLiteral; Nullable: (item: T_6) => import("../../deps/deno.land/x/typebox@0.25.13/src/typebox.js").TUnsafe | null>; /** * Convert PlutusData to Cbor encoded data.\ * Or apply a shape and convert the provided data struct to Cbor encoded data. */ to: typeof to; /** Convert Cbor encoded data to PlutusData */ from: typeof from; /** * Note Constr cannot be used here.\ * Strings prefixed with '0x' are not UTF-8 encoded. */ fromJson: typeof fromJson; /** * Note Constr cannot be used here, also only bytes/integers as Json keys.\ */ toJson: typeof toJson; void: () => Datum | Redeemer; castFrom: typeof castFrom; castTo: typeof castTo; }; /** * Convert PlutusData to Cbor encoded data.\ * Or apply a shape and convert the provided data struct to Cbor encoded data. */ declare function to(data: Exact, type?: T): Datum | Redeemer; /** * Convert Cbor encoded data to Data.\ * Or apply a shape and cast the cbor encoded data to a certain type. */ declare function from(raw: Datum | Redeemer, type?: T): T; /** * Note Constr cannot be used here.\ * Strings prefixed with '0x' are not UTF-8 encoded. */ declare function fromJson(json: Json): Data; /** * Note Constr cannot be used here, also only bytes/integers as Json keys.\ */ declare function toJson(plutusData: Data): Json; declare function castFrom(data: Data, type: T): T; declare function castTo(struct: Exact, type: T): Data; export {};