@harmoniclabs/plu-ts-onchain
Version:
An embedded DSL for Cardano smart contracts creation coupled with a library for Cardano transactions, all in Typescript
44 lines (43 loc) • 1.34 kB
TypeScript
import { IRLetted } from "../IRNodes/IRLetted.js";
import { IRTerm } from "../IRTerm.js";
import { IRHoisted } from "../IRNodes/IRHoisted.js";
import { IRConst } from "../IRNodes/IRConst.js";
export declare function showIRText(_ir: IRTerm): string;
export declare function showIR(_ir: IRTerm): {
text: string;
letted: {
[hash: string]: string;
};
hoisted: {
[hash: string]: string;
};
};
export declare function prettyIRText(_ir: IRTerm, _indent?: number): string | {
text: string;
letted: {
[hash: string]: string;
};
hoisted: {
[hash: string]: string;
};
};
export type PrettiedIR = {
text: string;
letted: {
[hash: string]: string;
};
hoisted: {
[hash: string]: string;
};
};
export declare function prettyIR(_ir: IRTerm, _indent?: number): PrettiedIR;
export interface PrettyIRJsonStrOpts {
text: boolean;
letted: boolean;
hoisted: boolean;
}
export declare function prettyIRJsonStr(ir: IRTerm, indent?: number, opts?: Partial<PrettyIRJsonStrOpts>): string;
export declare function hoistedToStr(ir: IRHoisted): string;
export declare function lettedToStr(ir: IRLetted): string;
export declare function constToString(ir: IRConst): string;
export declare function prettyIRInline(_ir: IRTerm, _indent?: number): string;