/** * The helpers are NOT inlined into every command. Re-sending ~14KB of helper code * with each evalScript both wastes the 200ms-polling pipe and — observed on * Premiere 26.2.2 — can hit "InternalError: Stack overrun" once the long-lived * ExtendScript engine has degraded, at which point every tool call dies with an * opaque "EvalScript error.". Instead the file bridge writes the helpers to * /helpers_.jsx once, and each command carries only a tiny * bootstrap that $.evalFile's them into the engine if this exact version isn't * loaded yet. Self-healing across engine restarts, and each version of the server * loads its own helpers file, so upgrades can't execute stale helpers. */ export declare const HELPERS_VERSION: string; export declare function getHelpersSource(): string; export declare function helpersFileName(): string; /** * Build the bootstrap + user-code command script. The helpers file path is only * known to the file bridge, which injects it via buildBootstrap(). */ export declare function buildBootstrap(helpersPath: string): string; /** * Build a complete ExtendScript by wrapping user code in an IIFE. * Helper functions are loaded by the bootstrap the file bridge prepends. */ export declare function buildScript(code: string): string; /** * Escape a string for safe embedding in ExtendScript. */ export declare function escapeForExtendScript(value: string): string; /** * Build a script that wraps code returning a value. * The code should use `return __result(...)` or `return __error(...)`. * @deprecated Use buildScript() directly. This is an alias kept for backward compatibility. */ export declare const buildToolScript: typeof buildScript; //# sourceMappingURL=script-builder.d.ts.map