import type { Program } from "./types.ts"; export interface EncodeOptions { moduleName?: string; entryFunction?: string; strict?: boolean; } export declare class TsEncoder { private stdFunctions; private warnings; private strict; private static readonly OPERATOR_CANONICAL_NAMES; encode(source: string, options?: EncodeOptions): Program; private encodeFunction; private encodeBody; private encodeBlock; private encodeStatement; private encodeExpr; private encodeBinary; private isProvablyString; private isStringExpr; private encodePrefixUnary; private encodePostfixUnary; private encodeCall; private encodeLambda; private encodeIf; private encodeFor; private encodeForOf; private encodeWhile; private encodeDoWhile; private encodeTry; private encodeSwitch; private encodeTemplate; private encodeNew; private encodeClass; private encodeInterface; private encodeTypeAlias; private encodeEnum; private encodeTaggedTemplate; /** * Map a JS/TS method name to its Ball std function equivalent. * Returns null if no mapping exists (falls through to generic method call). */ private mapMethodToStd; private stdCall; private buildBaseModules; private nullLiteral; private warn; getWarnings(): string[]; } export declare class EncodeError extends Error { readonly warnings: string[]; constructor(message: string, warnings: string[]); } export interface EncodeResult { program: Program; warnings: string[]; } export declare function encode(source: string, options?: EncodeOptions): Program; export declare function encodeWithWarnings(source: string, options?: EncodeOptions): EncodeResult; //# sourceMappingURL=encoder.d.ts.map