@eliseev_s/tolk-tlb-transpiler
Version:
Transpile Tolk structs to TLB definitions and generate TypeScript wrappers for TON blockchain smart contracts
30 lines • 1.01 kB
TypeScript
import type { PrefixInfo } from './types';
/**
* Format prefix for TLB constructor (hex or binary)
*/
export declare function formatPrefix(prefix: PrefixInfo): string;
/**
* Format union prefix (for union alternatives)
*/
export declare function formatUnionPrefix(tag: number, explicitPrefix?: PrefixInfo, totalAlternatives?: number): string;
/**
* Format Maybe type in TLB
*/
export declare function formatMaybeType(innerTLB: string): string;
/**
* Format Either type in TLB
*/
export declare function formatEitherType(leftTLB: string, rightTLB: string): string;
/**
* Format cell reference in TLB
*/
export declare function formatCellRefType(innerTLB: string): string;
/**
* Format collection type (tuple/tensor) in TLB
*/
export declare function formatCollectionType(items: string): string;
/**
* Build TLB constructor string
*/
export declare function buildConstructor(constructorName: string, prefix: string, fields: string, typeName: string): string;
//# sourceMappingURL=tlb-utils.d.ts.map